Zen Cart Logo
Forums / All Other Contributions/Addons / Dynamic Price Updater with href

Dynamic Price Updater with href

Views: 1,987

Results 1 to 2 of 2
17 Jan 2012, 7:17 PM
#1
maxell6230 avatar

maxell6230

New Zenner

Join Date:
Nov 2009
Posts:
27
Plugin Contributions:
0

Dynamic Price Updater with href

Hi I have DPU installed and this great mod works fine but what I wanted to do was display some attributes as links (href) so when you click on one it changes the price and DPU, so I thought the easiest way would be to just change the attribute drop down and make it hidden all using this code:

<a href="javascript:void(0)" id="option1">£49.00</a>
<a href="javascript:void(0)" id="option2">£89,99</a>
<a href="javascript:void(0)" id="option3">£109.00</a>

<script> $('#option1').click(function() { $('select[name=id[2]] option[value=1]').attr('selected', 'selected'); }); $('#option2').click(function() { $('select[name=id[2]] option[value=2]').attr('selected', 'selected'); }); $('#option3').click(function() { $('select[name=id[2]] option[value=3]').attr('selected', 'selected'); }); </script>

id[2] is my attribute drop down box which changes fine but DPU does not update as I though it would any idea how I can get around this..

Thanks in advance.
Maxell

29 Feb 2012, 11:34 PM
#2
snave avatar

snave

New Zenner

Join Date:
Jul 2008
Posts:
23
Plugin Contributions:
0

Re: Dynamic Price Updater with href

I'm still having the exact same problem. Did you ever manage to find a workaround for this?