Inhalte aufrufen

Profilbild

Show drop-down for Quantity

quantity dropdown

  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 samdubey

samdubey

    Member

  • Members
  • PunktPunkt
  • 21 Beiträge

Geschrieben: 07 July 2015 - 14:04

Hi Team,

 

I want to show dropdown upto 30 for quantity

 

how do i do that?

 

 


Sameer Dubey

Director - Technology & Solutions

C-DUCK CONSULTANCY SERVICES PVT. LTD.

sameer.dubey@c-duck.com

http://www.c-duck.com - Business Application Development using AngularJs and WebApi

http://www.housy.in - Service Commerce Redefined

http://www.hostify.in - Domains and Web Hosting


#2 Michael Herzog

Michael Herzog

    SmartStore AG

  • Administrators
  • 3498 Beiträge

Geschrieben: 08 July 2015 - 11:55

Hi Sameer,

 

we've eleminated this option but the infrastructure is still there. You would have to implement it with some lines of code:

 

SmartStoreNET\src\Presentation\SmartStore.Web\Administration\Views\Product\_CreateOrUpdate.Inventory.cshtml

    <tr>
        <td class="adminTitle">
            @Html.SmartLabelFor(model => model.AllowedQuantities):
        </td>
        <td class="adminData">
            @Html.EditorFor(model => model.AllowedQuantities)
            @Html.ValidationMessageFor(model => model.AllowedQuantities)
        </td>
    </tr>

\SmartStoreNET\src\Presentation\SmartStore.Web\Administration\Controllers\ProductController.cs > UpdateProductInventory

p.AllowedQuantities = m.AllowedQuantities;

Now you can enter a comma separated list of integer values to create a dropdown for quantity input.

 

Regards,

Michael


  • samdubey gefällt das

Michael Herzog
Smartstore AG



Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: quantity, dropdown