aualtopoll Posted October 14, 2013 Share Posted October 14, 2013 Hello. I'm using prestashop 1.5.6 Is it posible to obtain the absolute url of a product through ps webservices? Thanks 1 Link to comment Share on other sites More sharing options...
seb776 Posted November 13, 2013 Share Posted November 13, 2013 Hi, did you find a solution with the api or did you rebuild the url in your script ? Link to comment Share on other sites More sharing options...
aualtopoll Posted November 13, 2013 Author Share Posted November 13, 2013 Hi, The url is going to depend on your URL & SEO configuration. My configuration is the default settings of prestashop. I used webservices to obtain: product id category id product link rewrite category link rewrite The url then is formed like this $url = "your_shop_base_url" . $category_link_rewrite . "/" . $product_id . "-" . $product_link_rewrite . ".html" Hope it helps Link to comment Share on other sites More sharing options...
seb776 Posted November 13, 2013 Share Posted November 13, 2013 ok, thanks. it would have been better if the api returned the url in case the shema changes. Too bad. I will also rebuilt it. Link to comment Share on other sites More sharing options...
Recommended Posts