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

Dynamic Price Updater

Views: 342,345

Results 901 to 920 of 1,701
27 Oct 2011, 11:46 PM
#901
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Dynamic Price Updater

Chrome:

Hi

Right, I have the first test install... I've addressed MSRP first as it is the oldest problem... This may have been a mistake because it's a tricky swine! :lol:

This version should

  • Update the price and leave the MSRP structure intact
  • Update the 'You save' price
  • Update the 'You save' percentage

Also this version should be compatible with the normal products and sales etc. and make all the necessary decisions without any other changes or input

I've highlighted the word 'should' because my testing platform is pretty narrow... Also my testing time is quite tight... Add to this that the more complicated the Updater gets the more it seems to be plotting against me

I would be most grateful if anyone could try the new version[1] and let me know what happens

Cheers!

Dan

[1]MSRP-compatible test Updater

Hi Chrome everything looks good except it has double prices now. You can take a look at it here. Thanks again.

27 Oct 2011, 11:51 PM
#902
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi countrycharm

Try this: find line #36 in /includes/modules/pages/product_info/jscript_ajax_updater.php ```
var _secondPrice = 'cartAdd';

And change it to: ```
var _secondPrice = false;

Let me know how it goes :smile:

Dan

28 Oct 2011, 12:21 AM
#903
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Dynamic Price Updater

Chrome:

Hi countrycharm

Try this: find line #36 in /includes/modules/pages/product_info/jscript_ajax_updater.php var _secondPrice = 'cartAdd';And change it to: ```
var _secondPrice = false;

> 
> Dan
Dan it works great now. There is just one problem. I'm getting a lot of error myDEBUG in my cache folder. This is what it says.

> [27-Oct-2011 20:17:10] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/content/x/x/x/xxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 209
> [27-Oct-2011 20:17:10] PHP Warning:  Variable passed to each() is not an array or object in /home/content/x/x/x/xxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 210

> [27-Oct-2011 20:15:52] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/content/x/x/x/xxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 209
> [27-Oct-2011 20:15:52] PHP Warning:  Variable passed to each() is not an array or object in /home/content/x/x/x/xxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 210
> [27-Oct-2011 20:15:52] PHP Warning:  Division by zero in /home/content/x/x/x/xxxxxxxxxxxx/html/includes/classes/dynamic_price_updater.php on line 117
I have no idea what the errors are.
28 Oct 2011, 12:33 AM
#904
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi countrycharm

I know what the errors are but I'm working on how to solve them

They should be innocuous, but I will get them sorted

Thanks!

Dan

31 Oct 2011, 7:22 PM
#905
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Dynamic Price Updater

I don't know what you did to the last version of DPP but it's working again on my site! :clap:

Sorry to add to your workload.

I am still having a problem with items that do not have a base price of $0 generating incorrect prices. I noticed that you tweaked the jscript_ajax_updater.php file to try to stop it from happening and I also tried the suggestion you made a few posts back and changed

if (empty($pidp))	$load = false;

to

if ((float)$pibp > 0) $load = false;

