Re: Dynamic Price Updater
Hi,
I had the problem with attributes replaces main image not working with dpu. I came up with a fix which is below which should work for you, let me know if it does.
Place the code within your tpl_modules_attributes.php and change attrib-2 with the attribute of you option(go into view source to find it). within the code that produces the dropdown on your page you will see code similar to 'getattribimage("id[2]",547,500, this.value,2);' replace it with what you see in the same format, this will ensure the image size remains the same.
<script type="text/javascript">
function afunc(){
getattribimage("id[2]",547,500, this.value,2);
}
var
el=document.getElementById("attrib-2");
try{
el.addEventListener("change",afunc, false);
}
catch(e){
try{
el.attachEvent("onchange",afunc);
}
catch(e){
el.onchange=afunc;
}
}
</script>
Let me know if you have any problems with this, if you have more than one attribute that will replace the attribute image I can help you out with some extra code
Re: Dynamic Price Updater
Thank you Chrome for this wonderful mod. It didn't work at first but then tested it some and then finally realized that DPU and the product image slimbox powered by Javascript clashes. When I removed the javascript from html_header.php DPU worked like a charm. I know there has been many issues with lightbox, slimbox, and all the other "boxes" not being compatible with other scripts. Do you by any chance know how to make them play nicely? I know it's all about changing the name of a variable but not sure which and where to look in the coding.
Re: Dynamic Price Updater
Thank you bigsy85.
I Understand exactly where I have to put the code in tpl_modules_attributes.php.
I search getattribimage, but not find. Could you please said me where I have to put the code?.
Thank you again
Re: Dynamic Price Updater
You can place the javascript anywhere within that file, when I reffered to finding the 'attrib-2' name I meant on your actual html page to find that value. For another site I run I'vre managed to get it running a slightly different way but the code posted earlier should work - if not i'll take alook at your site tonight and help you out.
Re: Dynamic Price Updater
really thank you very much for your interest.
OK, i´m copied the code you post in tpl_modules_attributes.php, and change attrib-2 by attrib-1, that I found in my source, but I think i´m doing something wrong.
This night I will be online waiting for your help about 22:30 pm.
thanks thanks, I think solve this can give other users a perfect tool for this superb cart. ;-)
See you tonight
Re: Dynamic Price Updater
Quote:
Originally Posted by
Sheryll
Thank you Chrome for this wonderful mod. It didn't work at first but then tested it some and then finally realized that DPU and the product image slimbox powered by Javascript clashes. When I removed the javascript from html_header.php DPU worked like a charm. I know there has been many issues with lightbox, slimbox, and all the other "boxes" not being compatible with other scripts. Do you by any chance know how to make them play nicely? I know it's all about changing the name of a variable but not sure which and where to look in the coding.
If anyone is having a similar problem to this I figured out a way to get around this. If you download the zen cart version of the slimbox, it's slimbox1 and that is run by mootools. just install everything following the instructions. Once you install it, google slimbox2 and upgrade it. slimbox2 uses jquery instead of mootools so it does not have any conflict with DPU.
Re: Dynamic Price Updater
I installed version 2 of this mode. wondering , what is (1) beside the price and how can i remove ?
Re: Dynamic Price Updater
Quote:
Originally Posted by
tony_sar
I installed version 2 of this mode. wondering , what is (1) beside the price and how can i remove ?
never mind , it is quantity ..
Re: Dynamic Price Updater
I guys...
Thanks a lot for this contribution.. Great Job I would say.
BUT, this module does not support the internationalisation, and I'm using also a french language.
Is there a chance to get this module with the Internationalisation support ?
Or should I have some tips to make the job and put it back ?
Thanks for your help
Re: Dynamic Price Updater
I've also another problem on products without attributes, the price of the product is 2€ and then is updated to 0€ because there is no attributes.
I've got the version 1.3.8a of the Zencart
Thanks for your help