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

Dynamic Price Updater

Views: 342,345

Results 1,061 to 1,080 of 1,701
18 Sep 2013, 10:20 PM
#1061
chrome avatar

chrome

Zen Follower

Join Date:
Jul 2005
Location:
Wales, UK
Posts:
392
Plugin Contributions:
0

Dynamic Price Updater

Hi

The reason this happens is because the Updater is Ajax-based and browsers request the dpu_ajax.php file. As far as I'm aware there's no way round this. It has been mentioned earlier in the thread if I'm not mistaken, but I don't believe a solution was found

Dan

24 Oct 2013, 7:44 PM
#1062
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Dynamic Price Updater

Congratulations...worked first time.

Some observations on this version 3.1.1.

  1. FFox with Web Developer flagged up a js error.

Warning: ReferenceError: assignment to undeclared variable updateSidebox

referrring to its first use here

        var sbContent = '';
        updateSidebox = true; HERE
    } else {
        updateSidebox = false;

So I declared it at the start:

  var psp = false;
  var updateSidebox;
  1. Chrome flagged another error

Uncaught NotFoundError: An attempt was made to reference a Node in a context where it does not exist.

Referring to:

objXHR.prototype.handlePrice = function () {
  var thePrice = document.getElementById('productPrices');
  thePrice.removeChild(loadImg); HERE

Changed this to

    if (thePrice.loadImg) {
  thePrice.removeChild(loadImg);
  }
  1. I noted that the method of switching off of the sidebox code generation is not implemented. ie it still fires when the sidebox is not enabled in the Admin as
$show_dynamic_price_updater_sidebox = true;

is set manually in three places.
I did make some effort to make it work but lost interest when passing a variable into the class method, so just disabled the code in the three relevant places as I don't use the sidebox.

24 Oct 2013, 10:16 PM
#1063
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Dynamic Price Updater

torvista:

Congratulations...worked first time.

Some observations on this version 3.1.1.

  1. FFox with Web Developer flagged up a js error.

referrring to its first use here

    var sbContent = '';
    updateSidebox = true; HERE
} else {
    updateSidebox = false;
> 
> So I declared it at the start: 
> ```
  var psp = false;
  var updateSidebox;
  1. Chrome flagged another error

Referring to:

objXHR.prototype.handlePrice = function () {
var thePrice = document.getElementById('productPrices');
thePrice.removeChild(loadImg); HERE

> 
> Changed this to 
> ```
    if (thePrice.loadImg) {
  thePrice.removeChild(loadImg);
  }
  1. I noted that the method of switching off of the sidebox code generation is not implemented. ie it still fires when the sidebox is not enabled in the Admin as

$show_dynamic_price_updater_sidebox = true;

> is set manually in three places.
> I did make some effort to make it work but lost interest when passing a variable into the class method, so just disabled the code in the three relevant places as I don't use the sidebox.

Thanks, I will add these to the next update asap
2 Nov 2013, 12:19 PM
#1064
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Dynamic Price Updater

This is easier if superglobals is used to show the session variable only.

Scenario

Not logged in.
Go to a product and add it to the cart.
Go to another category and then a product.
The session, navigation object will contain two or three entries, but the last one has the current product_info page and id, and the second-to-last entry the category path as shown below.
Attachment 13287
Now go to the shopping cart.
The “Back to Shopping” button is not linking to the last product but to the index page and the navigation object shows why: the information is gone.

This is what is in the object.
Attachment 13288
This is what should be in the object.
Attachment 13289
What wipes it is the call to application_top.php made in dpu_ajax.php

As I have already spent a phenomenal amount of time tracking this down and there are a few things in this addon's code that I don't get, …I’m handing this over...good luck!

15 Dec 2013, 8:00 PM
#1065
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

zencart 1.3.9h

display price twice as shown below
Price: $5.99
Price: $5.99

how I can make it once?

19 Dec 2013, 6:22 PM
#1066
vasudev_bhat avatar

vasudev_bhat

New Zenner

Join Date:
Jun 2011
Posts:
1
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi guys,
i have installed this addon but unable to get it working.
I am using a template downloaded from template monster
http://homestore.co.in/ is the site.

am i doing something wrong..
plz help

20 Dec 2013, 12:06 AM
#1067
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

[Attachment no longer available]

See attached file. How to fix price issue? It is appearing twice. Thanks

12 Jan 2014, 1:04 AM
#1068
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Dynamic Price Updater

You can switch it off in configuration/dynamic price updater/where to display the second price . Just leave that box blank.

13 Jan 2014, 12:52 PM
#1069
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

I don't see configuration/dynamic price updater in admin.

14 Jan 2014, 9:14 AM
#1070
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Dynamic Price Updater

jsarwar:

I don't see configuration/dynamic price updater in admin.

I've got the latest version of dynamic price updater 3_0_1 installed on zencart 1.5.1.In your admin panel,right over to the left ,there is a column called configuration.That produces a drop down menu,at the bottom of which you should see a box titled dynamic price updater,where you can change the settings.
If you don't see that,you haven't installed it correctly,so check your install.

14 Jan 2014, 9:49 AM
#1071
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

Thanks. One more question. I have dynamic price updater, facebook pop up and fec checkout installed. All 3 of these have jscript files and all 3 files try to load when site is opened which make site speed slow, I was told I should have only 1 jscript file and other two I should rename so only one version load but when I do that module for which I rename file, it does not work. Do you know how I can make it to load one file and work for all so site speed does not slow?

14 Jan 2014, 2:59 PM
#1072
gsmafia avatar

gsmafia

New Zenner

Join Date:
Nov 2004
Location:
Portugal
Posts:
25
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi,
I install DPU on fresh Zencart with one theme that i buy. But on the firefox i see my ID of the element and on the place of my price the ID is #productPrices.productGeneral, i want to put the DPU work on here, i try to put on configuration "where to display the price" this= productPrices.productGeneral and #productPrices.productGeneral but nothing...on my theme i don't have the defult cartAdd...

Anyone help fix this?

Regards.

15 Jan 2014, 12:49 AM
#1073
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Re: Dynamic Price Updater

jsarwar:

Thanks. One more question. I have dynamic price updater, facebook pop up and fec checkout installed. All 3 of these have jscript files and all 3 files try to load when site is opened which make site speed slow, I was told I should have only 1 jscript file and other two I should rename so only one version load but when I do that module for which I rename file, it does not work. Do you know how I can make it to load one file and work for all so site speed does not slow?

You should look for answers to this in a different thread.It's not really a question about this module.But have a look here.http://www.zen-cart.com/wiki/index.php/Customisation_-_Templates_-_Javascrip

15 Jan 2014, 8:46 AM
#1074
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: Dynamic Price Updater

* was told I should have only 1 jscript file and other two I should rename *
Not strictly true.
If any of these mods require the same code/library, ie a copy of jquery, then you should be loading only one instance of that.
If the code in the other javascript files uses the same variable names outside functions then they should be changed to avoid conflicts.

So to start, load the jquery with one jscript file, then add the second jscript file and fix any problems, then add the the third and fix the problems.
When all works you can combine the three into one file if you wish but not the jquery one, leave that loading separately and first.

15 Jan 2014, 11:20 AM
#1075
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

torvista
Thanks for input. Can I send you file and you merge them for me as I am not good combining them?

20 Jan 2014, 8:25 AM
#1076
speedyrider avatar

speedyrider

New Zenner

Join Date:
Jan 2014
Posts:
32
Plugin Contributions:
0

Re: Dynamic Price Updater

Its working ok only for one time. Once that it stops working, i go into the admin console and the dynamic price updater status returns to false by itself. Any idea whats going on?

My site: www.kite-addic***tion.es/tienda (delete the *)

21 Jan 2014, 6:28 PM
#1077
kcin avatar

kcin

New Zenner

Join Date:
Jan 2014
Location:
Florida
Posts:
39
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello all.

First post, just fired up my first zencart web store. I installed Dynamic Price Updater so that when options were selected they would reflect in the price right away.

I'm just curious if anyone else has noticed a significant loss in speed to their site when they install this plugin? After I installed it, it went from near instantaneous, to some times as much as 3-4 seconds for the site to load.

21 Jan 2014, 6:29 PM
#1078
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

See my posts on top. I am having same issue. because multiple jquery files are trying to upload which slows site speed. I have not come up with solution. If you do please let m

21 Jan 2014, 7:36 PM
#1079
kcin avatar

kcin

New Zenner

Join Date:
Jan 2014
Location:
Florida
Posts:
39
Plugin Contributions:
0

Re: Dynamic Price Updater

Are you sure its jquery? I just did a file search for jquery and the only return I got was a template I'm not even using.

21 Jan 2014, 7:41 PM
#1080
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Dynamic Price Updater

May I have your site?