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,
Views: 342,327
New Zenner
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,
New Zenner
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 :)
Zen Follower
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
Zen Follower
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.
Inactive
How can I delete the text "Your Price:" and how can I delete or turn off the quantity next to my price?
Thanks!
Test site in case you need it.
http://frompropertorocker.com/fptrtest/index.php?main_page=product_info&cPath=1_2&products_id=2
New Zenner
I can put DPU in a single product?
Zen Follower
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
Inactive
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
Inactive
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!
Inactive
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.
Zen Follower
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 :).
New Zenner
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 ;-)
Zen Follower
I don't endorse this version
Cheers
Dan
Zen Follower
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
Zen Follower
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.
Zen Follower
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
Obaa-san
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.
Zen Follower
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:
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
Obaa-san
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:
Zen Follower
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
Fields marked required must be completed.
Tell staff why this post should be reviewed.