ydovk Posted October 14, 2012 Share Posted October 14, 2012 Hi I would like to set that the quantity should only allow to be added in the following format: 5, 10, 15, 20 etc; (meaning, user should not be able to choose any quantity, user should only be able to add by preset quantities that admin sets from back end, which in this case would be in increments of 5 1 Link to comment Share on other sites More sharing options...
spence Posted April 6, 2013 Share Posted April 6, 2013 You figure this out by chance? I am running a wholesale site and need to have increments in dozens. ie: 12, 24, 36, 48, 60, etc. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 6, 2013 Share Posted April 6, 2013 There is no built in way to do this, it would require a special customization. Changing the quantity to a drop down on the product page is the easy part, but you also need to override the Cart.php class to make sure the +- signs in the cart summary increment by X rather than by 1, and replace the textbox with a drop down. Link to comment Share on other sites More sharing options...
PascalVG Posted April 6, 2013 Share Posted April 6, 2013 I think it is possible to use "packs" of products (if you run PS 1.5+). Add new product and in first 'Information' screen you have the option 'pack'. You then can combine products into a pack (for example 5 iPod Nanos, or an iPod Nano and a head set etc) Never played with it, but this may be an option. Some little more info here: http://www.webhostinghub.com/support/edu/prestashop-15-tutorials/working-with-products/managing-pack-products My 2 cents, Pascal Link to comment Share on other sites More sharing options...
PascalVG Posted April 6, 2013 Share Posted April 6, 2013 You can of course also just add a 'single' product named "5 packs of sugar", with price for 5 packs. Then the customer can choose two of these products, being 2x'5 packs of sugar' = 10 packs. Also flexible, as you can add a product names '3 packs of sugar' with a price for 3 packs, with a slightly higher price per pack of sugar than when buying the "5 packs of sugar" (say 3x 99 cents= 2,97 and 5x95 cents = 4.75). This way you can just make your own 'packs' just in the name of the product. Just an idea... In your original question, did you have i mind to have the increase of 5,10,15,... fixed for all products (i.e shop wide only 5/10/15) or per product (or category) differently? The first one is probably do-able with some source searching. The other option needs some serious coding, as you need to store the increase per product/category in the database, make the field editable in BO etc. A lot of work for sure... My second 2 cents, Pascal Link to comment Share on other sites More sharing options...
trangpl Posted April 6, 2013 Share Posted April 6, 2013 I need something like this in the cart too - when press '+' increase minimal_quantity of each product, '-' decreasing minimal_quantity. Any one can help??? Where to manipulate those buttons? Link to comment Share on other sites More sharing options...
Recommended Posts