I'm setting up a new ZenCart store (fresh 1.5.1 install, not an upgrade), and I need to be able to sell either by individual items or cases of those same items. I've been reading through the forums here for a few days, but can't seem to find the right scrap of info I'm missing to get this to work how I need. Regular quantity pricing will get me almost the result I'm looking for, but not quite. It would be far preferable to have Individual & Case as two radio-button options. I was hoping someone with more practice at this than me might be able to point me in the right direction.
Each item in the store will have two separate prices, Individual price is one number, case price is a completely different number. I've currently got the main price for my test item set to 0, and prices set as attributes. The case size will also vary by item. Once I get one example to work right, the varying case sizes should be easy (perhaps tedious, but easy) to set up using a series of slightly different attributes created for each potential case size, and just assigning one to each product in addition to the default single-item option. The single price works fine by default, of course. So far, so good. I can add either one to my cart, and it adds a single item at the listed price, takes one out of inventory.
Here's an example, using a test product:
This is basically how I want my product to appear to the customer, but I can't quite get it to function how I want.
I need that second option to do three things:
- Showing the case pricing as a per-unit price. (as it does currently)
- Adding the proper quantity of that item to the cart. (ex: 1 case added = $110.00 in the cart)
- Subtracting the proper quantity of that item from store inventory. (ex: 1 case added = 2 units removed from inventory)
And that is where I keep going in circles. I've gotten it to do one or two of these things at a time, but not all three for some reason. I hope it's possible, and if anyone could give me a bit of advice on how to set up the correct attributes to get this effect, I'd be quite grateful.


Reply With Quote
