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

Dynamic Price Updater

Views: 342,316

Results 741 to 760 of 1,701
21 Feb 2011, 10:20 PM
#741
design75 avatar

design75

Totally Zenned

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

Dynamic Price Updater

thx that did the trick.

I've been trying to make it multi lingual. the easiest way is to remove the defines from dpu_ajax.php , and place them in includes/languages/YOUR_LANGUAGE/YOUR_LANGUAGE.php

that worked for me :yes:

2 Mar 2011, 3:07 PM
#742
spiritcraft avatar

spiritcraft

New Zenner

Join Date:
May 2009
Posts:
34
Plugin Contributions:
0

Re: Dynamic Price Updater

Excellent mod... I installed it in a new 1.39h cart that will be replacing our 1.38a store. It seems to work well... have not added sales yet however...

I do have a question... is there a way for the top price to remain static? We have long descriptions and the only price seen when selecting attributes is the bottom one... I suppose it does not matter much nut was trying to figure that out without any luck.

All in all... very nice thank you.

4 Mar 2011, 2:25 AM
#743
manxaura avatar

manxaura

New Zenner

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

Re: Dynamic Price Updater

Hi,

First off, this mod rocks. Top marks to Dan for all the time and effort.

Anyway, I was looking for a solution to a niggling problem with DPU and found a 'fix' on Page 52 (October 2009) of this thread. One user (izar74) posted that he had the problem of DPU adding 1% to the product prices (as displayed on the product information page). I have the exact same problem.

Now, izar74's solution was to make a 'tiny' change which I followed and it worked for me - phew. However, according to Dan, it's not the best solution as it could have unintended consequences as the fix removes the tax.

So my question is, has this bug been looked into further but not incorporated into the latest version of the mod? I've just installed DPUv2 (from august 2009) and since I get the 1% extra on my prices, I'm assuming it hasn't been corrected in the download files. Hopefully there is a fix for it. :smile: I'm pretty certain it has to do with rounding of the decimal places of the product net price.

Cheers

7 Mar 2011, 7:13 PM
#744
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Thanks for the support :smile: and sorry for not replying sooner

@spirit: The only way I can think of is to change the element the Updater looks for when it changes the price... It will definitely cause Javascript errors and to be honest I don't know if it will halt script execution... If you want to try it, find the line that says:

define('DPU_PRICE_ELEMENT_ID', 'productPrices'); // this is the ID of the element where your price is displayed

And change 'productPrices' to an element that doesn't exist... Let me know if that works because if it doesn't I do have another idea

@manxaura: Unfortunately, things keep preventing me from working on these little niggles with the Updater... I know they're important and I can only promise that as soon as I can I'll get around to fixing them... I really do hope this will be soon

Just as a matter of interest, the date of August 2009 is only when the Updater was first monitored for how many downloads it receives... It's had minor tweaks and fixes since then but it has no official versioning... I might start a system, though

Cheers

Dan

10 Mar 2011, 2:09 AM
#745
mattieh1 avatar

mattieh1

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi

I don't know if this module will be of any use to anyone but I've been asked to include it a couple of times so thought I'd release it into the wild to see if anyone can make use of it... Here's what it does:

When you have a product with attributes that alter the price this module will update the price displayed on the page instantly... This gives customers an at-a-glance price total as opposed to having to work it out themselves

The updater should (in theory) work with any amount of attributes

There is a readme included in the ZIP but installation is literally to just upload the file... It overwrites nothing, has no database hooks and is completely autonomous... if it breaks just delete the file

Currently it only works with attributes that are SELECTs... If it works for people I will update it to handle the radio boxes and checkboxes

The file can be found at http://chrome.me.uk/PriceUpdater.zip

A working version can be seen at http://www.studio5.uk.com/index.php?main_page=product_info&cPath=2&products_id=3

Let me know if it does/doesn't work or if anyone wants anything added or changed

Dan

Im having an issue with the cart, just added a new vendor to my cart. The issue only affects new items i recently added that have price attributes. When the quantity goes up, the price remains for 1 item. Previous items ive added with price attributes dont have this isssue. What do i have to change?

