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

Dynamic Price Updater

Views: 342,338

Results 1,161 to 1,180 of 1,701
14 Jan 2015, 7:52 PM
#1161
design75 avatar

design75

Totally Zenned

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

Dynamic Price Updater

MarcoB:

Can you tell me where I can find the price? Or maybe refer me to a post in which it is explained?

I assume that from there on I will figure out how to change this :lookaroun

Thx in advance

I'll look it up tommorow, and let you know

20 Jan 2015, 12:05 AM
#1162
cenkki avatar

cenkki

New Zenner

Join Date:
Sep 2010
Location:
Finland
Posts:
59
Plugin Contributions:
0

Re: Dynamic Price Updater

When I change family size price changes. So beautiful. But I also want to change to the extra options. Because family size of extra options are 2 euro. Is it possible?

Attachment 14882

20 Jan 2015, 12:23 AM
#1163
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Dynamic Price Updater

Not sure, but looks like a checkbox is used... Further not sure if the plugin works/recognizes checkboxes... May want to switch to a radio button or dropdown with an additional option of both items and an individual price for that mixture. That's also assuming that the plugin works with multiple attributes.

20 Jan 2015, 12:37 AM
#1164
cenkki avatar

cenkki

New Zenner

Join Date:
Sep 2010
Location:
Finland
Posts:
59
Plugin Contributions:
0

Re: Dynamic Price Updater

But when I change family size same time change to extra options attribute.

22 Jan 2015, 9:10 PM
#1165
marcob avatar

marcob

New Zenner

Join Date:
Jan 2015
Location:
The Netherlands
Posts:
4
Plugin Contributions:
0

Re: Dynamic Price Updater

MarcoB:

Great plugin!!

But I have a question; I would like to have a different fontsize for the komma and the last two digits of the price, is there a way to do this?

I thought I should share my answer to my own question :D
Eventually I figured it out.

In the file /includes/classes/dynamic_price_updater.php at line 83,
after this:

