Jump to content

[solved] Where can i find the product name and description in Prestashop database with Mysql select?


Recommended Posts

Where can i find the product name and description in Prestashop database with Mysql select?

 

Im creating my own product list and i need make this with mysql_query.

I can find stock,product_id,reference,price,..... but i cant find the product name and product description.

 

Anybody knows where can i find this values?

At now my select is...

 

 

$result = mysql_query("SELECT prod.id_product,prod.reference,prodstock.quantity

FROM ps_product prod, ps_stock_available prodstock

WHERE prod.id_product=prodstock.id_product");

 

Anybody can help me??

Link to comment
Share on other sites

  • 6 months later...

May be this with a LEFT OUTER JOIN ?

 

SELECT ps_product_lang.name AS nom_produit,

ps_product_lang.description_short AS description_courte_produit,

ps_product_lang.description AS description_produit

FROM ps_product_lang,

ps_lang

WHERE id_product = ".$id_produit."

AND ps_product_lang.id_lang = ps_lang.id_lang

AND iso_code = '".$_SESSION['langue']."'

Link to comment
Share on other sites

  • 2 years later...

Hi, i would create query to shows 


PRODUC TNAME, COUNTRY, QUANTITY SALES and SALE DATE. 


Because in STATS->BEST-SELLING PRODUCTS i can't shows also country that products are sold


 


Please help me

Link to comment
Share on other sites

  • 8 months later...

Hi there!

I end up here cause I am search wich is table with name of product...

 

I had some problem with duplicated product, I NEED TO ERASE PRODUCT WITH SAME NAME AS SKU, 

but I don't figure out which the query could be...

 

 

I messed up!

Thanks guys for your help

Link to comment
Share on other sites

×
×
  • Create New...