Jump to content

Photo

Show drop-down for Quantity

quantity dropdown

  • Please log in to reply
1 reply to this topic

#1 samdubey

samdubey

    Member

  • Members
  • PipPip
  • 21 posts

Posted 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 posts

Posted 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 likes this

Michael Herzog
Smartstore AG



Also tagged with one or more of these keywords: quantity, dropdown