$this->responseText['priceTotal'] .= number_format($this->shoppingCart->total, 2);
    } else {
      $this->responseText['priceTotal'] .= $currencies->display_price($this->shoppingCart->total, 0);

and before this:

    $this->responseText['weight'] = (string)$this->shoppingCart->weight;

I have added this:

    $nweprijs = $this->responseText['priceTotal']  ;
    $this->responseText['priceTotal'] =  '<span class="prijs">' . substr($nweprijs, 0, -3) . '</span>' . '<span class="komma">' . substr($nweprijs, -3) . '</span>';

This will give you extra classes for the price, so it is possible to have something like this: 19,95

It is probably not the best way to do this, but it works :P

25 Jan 2015, 4:01 PM
#1166
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

Is it ok to use Dynamic Price Updater on ZenCart 1.5.3? On the plugin page, it just says 1.5.0 and 1.5.1

25 Jan 2015, 4:03 PM
#1167
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Price Updater

dharrison:

Is it ok to use Dynamic Price Updater on ZenCart 1.5.3? On the plugin page, it just says 1.5.0 and 1.5.1

Yes it is, I have it working on 1.5.3 and 1.5.4 sites

17 Apr 2015, 2:51 PM
#1168
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi

I need to change the position of the DPU line: At the moment it shows underneath our add to cart button. I really need to be able to move it above here as we have quite a lot of options.

I have gone through product-info-display.php, but can see that it is written by JQuery not PHP.

Please could anyone advise?

17 Apr 2015, 3:25 PM
#1169
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

Also I am getting a conflict error thats stopping another function working on in MSIE and iPad (Safari)

I have used Firebug and the Console is throwing the error:

TypeError: objSB.appendChild is not a function

I am using the latest version of DPU as the site is only 4 months old.

Please could anyone advise? Is this a known error?

17 Apr 2015, 4:10 PM
#1170
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

dharrison:

Hi

I need to change the position of the DPU line: At the moment it shows underneath our add to cart button. I really need to be able to move it above here as we have quite a lot of options.

I have gone through product-info-display.php, but can see that it is written by JQuery not PHP.

Please could anyone advise?

Actually this one I did resolve myself: Under configuration My Store > Dynamic Price Updater, Under Where to display the second price I changed from the location from cartAdd to productAttributes.

And this appears after the declared element :blush:

22 Apr 2015, 5:29 AM
#1171
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

I assume I am the only one getting a conflict error. :dontgetit

22 Apr 2015, 6:39 AM
#1172
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Price Updater

dharrison:

I assume I am the only one getting a conflict error. :dontgetit

No you're not :cool:, but I think most people don't know.

I did some changes to get rid of the error, I'll have to look them up. I will come back later to tell you what I did.

22 Apr 2015, 7:50 PM
#1173
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

Aww thanks design75. I remember lst year on setting this up how helpful you are. :cool:

23 Apr 2015, 2:29 PM
#1174
ugurli avatar

ugurli

New Zenner

Join Date:
Feb 2013
Location:
Zürich / Switzerland
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello

Do you have a solution for calculating with Discount in Percent ?

Thanks

23 Apr 2015, 2:33 PM
#1175
ugurli avatar

ugurli

New Zenner

Join Date:
Feb 2013
Location:
Zürich / Switzerland
Posts:
6
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello Design75

Do you have a solution for calculating with Discount in Percent ?

Thanks

27 Apr 2015, 12:16 PM
#1176
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Price Updater

dharrison:

Aww thanks design75. I remember lst year on setting this up how helpful you are. :cool:

I think this is the code you were looking for, in the file "includes/modules/pages/product_info/jscript_dynamic_price_updater.php"

form line 309 remove the following lines. These are I believe obsolete.

<?php
  $show_dynamic_price_updater_sidebox = true;

    if ($show_dynamic_price_updater_sidebox == true)
    {
?>
    createSB();
<?php
    }
?>

And maybe the whole function init() can be removed, but I haven't tested that yet

27 Apr 2015, 12:35 PM
#1177
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

I thought it had, but it doesn't seem to have made any difference.

29 Apr 2015, 9:26 AM
#1178
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

I don't really use the sidebox area so thats probably why removing those lines didn't work for me.

I'll give you all the info I have on my test server: I am using the module http://vinosdefrutastropicales.com/index.php?main_page=product_info&cPath=2_7&products_id=46 which bought the script conflict to light for me.

Using Firebug, I can pinpoint that the error is on line 382 of index.php

Firebug is flagging

NotFoundError: Node was not found - 3 repeats

The line in question is marked in red:

objXHR.prototype.handlePrice = function () {
  var thePrice = document.getElementById('productPrices');
    thePrice.removeChild(loadImg);
  
  // use the spans to see if there is a discount occuring up in this here house
  var test = thePrice.getElementsByTagName('span');
  var psp = false;

Exact printour of console (if this helps):

"firstGroup optionID: 5" jquery.posm_dependencies.min.js:1:1686
Use of getAttributeNode() is deprecated. Use getAttribute() instead. html5player.js:44:0
Empty string passed to getElementById(). magicthumb.js line 11 > eval:1:0
Empty string passed to getElementById(). magicthumb.js line 11 > eval:1:0
Use of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:3:0
"Changed value: 36" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 4" jquery.posm_dependencies.min.js:1:6180
"currentSelections: (5:36)" jquery.posm_dependencies.min.js:1:6835
"Changed value: 36" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 0" jquery.posm_dependencies.min.js:1:6180
"Changed value: 27" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 2" jquery.posm_dependencies.min.js:1:6180
"currentSelections: (5:36,4:27)" jquery.posm_dependencies.min.js:1:6835
"Changed value: 27" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 0" jquery.posm_dependencies.min.js:1:6180
NotFoundError: Node was not found index.php:382:0
"Changed value: 11" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 1" jquery.posm_dependencies.min.js:1:6180
"currentSelections: (5:36,4:27,2:11)" jquery.posm_dependencies.min.js:1:6835
"Changed value: 11" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 0" jquery.posm_dependencies.min.js:1:6180
NotFoundError: Node was not found index.php:382:0
"Changed value: 1" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 0" jquery.posm_dependencies.min.js:1:6180
"Changed value: 1" jquery.posm_dependencies.min.js:1:4872
"nextOptionGroup optionID: 0" jquery.posm_dependencies.min.js:1:6180

I am aware that I have 3 additional modules in place. That unfortunately in beyond my control.

I hope at least some of this helps. As I said, I appreciate any help. :)

5 May 2015, 5:43 AM
#1179
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi, did the above help at all?

5 May 2015, 6:08 AM
#1180
design75 avatar

design75

Totally Zenned

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

Re: Dynamic Price Updater

dharrison:

Hi, did the above help at all?

Sorry, but I have not had the time to look at it. Personally I never use the side box, so I will have to do some research before i can help. With some luck I will have some more time later this week