Jump to content

Recommended Posts

Hi,

 

I would like to display a column with the product tags in admin (in product listing) :

(On the screenshot, i’ve translated the column name "tag" by "artists" but it is the tag datas)

 

420356tagsoverride.png

 
I’ve created an override of AdminProductsController.php
 
Then, I’ve extended the query in order to display tags in a column.
 
$this->_join .= ' LEFT JOIN `' . _DB_PREFIX_ . 'product_tag` AS p_tag ON (p_tag.`id_product` = a.`id_product`) ';
 
Now, i can display the tag id in a column.
 
How can i have now the tag name (column name of tag table)
 
I don’t know how to make this double join in pretsashop ? 
Edited by Cloud Nine (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 3 years later...
  • 3 years later...

Hi,
Got the same issue, I would like to search for a tag in the back office/
Ex: 
In tags, I put product reference, that, I can search in front office, to check available quantity.
When quantity is zero = automatically, product is not visible any more, neither the tag.
But then, When I receive new products or new stock, to check if the product/article sheet exists or not, in my thousand of article, i need to be able to search by tag if I already insert this product/article sheet.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...