Jump to content

Extend Meta.php to top parent category & manufacturer


Pitak

Recommended Posts

 

Dear all,

 

I need to generate product meta titel in a generic way:

 

product_name – top_parent_category – default_category – manufacturer

 

I followed the following post https://www.prestashop.com/forums/topic/559116-transform-id-category-into-name-of-that/?p=2415636 and just replaced $row['name'] to $row['meta_title']. It works fine. But in my case I need to fetch top parent category like this: cat 1 → cat 2 → cat3, I need cat1, not cat2. I tried to use function getParentsCategories, but without success :(

 

Is it also possible to fetch manufacturer and product features?

 

Can anybody help? PS 1.6.1

 

Thanks & regards,

Britta

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...