What's New
This topic contains 14 replies, has 3 voices, and was last updated by Fadenkreuz Aug '19.
Viewing 15 posts - 1 through 15 (of 15 total)
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic.
This topic contains 14 replies, has 3 voices, and was last updated by Fadenkreuz Aug '19.
Hi guys,
for more than 3 years Transformer (though slightly modified) worked like a charm on our PrestaShop 1.5.6. But … after the upgrade (yes, one can make this work even with 1.5.6!) to PHP 7.2 we found out that some files/modules of the Transformer theme (up to the version of Prestashop 1.7 by the way) are not fully compatible. Basically it’s always the same code:
Validate::$values[‘AnyProperty’]
or
Validate::$field[‘AnyProperty’]
for a correct resolution of the expression you have to insert additional curly brackets:
Validate::{$values[‘AnyProperty’]}
Otherwise you get the error message:
Fatal error: Uncaught Error: Access to undeclared static property ….
So you have to modify this code like below:
if (!Validate::{$field['validation']}($value))
$errors[] = sprintf(Tools::displayError('Field "%s" is invalid.'), $field['label']);
Patches for the affected files (NOTE: Transformer 2.7.9 for PrestaShop 1.5.6!) and others are included as zip files.
Now everything works. However, the module strelatedproducts partout does not display any articles in the frontend, no matter if selected or automatically searched. Is there a bug fix I missed?
Best regards
P.S. For further needs on adapting PrestaShop 1.5 and 1.6 to PHP 7.1 – 7.3 (with additional zip files) see eleazar’s blog topic here: Adapting PrestaShop 1.5 and 1.6 to PHP 7.1 – 7.3
Hi,
If you are using Prestashop 1.5, I don’t suggest you upgrade PHP to 7.2, there are some compatibility issues.
There are a lot of compatibility issues, some up to PrestaShop 1.6.1.24 or even thirtybees 1.08. Anyway, those issues can be fixed without upgrading to a major release. I mean, it depends. I would refrain from an upgrade, if this would lead to other issues. Because some merchants, like us, have implemented many improvements and adds, some of whom wouldn’t work properly after an upgrade. So in any case you need to weigh the pros and cons.
Best wishes
I found the problem of the related products module not displaying products as other product slider modules was due your customizations.
1. You can contact the one who helped you customize your site to fix the problem.
2. If you need our help, then we need to verify your purchase and support time.
Check this https://www.sunnytoo.com/9364/get-updates-transformer-theme-panda-theme-bought-themeforest
1. See attached 1331.jpg, it’s a screenshot of the hookDisplayFooterProduct function in the /modules/strelatedproducts/strelatedproducts.php file.
You changed if(!$this->_prepareHook(0)) to if(!$this->_prepareHook(1)) Why? Change it back to 0.
2. See attached 1332.jpg, /themes/transformer/product-slider.tpl.
{if !empty($product.upc)}
What’s upc? because of products from the related products module don’t have upc, so even if you change 1 to 0 in the previous step, the related product module will show an empty block. You need to add upc to related products, I guess you know how to do that, if you need my help let me know.
You must be logged in to reply to this topic.