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

Dynamic Price Updater

Views: 342,290

Results 641 to 660 of 1,701
17 Jun 2010, 8:30 PM
#641
bigsy85 avatar

bigsy85

New Zenner

Join Date:
Aug 2008
Posts:
50
Plugin Contributions:
0

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

18 Jun 2010, 12:21 AM
#642
sheryll avatar

sheryll

New Zenner

Join Date:
Dec 2009
Location:
New York, NY
Posts:
45
Plugin Contributions:
0

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.

18 Jun 2010, 7:33 AM
#643
ppsoyal avatar

ppsoyal

New Zenner

Join Date:
May 2010
Posts:
33
Plugin Contributions:
0

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

18 Jun 2010, 8:39 AM
#644
bigsy85 avatar

bigsy85

New Zenner

Join Date:
Aug 2008
Posts:
50
Plugin Contributions:
0

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.

18 Jun 2010, 2:21 PM
#645
ppsoyal avatar

ppsoyal

New Zenner

Join Date:
May 2010
Posts:
33
Plugin Contributions:
0

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

18 Jun 2010, 4:56 PM
#646
sheryll avatar

sheryll

New Zenner

Join Date:
Dec 2009
Location:
New York, NY
Posts:
45
Plugin Contributions:
0

Re: Dynamic Price Updater

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.

20 Jun 2010, 11:58 AM
#647
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Dynamic Price Updater

I installed version 2 of this mode. wondering , what is COLOR="Red"[/COLOR] beside the price and how can i remove ?

20 Jun 2010, 1:29 PM
#648
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Dynamic Price Updater

tony_sar:

I installed version 2 of this mode. wondering , what is COLOR="Red"[/COLOR] beside the price and how can i remove ?

never mind , it is quantity ..

22 Jun 2010, 9:24 PM
#649
fe1lho avatar

fe1lho

New Zenner

Join Date:
Apr 2010
Posts:
74
Plugin Contributions:
0

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

23 Jun 2010, 5:18 PM
#650
fe1lho avatar

fe1lho

New Zenner

Join Date:
Apr 2010
Posts:
74
Plugin Contributions:
0

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

26 Jun 2010, 8:01 PM
#651
ppsoyal avatar

ppsoyal

New Zenner

Join Date:
May 2010
Posts:
33
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi again.

I continues with the problem of incompatibility of DPU and atributes replace main product image.

I know Sheryll say something about mootols, but I don´t know what I have to do.

Please could anyone help me.

Thank you very very much

28 Jun 2010, 11:12 PM
#652
guavajoel avatar

guavajoel

New Zenner

Join Date:
Jun 2010
Posts:
3
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome,

This is awesome!

I am having a challenge getting the update to go when my attributes are changed. I have seen other posts where people have had similar issues, but I haven't seen public solutions. Any help on this would save a lot of my skin (there is no hope for saving it all).

Thanks,

Joel

29 Jun 2010, 12:03 AM
#653
guavajoel avatar

guavajoel

New Zenner

Join Date:
Jun 2010
Posts:
3
Plugin Contributions:
0

Re: Dynamic Price Updater

Never Mind!
Stumbled on the answer when I was addressing another issue. Had to turn my "Show Starting At text on Price" to "true" in the product category ->edit-layout :oops:

29 Jun 2010, 12:09 AM
#654
guavajoel avatar

guavajoel

New Zenner

Join Date:
Jun 2010
Posts:
3
Plugin Contributions:
0

Re: Dynamic Price Updater

Now I have another issue.
My attributes change the price by fractions of cents, like $0.035 for Y or $0.025 for Y. The mod will use the numbers as they show for the math. i.e. $0.0035 shows as $0.04 and $0.025 shows as $0.03.

Is there any way to work around this?

Thanks everybody!

Joel

29 Jun 2010, 6:16 PM
#655
fe1lho avatar

fe1lho

New Zenner

Join Date:
Apr 2010
Posts:
74
Plugin Contributions:
0

Re: Dynamic Price Updater

I think that you have to check into the code How the price is genrated, and use some PHP round functions.

23 Jul 2010, 3:36 PM
#656
jmacdoug avatar

jmacdoug

New Zenner

Join Date:
Jun 2007
Location:
NJ
Posts:
84
Plugin Contributions:
0

Re: Dynamic Price Updater

I have just installed Product Attributes Grid and now the Dynamic Price Updater is not working!! HELP!! Does anyone have any advise???

Thanks!:yuck:

10 Aug 2010, 4:50 AM
#657
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Dynamic Price Updater

others seemed to have fixed this. but still trying to figure out the fix for the specials price display. the price updater is displaying the specials price with a line through it instead of the list price with a line through it.

List Price: $157.50
Price: $157.50
Save: 10% off

i've searched and found references to this problem, but not the fix. which file do i need to change tpl_product_info_display??? and what is the change???

thanks

12 Aug 2010, 6:11 AM
#658
ogrelink avatar

ogrelink

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi,

Thanks for the mod. I have a problem with removing the (+price) though. I have upgraded to the DPUV2 and still cannot have the DPU works if I remove the (+price).

The way I remove the (+price) is to change the attributes.php line 158 to

$products_options_display_price='';

I know that you mention it earlier in the post that the V2 version does not depend on the price text but it still does not work for me. Do I do something wrong in the attempt to remove the +price?

Thank you,

13 Aug 2010, 12:56 AM
#659
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Dynamic Price Updater

Just a little follow up. When the product page initially loads, the correct List Price (or regular price) is shown, then the loader image spins and it replaces it with the sale price...

List Price: $157.50 (Should be 175.00 with a line through it)
Price: $157.50
Save: 10% off

Thanks.

17 Aug 2010, 4:21 AM
#660
ogrelink avatar

ogrelink

New Zenner

Join Date:
Aug 2010
Posts:
11
Plugin Contributions:
0

Re: Dynamic Price Updater

:oops: I have both version of DPU installed and it is actually the first one that was in effect before. Deleted the V1 and it works now. I don't have the (+price) and the price still update.

Thanks