New Zenner
- Join Date:
- Sep 2007
- Posts:
- 25
- Plugin Contributions:
- 0
Attribute price based upon another attribute
I don't find a way to do this but surely there must be a hack or something to help.
I am selling letters. I have it set up so that it uses a text box and price per letter. The customer types the text of the letters into the text box and it adds that number of letters to the cart. Example. If they type TEST into the text box, the add to cart button adds 4 letters to their shopping cart.
One of the attributes is an "option" to purchase an installation pattern. I now have it set up the same way but this means that the customer must AGAIN type their text into a text box to add the installation patter to their cart. The installation patter is also unit cost x amount per letter. The better way would be to have a single radio button to add the installation pattern to the cart. I can't figure out though how to get the "Pattern" attribute in this case to look at how many letters were purchased and add it to the cart. The price of the pattern is a constant for all letter styles so it would just need to be a function of total letters purchased X "unit price per letter" of pattern and then that amount added to the shopping cart when the pattern option is selected.