| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Unique Quantities | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have searched all through the forums for this answer, but haven't had any success.
I need to have unique quantity amounts for different products. These are not in any increments or even pattern. Here is a sample of what I need: Product 1: 100 250 500 1000 2000 3000 Product 2: 100 250 500 1000 1500 2000 2500 3000 4000 5000 So, my products don't each have the same amounts in them. I can do this easily using "product options" and created an option group, but this will effect my discounts based on quantity. So, my question is.. is there a way to change the quantity amounts per product to set amounts? If so, how can this be done? ~Robin
__________________
Version 4.1.11 |
|||||||
#2
|
|||||||
|
|||||||
![]() Hmm, I just realized... I can't do it this way. I don't have a set base price that just gets multiplied by the quantity either. So, I guess I will stick with using the "product options and variants" way which works great, but now I need to know how to get rid of the quantity box from everywhere/
__________________
Version 4.1.11 |
|||||||
#3
|
|||||||
|
|||||||
![]() If you are going to use variants (good choice) fix the max qty to 1 in your admin. The customer will be buying 1 SKU of 2,000 pieces. You can HIDE the display of the pulldown in product.tpl, but don't hide the underlying math --
Or don't hide the qty -- this will make it very clear that the customer is buying a single sku of many pieces.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#4
|
|||||||
|
|||||||
![]() Okay, that's a good idea. Can you assist me in what code to comment out in the product.tpl file to HIDE the quantity text and drop down?
__________________
Version 4.1.11 |
|||||||
#5
|
|||||||
|
|||||||
![]() Quote:
Okay, the way I do it for my site is this. You open file product.tpl in customer/main folder Then do a few if else statement. I have on my site only 1 product that has variant options, but if you have more than 1 then you need to do a few more if else Look for this line: PHP Code:
then insert a first if before line above, in this case, my product id is 9: PHP Code:
Then go to this line: PHP Code:
put a {else} after it, then paste this code after {else} PHP Code:
Now put a {/if} after it. The trick to make your "real" quantity box disappear is, find this code: PHP Code:
and replace it with: PHP Code:
voila!
__________________
X-Cart Gold version 4.4.4 X-Cart directory /home/web/u/ugchweb/cart PHP 5 MySQL server 5 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|