Re: Dynamic Price Updater
Has anyone found the solution to this error:
PHP Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/includes/classes/dynamic_price_updater.php on line 198
Line 198 reads like this:
while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {
Any suggestions or a fix would greatly be appreciated.
Thanks
Re: Dynamic Price Updater
Hi
I don't think this has been posted before, I checked and nothing came up.
I was having problems with define('DPU_SHOW_CURRENCY_SYMBOLS', true);
If I used true it wouldn't update the price. If I set it to false there was no currency symbol but it updated.
To correct this I changed localization/currencies - symbol from $ to I then changed all the other currencies to the html number and it works fine.
Fingers crossed!!!
Hope this helps.
Mike
Re: Dynamic Price Updater
Hi
The above code should read & #36; without the space between the & and #
Mike
Re: Dynamic Price Updater
Hi.
Thank you Chrome for your great mod.
And I'm keeping my fingers crossed for your quick recovery.
Quote:
Originally Posted by
HeathenMagic
Hi Dan,
I was using CSS / Javascript loader by Yellow1912. It uses minify technology, and disabling this made your mod work and something else work.
I was wondering, is there a way to display the price for sold out items? I see that it goes to 'Your Price: 0.00'. Just curious.
James
Does anyone find the way to avoid 'Your Price: 0.00'?
Re: Dynamic Price Updater
Quote:
Originally Posted by
perkiekat
Has anyone found the solution to this error:
PHP Warning: Variable passed to each() is not an array or object in /home/xxxxxx/public_html/includes/classes/dynamic_price_updater.php on line 198
Line 198 reads like this:
while (list($option, $value) = each($this->_shoppingCart->contents[$this->_post['products_id']]['attributes'])) {
Any suggestions or a fix would greatly be appreciated.
Thanks
I mentioned this same error a few months ago. Dan said that he created a fix but has since lost the files and unfortunately I wasn't made aware of the fix files otherwise I would have a copy of them to share with you.
Hopefully he will be better soon and will be able to continue his work on this fantastic mod and these issues will be resolved.
I must say that I am very surprised at the small amount of people who seem to have this same issue. Or perhaps they are not checking their error logs so they are unaware of it?
Either way I hope Dan gets better soon and is able to remember what he did so this mod can be fixed.
Re: Dynamic Price Updater
A just spent 30 minutes researching this thread and I think I might be missing the forest for the trees. Could someone quickly tell me how to set up price tiers for product quantities. I've installed this contribute, but I can't find anywhere to set this up. Thanks... I'm obviously missing something obvious...:frusty:
Re: Dynamic Price Updater
I would like to say a great thank you to Dan for this very useful contribution !! really really nice.
I've installed the DPU with msrp support. It works partially good. As you can see here : http://www.fantozzi.net/arredoshop/a...erta-p-21.html , If no attributes selected, the normal price, discont and final, are ok . If you select a "pay attribut", the discount decrease, because the normal price remain as the attribute would not exist (sorry for my english, hope i've been clear). There is a solution on it ?? Thanx again Chrome !!
Bye !
Francesco
1 Attachment(s)
Re: Dynamic Price Updater
Hi,
This is great module and it is really what i wanted in my website. But after installing it I got some problem with it. I can see "Your Price : £213.44(1)" two times on my product info page. Please refer attached image to get more idea.
Any help in this would very appreciated. I am new to zen cart and I tried my best to solve this problem from last two days but couldn't find solution on this.
Many thank,
Vaishali
Re: Dynamic Price Updater
Quote:
Originally Posted by
Chrome
Hi countrycharm
Try this: find line #36 in /includes/modules/pages/product_info/jscript_ajax_updater.php
Code:
var _secondPrice = 'cartAdd';
And change it to:
Code:
var _secondPrice = false;
Let me know how it goes :smile:
Dan
Try this !
Re: Dynamic Price Updater
thanks a lot...it works...omg i'm damn happy... :smile: