Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Automatically calculate price based on specific units

Automatically calculate price based on specific units

Views: 613

Results 1 to 4 of 4
22 Feb 2013, 10:15 PM
#1
spydersl avatar

spydersl

New Zenner

Join Date:
Apr 2010
Posts:
8
Plugin Contributions:
0

Automatically calculate price based on specific units

I've tried searching the forums for a solution but this problem seems unique. I'd appreciate any help you can provide!

I'm selling rolls of labels that can be bought in any quantity over 4. They are priced per 1000s of labels. Each roll has a different number of labels on it. Example:

  • Product A has 5,300 labels on a single roll.
  • You can buy a minimum of 4 rolls. (So 4 rolls in your cart x 5,300 labels per roll = 21,200 labels).
  • The cost is $1 per 1000 labels, so the cart should calculate the price to be $21.20 (21,200 / 1000). Instead, it's obviously calculating the total to be $4 (4 rolls x $1 each).

I've tried different combinations of quantities, minimums and units, but nothing seems to work out correctly. What am I missing?

Thanks!

23 Feb 2013, 12:12 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Automatically calculate price based on specific units

Price it by the roll $5.30

23 Feb 2013, 1:20 AM
#3
spydersl avatar

spydersl

New Zenner

Join Date:
Apr 2010
Posts:
8
Plugin Contributions:
0

Re: Automatically calculate price based on specific units

kobra:

Price it by the roll $5.30 Thanks for your reply. I could do this, but to compare Product A to Product B, pricing it by the 1000 puts all products on an even keel, so you can easily compare which is cheaper...

23 Feb 2013, 10:37 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Automatically calculate price based on specific units

Zencart can only deal with one quantity aspect, so you would have to price them by the roll and spell out the number of labels on the roll, and the price per 1000, in the product description. I don't know any way to do what you described in your OP.

If you're creating these rolls of labels, another obvious option would be to make the number of labels on a roll all the same.