
Originally Posted by
yozoo
After I installed this mod, there is a mistake on my website.
Here is the information displayed on my headline of site:
Warning: Missing argument 2 for currencies::display_price(), called in /home/dvdsclu/public_html/includes/languages/english/extra_definitions/theme/free_gifts.php on line 28 and defined in /home/dvdsclu/public_html/includes/classes/currencies.php on line 99
Warning: Missing argument 2 for currencies::display_price(), called in /home/dvdsclu/public_html/includes/languages/english/extra_definitions/theme/free_gifts.php on line 29 and defined in /home/dvdsclu/public_html/includes/classes/currencies.php on line 99
My version is 1.3.8
Need urgent help... THANKS..
For those folks having problems with this error, go to includes/languages/english/extra_definitions/YOUR_TEMPLATE/free_gifts.php and on line 28 change this:
PHP Code:
define('TEXT_FREE_GIFT', 'Free gift with ' . $currencies->display_price($product_gift->fields['threshold']) . ' purchase.');
to this:
PHP Code:
define('TEXT_FREE_GIFT', 'Free gift with ' . $currencies->display_price($product_gift->fields['threshold'], zen_get_tax_rate($gift->fields['products_tax_class_id'])) . ' purchase.');
and on line 29 change from this:
PHP Code:
define('TEXT_DISCOUNT_GIFT', 'Only ' . $currencies->display_price($gift->fields['products_price'], zen_get_tax_rate($gift->fields['products_tax_class_id'])) . ' with ' . $currencies->display_price($product_gift->fields['threshold']) . ' purchase.');
to this:
PHP Code:
define('TEXT_DISCOUNT_GIFT', 'Only ' . $currencies->display_price($gift->fields['products_price'], zen_get_tax_rate($gift->fields['products_tax_class_id'])) . ' with ' . $currencies->display_price($product_gift->fields['threshold'], zen_get_tax_rate($gift->fields['products_tax_class_id'])) . ' purchase.');
There was an argument missing in the display_price function.
I have this working on 1.3.7.1 with over 100 mods, it took a couple of hours to compare and merge the files. The only thing I have left to do is to get the sidebox working, it's throwing errors.
Once I have this going with my cart I will try it out on a clean 1.3.8a and report back what needs to be done. Obviously, there are missing lines of code in a file or two, so to anyone installing this I can only recommend that you compare and merge the files instead of just uploading the dangling carrot files. It is easy to find the dangling carrot modifications, they either contain the words carrot or gift so searching on those two words will show you where they are in the altered files.
I really appreciate the effort that the author has put into this and I will help out where I can once I have 1.3.8a worked out and running correctly and will update the files in the download so they will work right.