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

Dynamic Price Updater

Views: 342,327

Results 781 to 800 of 1,701
26 Jun 2011, 12:36 AM
#781
belaze avatar

belaze

New Zenner

Join Date:
Dec 2006
Posts:
84
Plugin Contributions:
0

Dynamic Price Updater

Hi All,
I recently found your add on and installed and it works great. Thanks Chrome!

I had one question, can I disable a category to not use the DPU?

Thanks,

2 Jul 2011, 5:00 AM
#782
shockraver avatar

shockraver

New Zenner

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

Re: Dynamic Price Updater

bigsy85:

Hi Chrome, there's an option in CEON to add an exception for a file which I did for dpu_Ajax.php.

This helped me alot, thanks.

i added dpu_ajax.php to the exclude list, now it works....

the DPU also gives "Service unavailable" error in the product info page, when the store is "down for maintenance" by the way, but this isnt really an issue, just annoying when testing the site :)

2 Jul 2011, 6:34 PM
#783
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hey all

The Updater can't block categories currently... It would have to be a custom addition... PM me if you like

I've figured out why the Updater doesn't work when the site is down for maintenance: it's a header that the server issues (302 I think)... Let me look into this

Cheers

Dan

3 Jul 2011, 1:21 AM
#784
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: Dynamic Price Updater

Chrome:

Hi

CybaGurl, $300 shouldn't be an issue... By large price I was thinking more around the $10,000 mark... It might be an idea to create a product around that price to test then delete it

Hi Dan and sorry for the late reply.

I will edit a product and change the price to 10,000 and let you know what happens.

Chrome:

It's very strange that you should have had the 'Status returned' error in V1 as that part of the script was never present in V1; V1 used the client machine to 'read' the page and manipulate the values it found whereas V2 picks up the user choices and sends the data to a server-side routine to take care of the heavy lifting... V2 is much more accurate because it uses the native code in a virtual cart environment... When you get a 'not found' status it means the Ajax request failed as the server returned a 404 error (file not found) when requesting the calculation, which is why for that particular error it's easier to see the site in action

Yes I am not to sure why the error popped up. But when I have more time I will look into this on the test cart setup and see if I can work it out and will report back to you.

littlekid440:

also I wanted to make sure the developers and all users know that this does not work if your website is down for maintenance
So if anyone here can't figure out why its not working.. make sure its not set under maintenance
:lamo:

DPU works for me when in maintenance mode.

ShockRaver:

This helped me alot, thanks.

i added dpu_ajax.php to the exclude list, now it works....

the DPU also gives "Service unavailable" error in the product info page, when the store is "down for maintenance" by the way, but this isnt really an issue, just annoying when testing the site :)

Again I do not get this "Service unavailable" error from DPU when the the store is Down for Maintenance.

7 Jul 2011, 9:36 AM
#786
lazzo85 avatar

lazzo85

New Zenner

Join Date:
Sep 2007
Location:
Italy
Posts:
7
Plugin Contributions:
0

Re: Dynamic Price Updater

I can put DPU in a single product?

7 Jul 2011, 6:03 PM
#787
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

CybaGirl, thanks... Let me know how you get on... Feedback is always helpful :smile:

nolsowski, you need to open dpu_ajax.php in the root of your site and on lines 6 and 7 you will see the settings you require... Simply put in the details you want

Lazzo85, sorry, no... For the Updater it's all or nothing (currently)

Cheers

Dan

9 Jul 2011, 1:11 AM
#788
nolsowski avatar

nolsowski

Inactive

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

Re: Dynamic Price Updater

Chrome:

Hi

CybaGirl, thanks... Let me know how you get on... Feedback is always helpful :smile:

nolsowski, you need to open dpu_ajax.php in the root of your site and on lines 6 and 7 you will see the settings you require... Simply put in the details you want

Lazzo85, sorry, no... For the Updater it's all or nothing (currently)

Cheers

Dan

Thank you! :D

10 Jul 2011, 2:55 PM
#789
nolsowski avatar

nolsowski

Inactive

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

Re: Dynamic Price Updater

I just noticed I have some errors in my error log. Could someone tell me what they mean and how to fix them please?

PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 194, referer: http://frompropertorocker.com/surfs-up-pacifier-clip-p-23.html

