Jump to content

Display all product attachments to customers


Recommended Posts

Hello all,

 

Just starting out with Prestashop, and was wondering if there was a built in method or module to display a page listing all the product attachments to end-users.

 

For instance under "Customer Service", we want a "Product Manuals" page. Ideally this wouldn't be hard-coded links … rather, we would prefer some code to dynamically spit them out as links to the page (with product name as the link text, not a GUID).

Link to comment
Share on other sites

  • 1 month later...

I think that with this query you'll obtain the data that your searching

 

SELECT *, ( SELECT osl.`name` FROM `ps_order_state_lang` osl WHERE osl.`id_order_state` = o.`current_state` AND osl.`id_lang` = 2 LIMIT 1 ) AS `state_name` FROM `ps_orders` o LEFT JOIN `ps_customer` c ON (c.`id_customer` = o.`id_customer`) WHERE 1 AND o.id_shop IN (1)  ORDER BY o.`date_add` DESC

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...