![]() |
Unique Quantities
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 |
Re: Unique Quantities
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/
|
Re: Unique Quantities
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. |
Re: Unique Quantities
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?
|
Re: Unique Quantities
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! |
All times are GMT -8. The time now is 02:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.