PHP Warning: Variable passed to each() is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 195, referer: http://frompropertorocker.com/2-scoops-or-3-pacifier-clip-p-15.html

I have these same ones for a lot of my products.

Thanks!

11 Jul 2011, 4:15 PM
#790
nolsowski avatar

nolsowski

Inactive

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

Re: Dynamic Price Updater

nolsowski:

I just noticed I have some errors in my error log. Could someone tell me what they mean and how to fix them please?

PHP Warning: reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 194, referer: http://frompropertorocker.com/surfs-up-pacifier-clip-p-23.html

PHP Warning: Variable passed to each() is not an array or object in /home/fromprop/public_html/includes/classes/dynamic_price_updater.php on line 195, referer: http://frompropertorocker.com/2-scoops-or-3-pacifier-clip-p-15.html

I have these same ones for a lot of my products.

Thanks!

Okay I just checked my error log this morning and they went away. However I noticed it came back when I am adding new products. It will have the new product that I added in the link.

17 Jul 2011, 3:05 AM
#791
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: Dynamic Price Updater

rainestudios:

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

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

thanks,
amy

Chrome:

Hi

@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

Hi Dan,

Just checked my error logs today and it seems I am getting the exact same error that Amy was getting in her quoted post above and your reply in which you replied with the above.

Like Amy everything seems to be working fine apart from this error appearing in the error log which is as follows:

[17-Jul-2011 11:48:27] PHP Warning:  reset() [<a href='function.reset'>function.reset</a>]: Passed variable is not an array or object in /home/my_site/public_html/includes/classes/dynamic_price_updater.php on line 194
[17-Jul-2011 11:48:27] PHP Warning:  Variable passed to each() is not an array or object in /home/my_site/public_html/includes/classes/dynamic_price_updater.php on line 195

Now on lines 194 and 195 it states the following.

        reset($this->_shoppingCart->contents[$this->_post['products_id']]['attributes']);
        while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {

So I am wondering if by any chance you have had the time to figure out what is causing this error and how to fix it?

Thanks.

PS: Still haven't had time to check the tax fix yet but haven't forgotten about it and will look into it very soon :).

22 Jul 2011, 10:26 PM
#792
ermogui1099 avatar

ermogui1099

New Zenner

Join Date:
Mar 2011
Location:
San Francisco
Posts:
2
Plugin Contributions:
0

Re: Dynamic Price Updater

I hope my late contribution can still be of some use...

My team just developed this improved dynamic pricing module based on the original plug-in found on an earlier post.

Now we can show both dynamic prices and discounts information on one product page.

See the details here:

http://www.spicyspirit.com/blog/?p=572

You are welcome ;-)

22 Jul 2011, 10:59 PM
#793
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

I don't endorse this version

Cheers

Dan

22 Jul 2011, 11:21 PM
#794
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi

Please be aware that the 'fix' offered by ermogui1099 replaces the classes/shopping_cart.php core file... The Updater never interferes with core files

Cheers

Dan

23 Jul 2011, 3:37 AM
#795
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: Dynamic Price Updater

Hi Dan,

Do you know if DPU would be affected by a Javascript loader and in particular this version of the loader?

https://github.com/yellow1912/cjloader/tree/master/zencart_files/includes

As I was getting the errors mentioned in my previous post every minute in the error directory after upgrading to this version of the loader. I had to upgrade to this version of the loader for the Tab Products Pro mod to work as I was getting errors posted in the error directory relating to this mod and I tracked it down to being caused by an earlier version of this Javascript loader. Then when I upgraded the Javascritp loader the errors for the Tab Products Pro mod went away. But it caused the errors to increase for DPU.

Here is some more information on this Javascript loader.

http://wiki.rubikintegration.com/zencart/modules/css_javascript_loader/about

So for the time being unfortuantly I had to disable DPU until I can figure out how I can get it to work along side Tab Products Pro and this new version of the Javascript loader.

If you any suggestions or ideas I would greatly appreciate hearing them :).

Thanks.

23 Jul 2011, 2:06 PM
#796
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi CybaGirl

Do you have a URL where I can see the conflicting module in action? I should be able to work out a switching method from that

Cheers

