0

Opencart Query the database to get price and attributes of products having same UPC Code. For example you are publishing products from several stores like amazon and ebay in your opencart and want to compare a product for price based on upc.

Therefore, I need to display products having same UPC code.

Can someone create a simple database query for me that I can put on product.tpl page on opencart to show the products price and attributes. The query will take the upc from product detail page's upc code.

Thanks,

4

1 回答 1

1

您可以使用此查询从具有相同 upc 代码的表“产品”中提取产品:

SELECT * FROM products AS pr
 JOIN products AS pr2 ON pr.upc_code = pr2.upc_code AND pr.id <> pr2.id
于 2013-08-27T05:14:50.043 回答