Jump to content
Artizzz

Tags in product page (in version 1.4)

Recommended Posts

Hello!

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,
Artizzz

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)

product-tags.zip

Share this post


Link to post
Share on other sites

thanks a lot Angora, it's very helpful :-)

Share this post


Link to post
Share on other sites

Awesome Angora, thanks!

I add "extra manufacturer" module in attachment maybe you can make it working on version 1.4 too?


Best regards

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

i'm use this module for ps 1.3 but dont show tags on product page. please help me. this module best choice for best seo. Help me tanx.

Share this post


Link to post
Share on other sites

Hi, this module not working in prestashop 1.4.5.1, not show tags, thanks.

Share this post


Link to post
Share on other sites

Hello

 

It's working on Prestashop 1.4.5.1!

 

You can see it working live at Health & Slimming (between ''Customers who bought this product also bought'' and ''Others products in the same category'')

 

Bye

 

Takio

Share this post


Link to post
Share on other sites

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

Hello

 

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.

 

Bye

Takio

Share this post


Link to post
Share on other sites

great modul....

but... that's not work, theres no display the module

I'm using 1.4.4.1 ....

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.

 

VisualTag

 

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 1.4.2.5 and worked well.

Share this post


Link to post
Share on other sites

Up

 

Hi,

 

I can't find the Angora post !

Anyone can give the module for 1.4 please.

Thx

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

 

productpagetags.tpl

At the end of Line 4.

  ~~  

 

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

Share this post


Link to post
Share on other sites

it would be nice to have someone to make this for 1.5 version.

  • Like 1

Share this post


Link to post
Share on other sites

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

 

 

 

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

<?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';
        parent::__construct();
        $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))
                        continue;
                $tags = $tag;
                unset($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 -->
<style>
 .truc2ring {
   display: none;
 }
</style>
{if $tags|@count > 0}
        <h2 class="truc2ring">
        {foreach from=$tags item=tag key=name name=tags}
                {$tag|escape:htmlall:'UTF-8'}
        {/foreach}</h2>
{/if}
<!-- end module productpagetags -->

Share this post


Link to post
Share on other sites

hello

this module installed successfully after the change but not show tag in product page in prestashop 1.5 

plz help

Share this post


Link to post
Share on other sites
Guest
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