10 Mar 2011, 6:22 PM
#746
rainestudios avatar

rainestudios

New Zenner

Join Date:
Jan 2010
Posts:
21
Plugin Contributions:
0

Re: Dynamic Price Updater

I'm still getting this error in my logs constantly:

[10-Mar-2011 09:24:33] PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in //rainestudios.net/includes/classes/dynamic_price_updater.php on line 194
[10-Mar-2011 09:24:33] PHP Warning: Variable passed to each() is not an array or object in /
/rainestudios.net/includes/classes/dynamic_price_updater.php on line 195

It doesn't seem to affect the functionality, everything is displaying fine in my shop, but this can't be good, right?

thanks,
amy

15 Mar 2011, 5:57 PM
#747
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

@mattieh1: Do you have a link for your site? I don't recall this issue being raised before but go for a hunt through the thread to see if there are any similar reports... Off the top of my head I can't think of any reason that would happen

@amy: You're quite right, that shouldn't be... I'm quite surprised it's actually still working :blink:... I'll check out your site see if I can see any weird data getting thrown about

Cheers

Dan

18 Mar 2011, 4:59 PM
#748
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan -

Just a few posts back (#737) I posted a code change I made to v1 of your DPU mod so I could get it to display the way I wanted.

I've just come across an anomaly and wondered if there was an obvious explanation. I add codes in parentheses at the beginning of each attribute. These codes make it easier to fulfill orders. I've discovered that if I have parenthesis containing LETTERS and no spaces, then the price dynamically recalculates placing the text from that code into the price display. So I guess it's interfering with the code.

So (L), (R), (LL) results in the error and but (1), (L L) don't make the error. You can see in the link below where I experimented with lots of variations to figure out the exact ingredients for the error.

http://focalpointhardware.net/index.php?main_page=product_info&cPath=10_38_43&products_id=234

I haven't upgraded to v2 because this was working fine for me up until now. If you tell me there is no fix for this version I may upgrade to V2 and try to recreate my display.

Thanks for your help!

-Andy

18 Mar 2011, 5:08 PM
#749
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

I'm afraid to say that there really isn't a cure for this... Y'see, the original Updater uses a regular expression to 'read' the page and make decisions based on certain patterns it finds... Now, this regex (called seeker) is quite complex and I doubt it would be easy to upgrade

As a workaround you could try using square brackets or even the brace {}

Cheers

Dan

18 Mar 2011, 7:05 PM
#750
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: Dynamic Price Updater

Thanks for your quick reply. I think I will try Brackets instead.

Is regex is the same for V2 also?

18 Mar 2011, 7:24 PM
#751
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

V2 doesn't use the seeker regex, it doesn't use a search regex at all... The new system works by gathering the IDs and values of the form and submitting them to an Ajax script... It makes the front-end more stable and minimises the amount of code delivered to the browser (faster page load)

You don't have to delete V1 to disable it temporarily; you can just prepend an underscore to the filename :smile:

Good luck and let me know if you need any help

Dan

15 Apr 2011, 9:47 AM
#752
soaduk avatar

soaduk

New Zenner

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

Re: Dynamic Price Updater

Hi everyone, i have this installed and mostly working, but is it right that on items using the salemaker, it makes the original price and the "Save: 10% off" text vanish , replaced with just the new price?? I would really like it to keep the "Save: 10% off" text showing if possible, not even bothered about the old price with line through though that would be a bonus. Any ideas, I have read through every page of this thread I think :frusty:

17 Apr 2011, 8:42 PM
#753
kbear avatar

kbear

New Zenner

Join Date:
Mar 2011
Location:
In a green and pleasant land
Posts:
46
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi
I really don't have a problem - this thread and the amount of effort you put into it have allowed me to sort everything out.

Just wanted to thank you Dan for a fantastic mod

:clap:

21 Apr 2011, 12:57 PM
#754
bhadz08 avatar

bhadz08

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello,

I have tweak the attributes to do the length * width * material cost (all attributes) and get the final price in the shopping cart and using the custom code found in http://www.zen-cart.com/forum/showthread.php?t=101372&highlight=square+foot&page=2 number 15.

My question is how can i do this in the Dynamic Price updater?
And which code in DPU i have to edit?
Or have someone did this already?
Please can u tell me where do i start and what are the steps?

Any help is much appreciated.

Thanks

8 May 2011, 8:50 PM
#755
mgwirelessllc avatar

mgwirelessllc

New Zenner

Join Date:
Apr 2011
Posts:
29
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi, Chrome:

I installed the dynamic Pice updater, and it seems it doesn't work for my ZJ-orange template, how is that, did I missing something? https://www.flyonwireless.com

thanks.

8 May 2011, 9:40 PM
#756
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi all

First off, sorry for not being around too much; life just doesn't seem to want to give me any free time

About the salemaker: apologies for this, I know a lot of people need this to work... I'll see if I can find some time to fix it

kbear: Thanks! :smile: it's always nice to know people appreciate the effort (even if I haven't been able to support this the way I would have hoped)

