-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't show multiple features on front end #14
Comments
Strange. Can you check that /override/classes/Product.php exists? public static function getFrontFeaturesStatic($id_lang, $id_product)
{
if (!Feature::isFeatureActive())
return array();
if (!array_key_exists($id_product.'-'.$id_lang, self::$_frontFeaturesCache))
{
Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('SET @@group_concat_max_len = 4096');
self::$_frontFeaturesCache[$id_product.'-'.$id_lang] = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
SELECT name, GROUP_CONCAT(value ORDER BY fv.position SEPARATOR ", ") AS value, pf.id_feature
FROM '._DB_PREFIX_.'feature_product pf
LEFT JOIN '._DB_PREFIX_.'feature_lang fl ON (fl.id_feature = pf.id_feature AND fl.id_lang = '.(int)$id_lang.')
LEFT JOIN '._DB_PREFIX_.'feature_value_lang fvl ON (fvl.id_feature_value = pf.id_feature_value AND fvl.id_lang = '.(int)$id_lang.')
LEFT JOIN '._DB_PREFIX_.'feature f ON f.id_feature = pf.id_feature
LEFT JOIN '._DB_PREFIX_.'feature_value fv ON fv.id_feature_value = pf.id_feature_value
'.Shop::addSqlAssociation('feature', 'f').'
WHERE pf.id_product = '.(int)$id_product.'
GROUP BY name, pf.id_feature
ORDER BY f.position ASC'
);
}
return self::$_frontFeaturesCache[$id_product.'-'.$id_lang];
} |
Hello again, I've tried and even seeing the same code, it does not work. Also tried to give 777 permissions to the whole folder (in any case), but without luck. Here is the full code on Product.php
|
That's weird, because this code is working with many themes. Which one are you using? |
This one: http://www.leotheme.com/prestashop/themes/264-leo-fashion-store.html |
Hard to say if the bug comes from the theme or the module… |
Could be possible that the multiple features should work with any module? Any clue? |
Without seeing the code of the theme you're using, it's hard to tell what's going on... |
Is there any specific file that you should need? Since I'm not aware of send the theme, since I would not like to waste your time checking the whole code. Otherwise, let me know if you need it. |
If there are files like "product.tpl"... |
Well.. Indeed I tried replacing the file with the original theme, but still not working. Anyway here is the code:
|
Bump? |
After solving the install issue, I tried to display 3 features on the front end, but seems impossible.
Here is the screenshot:
As you can see I selected few of them, but as soon as I check the product page, it does not appear:
Where could be the issue?
The text was updated successfully, but these errors were encountered: