I have an attribute scenario which I cannot figure out how to accomplish...
I have a good understanding of the basics of using attributes, options, etc. with zencart and a good working knowledge of html/javascript, and php, but I have not (yet) attempted to hack any html/javascript to solve my problem as I'm hoping there is a canonical solution within zencart.
I have zencart 1.3.8a, freshly installed.
I have a product which allows embroidery... I want to charge a minimum price for the embroidery which includes a certain number of letters, and then charge a per-letter price for each additional letter. For example assume the base-price is $16 and that would purchase up to 7 letters, and each additional letter is $1. (I have set the product to price by attribute)
I created a radio button attribute for "Include Embroidery" with a price $16.
I created a text box "Text to Embroider" with a price per letter of $1 and 7 letters free...
So far so good.
What I can't find a way to do is prevent the user from entering letters into the text box without selecting yes on the include embroidery radio button. Nor can I find any way to encode the business pricing rule described above into a single text-box attribute.
Any help would be greatly appreciated (even if it's just to say what I'm trying to do can't be done without doing some javascript hacking on zencart)...
Thanks,