X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Quantity with the base of 6 (https://forum.x-cart.com/showthread.php?t=42061)

boccio 08-29-2008 05:00 AM

Quantity with the base of 6
 
Hi all,

I need to set the quantity of my products (all without exception) to the base of 6. This means one can order 6/12/18/24/30, etc. bottles of wine (which are actually my product :roll:)

How can I set this? Tried searching forum, but no joy...

TIA

Vetrivel 09-01-2008 06:38 AM

Re: Quantity with the base of 6
 
just go to cart .tpl page and mutiply the quantity with 6....

Alex Malkov 09-01-2008 06:49 AM

Re: Quantity with the base of 6
 
If you don't want to edit any x-cart files, you can also add a product named somth like "Pack of 6 bottles" and leave ability to buy 1, 2 ... packs.

boccio 09-01-2008 07:54 AM

Re: Quantity with the base of 6
 
Thanks for replying.

I don't think that cart.tpl is the right place for this (correct me if I'm wrong), because I want the right quantity directly on product details page. Here's the actual page, btw:
http://www.vinser.eu/store/product.php?productid=1

I'd like the "quantity" drop-down in "Options" section just below the product price to reflect 6/12/18 instead of 1,2,3,4,5,etc.

Adding a product "pack of 6 bottles" is also something different to what I'm seeking for.

Is there any way I can have drop-down on product details page display quantities with the base of 6 ?

TIA

boccio 09-24-2008 07:11 AM

Re: Quantity with the base of 6
 
Anyone? Is this really such a problem to do?

PhilJ 09-24-2008 09:13 AM

Re: Quantity with the base of 6
 
http://forum.x-cart.com/showthread.php?t=36781

Except use...
Code:

{section name=quantity loop=$mq start=$start_quantity step=6 start=6}

boccio 09-25-2008 01:54 AM

Re: Quantity with the base of 6
 
Worked like a charm. Thank you buddy so much!


All times are GMT -8. The time now is 06:04 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.