Combinations matrix above other product's descriptions in PrestaShop

I described here the best way of how to move combinations table module above other product page descriptions.

Whole process is based on 3 things:
1) Creation process of new hook in shop with free module "hooks manager"
2) Modification of your theme product.tpl file
3) Upload new modified version of combinations tab pro module (it supports new hook)

1) Create new hook
Please download and install free module "hooks manager", on module configuration page "add new hook" wityh name "AboveDescription", exactly as i show on this image: 

2) Modification of product.tpl file
Open product.tpl file located in your theme directory find a code that is responsible for product's description (more info etc.)
right above the code paste this: {hook::exec('AboveDescription')} this is code that executes our new hook in this position

3) Install modified version of Combinations Table module that i attached
You can also add this short snippet to module functions:
    public function hookAboveDescription($params)    {        return $this->prepareTableOptions($params);    }    


to disable module in other positions (like tabs / product's footer) please go to modules > positions and just unhook module from:
- displayProductTab
- displayProductTabContents
- displayProductFooter

best regards,
Share on Google Plus


This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment


Post a Comment