Jump to content

Tags in product page (in version 1.4)

Recommended Posts


I have problems with tags displaying in product page, I can't find any modification to display tags in product page. In previous prestashop(v1.3.x) it been easy because there been module, but that module and other solutions don't work in version 1.4.
So maybe someone can help me to figure out how to display tags in product page?

Best regards,

Share this post

Link to post
Share on other sites

Ok, I add it on attachment. And I add manufacturer module too, they both been awesome on previous prestashop versions. I will be really great if you can make them compatible to prestashop 1.4.

Best regards

Edited: I can't add second module(extra manufacturer)


Share this post

Link to post
Share on other sites
As far as an ‘extra manufacturer’ module? I have zero interest in that.

...but I did follow the link and review the code.
Beyond sloppy, the author had the nerve to bundle a 20k+ "Acceptable Use Policy" with the module? Gaw!

Did you edit the css file, or does its content reflect what was originally bundled with the module?
It references classes which aren't relevant to the module's output -- useless.

Anyhow, I'm posting to underscore a point:
FREE modules should be distributed via forum attachments, rather than from offsite locations.

Otherwise (and with special attention to the "do not redistribute" licensing/rules/AcceptableUse shite, as in this example)
shop owners face the risk of installing half-assed, and potentially vulnerable, third party modules
which haven't been subjected to peer review.

No I don't edit it at all, just downloaded and tested if it's working.
Ok thanks for pointing, now I will know about file uploading, but do that because I can't add it here(I don't know why, I tried many times)

Share this post

Link to post
Share on other sites
  • 4 weeks later...
  • 6 months later...

Hello, thank you very much for responding, but I do not get to see the tags on the product, I'm using prestashop 1.4.5 with the original template and the tags do not appear, the truth that I have no idea what happens but not shown anyway thank you very much! regards

Share this post

Link to post
Share on other sites



Don't forget to add the 'Hook' from the module 'Product Page Tag' (Yep! the one with the dancing green banana :D) in the 'Product Footer' or anywhere else where you need make it appear.




Share this post

Link to post
Share on other sites

For Prestashop 1.4 users, you need to modify psf_producttag.php and psf_producttag.tpl.

You can refer to following forum.




Although it's written in French, you have no problem to understand it. Or you can use Google translation service.


If someone has top menu CSS error at your theme after install this module, you need to modify "hookheader" at psf-producttag.php because it links its own CSS file.


I tested it at PS and worked well.

Share this post

Link to post
Share on other sites
  • 1 month later...
  • 2 months later...
  • 1 month later...

Thanks.... :) Looks nice on my dvd-product pages, only "~" this sign, can i change this?



At the end of Line 4.



Change the ~~ to what you like.. ;)

Share this post

Link to post
Share on other sites
  • 5 months later...
  • 1 year later...
  • 1 month later...

Here i adapt the "Product Page Tags" module for Prestashop 1.5.




module class file : /modules/productpagetags/productpagetags.php

class productpagetags extends Module
    public function __construct() {
        $this->displayName = 'Product Page Tags';
        $this->description = 'cross-sell: each product page provides links to similarly-tagged items';
        $this->name = 'productpagetags';
        $this->version = 1.1;
        $this->author = 'Yer mom Moddead by robinhook';
        $this->tab = 'front_office_features';
        $this->page = basename(__FILE__, '.php');
        $this->context = Context::getContext();
        $this->ps_versions_compliancy = array('min' => '1.5', 'max' => '1.6');        

    public function install() {
           if ( !parent::install() OR !$this->registerHook('displayFooterProduct') )     
           // OR  !$this->registerHook('displayHeader')  // header hook not required (not injecting addCSS call)
                  return false;
           return true;

    public function uninstall() {  return parent::uninstall();  }

    public function hookDisplayFooterProduct($params)
        $tags = array();
        $product = new Product(  intval(Tools::getValue('id_product')) );
        if (!Validate::isLoadedObject($product))
                return '';
        $temp = explode(",", $product->getTags($this->context->language->id) );
        foreach ($temp as $value)
                $tag = new Tag(null, trim($value), $this->context->language->id );
                if (!Validate::isLoadedObject($tag))
                $tags = $tag;
                        $tags = Tag::getProductTags( intval(Tools::getValue('id_product')) );
                        $tags = $tags[$this->context->language->id];
        $this->context->smarty->assign('tags', $tags);
        return $this->display(__FILE__, 'productpagetags.tpl');

//  public function hookDisplayHeader($params) {  Tools::addCSS(($this->_path).'productpagetags.css', 'all');  }    //  just say NO! to gratuitious css includes


template file : /modules/productpagetags/productpagetags.tpl

<!-- module productpagetags -->
 .truc2ring {
   display: none;
{if $tags|@count > 0}
        <h2 class="truc2ring">
        {foreach from=$tags item=tag key=name name=tags}
<!-- end module productpagetags -->

Share this post

Link to post
Share on other sites
  • 7 months later...
This topic is now closed to further replies.
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More