bhadz08: As I don't know what you have tweaked I can't really give you any advice further than check out the Updater file in /classes/... All the code to work out the product price is in there

mgwirelessllc: I don't see the Javascript for the Updater on your site... I think the page may be overridden by the template so you would have to locate the jscript_ajax_updater.php file in the override folder... That should cure it for you

Thanks for all the support, guys

Dan

9 May 2011, 3:28 AM
#757
rdezso avatar

rdezso

New Zenner

Join Date:
Apr 2011
Posts:
9
Plugin Contributions:
0

Re: Dynamic Price Updater

Hello,

Thanks for the great mod Dan.
I have a slight problem with DPU working with the Attribute image replaces main image mod.

If I enable DPU i can no longer have the picture change when an attribute is selected.

Any help would be greatly appreciated, Again thanks for all the hard work.

Here is a page with said example.

http://begreencanada.ca/index.php?main_page=product_info&cPath=53&products_id=189

5 Jun 2011, 7:27 AM
#758
shockraver avatar

shockraver

New Zenner

Join Date:
Nov 2004
Posts:
47
Plugin Contributions:
0

Re: Dynamic Price Updater

hi,

First of all, very nice module... works great.

What i'm trying to is to display a simple table below the attributes, which calculates the quantity price including the attributes.
the quantity discount does this, but only on the base price. I what it to show like DPU.
So actually... my dynamic price is shown below the attributes, can i copy/paste it several times, and multiply it somehow ??

zencart 139h
temp website running here: http://www.arjonoostrom.nl/zen/index.php?main_page=product_info&cPath=2&products_id=2
(i have hidden the attributes prices, but they are calculated)

Thanks
Eelco

5 Jun 2011, 9:12 AM
#759
shockraver avatar

shockraver

New Zenner

Join Date:
Nov 2004
Posts:
47
Plugin Contributions:
0

Re: Dynamic Price Updater

ShockRaver:

hi,

First of all, very nice module... works great.

What i'm trying to is to display a simple table below the attributes, which calculates the quantity price including the attributes.
the quantity discount does this, but only on the base price. I what it to show like DPU.
So actually... my dynamic price is shown below the attributes, can i copy/paste it several times, and multiply it somehow ??

zencart 139h
temp website running here: http://www.arjonoostrom.nl/zen/index.php?main_page=product_info&cPath=2&products_id=2
(i have hidden the attributes prices, but they are calculated)

Thanks
Eelco

what i just thought of.... some attributes have a onetime charge, so simply multiply won't work.... any way to do this ?

9 Jun 2011, 10:34 AM
#760
moesoap avatar

moesoap

Zen Follower

Join Date:
Mar 2010
Posts:
258
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi!

The (1) that's shown is the quantity... to disable it open up includes/modules/pages/product_info/jscript_updater.php and find the line that says:

var showQuantity = true;

Change the true to false... If you don't want the quantity to show up in the sidebox, adjust the line directly below this:

var showQuantitySB = true;

Again, change the true to false

Don't remove the (+$5) from your attributes... the Updater reads those values and makes its adjustments based on them

HTH

Dan

Does anyone know how to remove the quantity in the latest version? The code listed above is not in "jscript_ajax_updater.php" located in product_info.