You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
I have a calculation script that updates the quantity field on the product detail page based on the value of another input field. Is there a way I can manually call the priceAutoUpdate to update the price as it only currently seems to work on keyup when editing the quantity field directly.
Thanks,
Simon
Offline
Sure. In your product detail display includes (Desktop and Mobile), edited under:
Store > Store Displays > Product Detail Displays
Add this code to the bottom right before the closing PHP tag:
$js_docready = 'priceAutoUpdate({\'formid\': \'' . $formid . '\', \'inputid\': \'' . $inputid . '\'});'; $this->append_global_array('core.js_docready',$js_docready);
Offline