Jump to content

Récupérer l'url d'une catégorie ou d'une CMS a partir de son id


Recommended Posts

Bonjour à tous

Savez-vous comment récupérer les urls des catégories et des cms à partir de leurs id? 

J'ai essayé Category::getUrlRewriteInformation(112); mais je reçois l'erreur suivante :

Table 'mabase.ps_category_link' doesn't exist

SELECT l.`id_lang`, cl.`link_rewrite` FROM `ps_category_link` cl LEFT JOIN `ps_lang` `l` ON cl.`id_lang` = l.`id_lang` WHERE (cl.`id_category` = 112) AND (l.`active` = 1)

Merci d'avance.

Edited by PrestashopUser03 (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

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