Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

I would like Expresso Store to update my product price every time I choose a modifier. Is there an easy way to do this built into the store?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Store has built in dynamic price variables you can use. You can see all of the avilable variables here. You would want to use

<span class="store_product_price"></span>

To adjust the price when modifiers are changed.

share|improve this answer
    
I am sure this works in theory, but when I add the class to my span like this: <span class="store_product_price">{price}</span> It doesn't update when I change my modifiers. –  Austin Hunt Jan 2 '13 at 14:57
    
It is hard to track down without knowing EE version, Store version, if you have any JS errors in the console –  Justin Long Jan 2 '13 at 23:03
    
EE 2.5.3 is my current version number. –  Austin Hunt Jan 3 '13 at 21:19
    
I would first recommend you take a look at your products in the store_example templates that were installed when you installed Store to see if the price updates dynamically when you change your modifiers. –  Justin Long Jan 3 '13 at 23:25
    
Here is the verdict: I have no javascript errors. I have the latest version of the store and of EE. All seems to be working, except...I am unable to get the modifiers to change the price with the dynamic price variable. –  Austin Hunt Jan 15 '13 at 18:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.