Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8831959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:25:27+00:00 2026-06-14T08:25:27+00:00

I can’t seem to get Store to dynamically update the price on a product

  • 0

I can’t seem to get Store to dynamically update the price on a product when I choose a different modifier option.

I’ve put store into a sandbox environment with just one product that has 1 modifier: size. There are 2 sizes small and large. Large has a price difference of $10.

When I add the product to the cart the price difference is respected, but I need that price difference to change dynamically when the actual option is selected before being added to the cart.

I have no custom templates of my own just using the supplied example one and issue still happening.

Code:

<div class="control-group">
<label class="control-label">Price</label>
<div class="controls">
  {if on_sale}
    <del>{regular_price}</del><br />
    {price}
    <span class="label label-success">Save {you_save} ({you_save_percent}%)</span>
  {if:else}
    {regular_price}
  {/if}
</div>
</div>

{modifiers}

<div class="control-group">
  <label class="control-label" for="{modifier_input_name}">{modifier_name}</label>
  <div class="controls">
    {if modifier_type == 'var' OR modifier_type == 'var_single_sku'}
      <select id="{modifier_input_name}" name="{modifier_input_name}">
        {modifier_options}
          <option value="{option_id}">
            {option_name} {if price_mod_val} ({price_mod}) {/if}
          </option>
        {/modifier_options}
      </select>
    {if:else}
      <input type="text" id="{modifier_input_name}" name="{modifier_input_name}" value="" />
    {/if}
    <p class="help-block">{modifier_instructions}</p>
  </div>
</div>

{/modifiers}

EECMS version: 1.5.2
Store: 1.6.1
PHP: 5.3.6
Environement: MAMP on OSX

Any help would be gratefully appreciated as this is quite urgent.

Cheers
Dan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:25:28+00:00Added an answer on June 14, 2026 at 8:25 am

    The dynamic product variables are based on css classes, which tell the built in javascript where to update the price.

    https://exp-resso.com/docs/store/tags/product.html#dynamic-product-variables

    To get it working, simply wrap your price in a <span> element, like so:

    <span class="store_product_price">{price}</span>
    

    Also note there was a bug in 1.6.0 which caused this to break in some situations (though you mentioned you are running 1.6.1 so this shouldn’t be an issue).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can I change the field public virtual ClassOne ClassOne { get; set; } to
Can any one tell, how to get the result of LINQ query contains group
Can't seem to figure out what's wrong with the simple getJSON call below. It's
Can i get the source code for a WAMP stack installer somewhere? Any help
Can find why i get this error can someone help? package Android.data; public class
can not reproduce deadlock using the next code I am trying yo get a
Can anyone let me know how can we change the value of kendo combobox
Can I order my users in the database, so I don't have to say
Can I authenticate with just Google account username and password instead of using OAuth?
Can we change the default action of the edit selected row button? Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.