Dan

23 Jul 2011, 3:55 PM
#797
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,592
Plugin Contributions:
0

Re: Dynamic Price Updater

Moderator's note: Add ons that are supported on this forum are supposed to be in the Free Add Ons section. Please upload your mods, with the appropriate documentation and GPL license.

Since we somehow missed this a long time ago, you have 24 hours to comply before this thread is removed.

23 Jul 2011, 5:31 PM
#798
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Kim:

:thumbsup: Very nice Dan!

From the 14th of July 2007. So, let me get this straight: I've written this mod for free, I've paid money from my own pocket to keep it free, I've supported it for 4 years without asking for anything in return and when I ask for some support because someone has illegally removed my name from my own mod, promoted it as their own and not even notified me of it you are going to chastise ME?

Some fun facts:

  1. You, Kim, were the first person to ever post a reply on this thread AFTER YOU HAD VIEWED THE CODE
  2. 4 years. It took 4 years to notice this and a REQUEST FOR YOUR HELP is what has lead you to this decision. I can see now why Zen Cart V2 hasn't been released
  3. Zen Cart is a 'community' (that's the most fun I've had with the irony of a 'fact')

So, please, feel free to remove this thread. Devoid your users of support and make it so that I will never again even consider writing an add-on for Zen Cart. I am extremely angry at this; I've tried my level best to try and find free time to make Zen Cart a better, more appealing piece of software and provide friendly and free assistance to anyone that asks. I thought this was in keeping with the Zen Cart ethos

I look forward to tomorrow and the removal of this thread; it will prove a suspicion

Yours in good grace and murderous anger

Dan

P.S. I've never mentioned this but to keep the Updater free I gave up half of a £1000 fee to retain the rights for the community. V2 wouldn't exist if I hadn't done this

23 Jul 2011, 6:39 PM
#799
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,592
Plugin Contributions:
0

Re: Dynamic Price Updater

Dan-

My comments were for both of the mods mentioned in this thread.

I'm not sure how this fell through the cracks, I probably haven't visited this thread since I posted that original comment.

The Zen Cart policy has been posted in the tutorials/FAQ for years. Please see:

https://www.zen-cart.com/tutorials/index.php?article=11

23 Jul 2011, 7:11 PM
#800
chrome avatar

chrome

Zen Follower

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

Re: Dynamic Price Updater

Hi Kim

I recall a conversation with a mod about uploading it to the official section of the site (in fact, it may have been with you) and it was determined that, until the code had reached sufficient reliability, it would not be accepted and I should continue the hosting method I was using. As I received no notification as to whether my (quite popular (I hope) and easily downloadble) contribution was acceptable I continued hosting it at my expense to keep it available to anyone it could be useful for

I know this is far from the most popular thread, but at 98,000 views and 80 pages I would consider it a little tricky to overlook

I'm happy to upload my mod to the contributions sections and change my links to point there. I will leave the original page open in case people don't know it's been moved. There are, however, 3 points: one request, nay demand; one question; one complaint. Here goes

The request, nay demand: I want the inclusion in the contributions section to be immediate and seamless. I believe that, even though I have some bugs to fix, the Updater has proved its worth

The question: Why do I have to attach a GPL licence? Doesn't forcing me to use a licence that explicitly supports freedom induce no small amount of irony? My licence is simple: "Pass it around, it's free! Don't take my name off it and if you make any changes run it past me first". Be damned, cursed legalese! I wont for the day your wretched existence is vanquished

The complaint: Wouldn't this have been better handled by PM? Your response was discourteous at best. This whole exchange has damaged both the reputation of the community moderators and myself. I don't relish exchanges of this nature in an area that is meant to be friendly and supportive. ED-209 should not be allowed to post publicly. You have 24 hours to comply (that's just for humour, however the effect should be the same)

I've installed Zen Cart hundreds of times, I've recommended it tirelessly and I've tried to pay back the kindness I believe existed here. The curtness of the response is insulting

I apologise to everyone, including Kim, for ranting and if this has upset anyone but I'm angry and upset. This rant can at least be published; my original string of expletives cannot

Kim, can you grab a copy of the Updater from my sig and arrange the inclusion, please?

Yours in hope of a brighter future

Dan