(after the first statement didn't work, of course) but the wrong price is still showing.

I tried turning off the featured products column that's active on the product info pages without attributes and it works perfectly.

If you get around to it, I would really appreciate any suggestions of how to modify the code so I can get this to work on all of my product info pages.

Thanks in advance!

1 Nov 2011, 9:45 PM
#906
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Dynamic Price Updater

Chrome:

Hi countrycharm

I know what the errors are but I'm working on how to solve them

They should be innocuous, but I will get them sorted

Thanks!

Dan

Thank You

3 Nov 2011, 8:30 PM
#907
cdcr avatar

cdcr

New Zenner

Join Date:
Oct 2011
Posts:
5
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

https://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1973

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

Hi Dan, I think this is what I need. I want to use for Baseball bats. Comes in 2 different Types Wood. Each type has a different price. Would this work?

3 Nov 2011, 8:48 PM
#908
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

I can answer that one - yes it does. Make sure that you have the two differnet attributes against the product (Light Wood & Dark Wood for instance)
Make sure you add the prices to the attributes page and then DPU will do the rest for you.

6 Nov 2011, 5:57 PM
#909
shamik avatar

shamik

New Zenner

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

Re: Dynamic Price Updater

How can I change the location of product attribute and add to cart button ?
I dont like (1) display how to remove it.
is there any way to display price brakdown box in the page itself?
check the link
my shop look like this
Shop

I want some thing like this

8 Nov 2011, 6:47 PM
#910
sethf avatar

sethf

Zen Follower

Join Date:
Sep 2011
Posts:
228
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi

When I installed this mod, it showed 2 prices instead of 1 on my product info display page.

It was displaying:

productPrices

and

productPricesSecond

When I altered the quantity of the product, both of the prices changed.

So, what I did was enter this into my stylesheet.css file:

#productPricesSecond { display: none; }

It has seemed to work, although it is basically just hiding the productPricesSecond, while still updating productPrices.

Is using this method alright? Is there a better way to do it?

I am just making sure. :smile:

Thanks for your feedback.
S

9 Nov 2011, 12:57 AM
#911
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Dynamic Price Updater

SethF:

Hi

When I installed this mod, it showed 2 prices instead of 1 on my product info display page.

It was displaying:

productPrices

and

productPricesSecond

When I altered the quantity of the product, both of the prices changed.

So, what I did was enter this into my stylesheet.css file:

#productPricesSecond { display: none; }

It has seemed to work, although it is basically just hiding the productPricesSecond, while still updating productPrices.

Is using this method alright? Is there a better way to do it?

I am just making sure. :smile:

Thanks for your feedback.
S

If you will read some of the thread you will see that has already been covered in post 887

17 Nov 2011, 11:35 AM
#913
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Re: Dynamic Price Updater

soaduk:

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:

Hi all, I also would like this functionality exactly as described by soaduk, does anyone have any ideas?

17 Nov 2011, 12:16 PM
#914
moesoap avatar

moesoap

Zen Follower

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

Re: Dynamic Price Updater

Hi,

Can anyone suggest a way to get this to work in Product-Music, including product prices second?

17 Nov 2011, 12:27 PM
#915
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi all

Schoolboy, I'm not familiar with that module so I'm afraid I couldn't tell you how the Updater would react with it... If you want to try the Updater on your site and if it does blow up then the Updater can easily be disabled by prefixing an underscore before the script filename... Give it a try and let me know how you get on

Gangees, I have updated the Updater to handle some sales, but I'm not certain if the salemaker is covered... Any chance you can give it a try and let me know your findings?

I apologise for once again taking so long to reply; it has been a complicated year... Please provide URLs for failing or broken pages and I'll take a look as soon as I can

I will release the MSRP version over the next day or 2 officially... I'll post on here when it becomes available

Cheers

Dan

17 Nov 2011, 12:29 PM
#916
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi moesoap

It's not working for music? Hmm, that's odd... I've never really tested there... Do you have a URL so I can take a look?

Dan

17 Nov 2011, 12:33 PM
#917
moesoap avatar

moesoap

Zen Follower

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

Re: Dynamic Price Updater

Sorry Dan I don't have a direct link as it's on localhost.

If I price via attributes in music, no price displays, it just says YOUR PRICE: Also Product Prices Second doesnt display.

Works great on the normal Product_info_display

Is there any files i can attach that might help?

Thanks.

17 Nov 2011, 12:37 PM
#918
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi moesoap

I see the problem now... Didn't consider that... Easy fix... Copy the file jscript_ajax_updater.php from /includes/modules/pages/product_info to /includes/modules/pages/product_music_info/

And that should do it... Let me know how you get on

Dan

17 Nov 2011, 12:44 PM
#919
gangees avatar

gangees

New Zenner

Join Date:
Feb 2011
Posts:
16
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi all

Gangees, I have updated the Updater to handle some sales, but I'm not certain if the salemaker is covered... Any chance you can give it a try and let me know your findings?

Thanks for quick response Chrome, I am running a sale using the salemaker and the price updater works very well, please click here to see. Click the next button through products 1 - 4 to see it in action.

I would just like the "Save: 15% off" text to remain, together with the old price with the strikethrough, instead of it appearing briefly then vanishing.

Thank for any help!

17 Nov 2011, 12:45 PM
#920
moesoap avatar

moesoap

Zen Follower

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

Re: Dynamic Price Updater

Chrome:

Hi moesoap

I see the problem now... Didn't consider that... Easy fix... Copy the file jscript_ajax_updater.php from /includes/modules/pages/product_info to /includes/modules/pages/product_music_info/

And that should do it... Let me know how you get on

Dan

Hi Dan,

It hasn't made any difference. I'll check the other 3 files to see if product_info_display is specifically mentioned.

I know it's difficult to fix without a link.

Thanks.