Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Attribute by percentage versus dollar amount

Attribute by percentage versus dollar amount

Locked

Views: 2,544

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Aug 2007, 9:39 PM
#1
discountvials avatar

discountvials

New Zenner

Join Date:
Aug 2007
Posts:
1
Plugin Contributions:
0

Attribute by percentage versus dollar amount

Hello everyone,

This is my first post here ... thanks for being here, this looks to be a very active and helpful group!

We are changing platforms to Zen Cart and I am having some problems with attributes. We sell glass vials and have accomplished setting up the products and employing the proper quantity discounts so that 1-3 dozen is $XX and 4-10 dozen is $XX- 10%

At the same time there needs to be a cost differential between (for example) clear and amber color. At smaller quantities choosing amber increases cost by $0.01 per vial ... no problem easily done with an attribute.

With different size vials however the cost of an amber versus clear maybe $0.03 or $0.04 ... the cost of the color is actually a percentage of the original cost rather than a fixed dollar amount.

Is there a way to make the cost of an attribute a percentage of the product price rather than a dollar amount????

If this is an easy find, I really did search for a long time before posting :lookaroun Thanks in advance for any help!

Laura
discountvials

20 Aug 2007, 6:54 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Attribute by percentage versus dollar amount

Is there a way to make the cost of an attribute a percentage of the product price rather than a dollar amount????
Difficult to explain but yes---using the factor & offset where the factor is actually a mathmatical inverse of percentage...play with values like .3 and .7 etc to see the effect and you will understand better.

This is coded to add this to the base price so a offeset of -1 I believe nullifies this