Post by taterchip01 » Thu Oct 12, 2017 5:50 am

I am trying to update a variable in the product.twig after a user selects an option, so post page load. I can get the javascript function to fire after the users selects an option and then access the variable then set the variable {% set entry_qty = 'bar' %}. But how do I update the page since twig is server side? Just setting the variable does nothing.

<label class="control-label" for="input-quantity">{{ entry_qty }}</label>



Tue Oct 10, 2017 4:34 am

Post by straightlight » Tue Nov 14, 2017 5:39 am

OC version not provided.

More information would be needed as the additional code would need to be provided in order to understand what you are trying to achieve.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Legendary Member


Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 11 guests