eCart Charges
I have a blank text box named 'reverse' for adding an engraving in my cart
If some-one wants an engraving I need to add a charge of 5.00 on each occassion this box is utilised
Any suggestions?
I have a blank text box named 'reverse' for adding an engraving in my cart
If some-one wants an engraving I need to add a charge of 5.00 on each occassion this box is utilised
Any suggestions?
What server language?
I would add a column to my cart called "Engraving"
Then I would create a calculations in the cart:
TruePrice = [Price] + (([Engraving]!="")?5:0)
and I would update the calculation:
TotalPrice = ([Price] + (([Engraving]!="")?5:0)) * [Quantity]
Then update the cart display to show "TruePrice" instead of "Price"
Hi Ray
Thanks for the feedback
I'm coding in .php
I have already set up a column called 'reverse' which is collecting the reverse engraving details.
I've been trying to utilise the Charges feature. i.e. if 'reverse' != (emptycell) then add 5.00
But can't seem to get the right syntax.
thanks
Alf
You can't use charges without calculations in this case, I don't think. Did you try using the calculations I suggested? Is there a reason that technique won't work for you.
I don't think charges is the correct solution since each row may be different. Charges are used for totaling and manipulating the cart as a whole. Individual row variations must be handled with calculations.
Hi Ray
thanks for the feedback
Went back to your original code and tweeked it slightly.......works like a dream
Thanks again
Alf
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.