Skip to content

Commit

Permalink
added global and shop scoped show_price to optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Stubbe committed Nov 1, 2023
1 parent 63b1d83 commit d01f04a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/front/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ public function getJsonResponse()
$sql = "SELECT p.id_product, p.reference, m.name as 'manufacturer_name', pl.link_rewrite, p.date_add,
pl.description, pl.description_short, pl.name, p.visibility, psa.quantity as 'quantity',
ps.active as 'shop_active', p.active as 'product_active',
ps.available_for_order as 'shop_available', p.available_for_order as 'product_available'
ps.available_for_order as 'shop_available', p.available_for_order as 'product_available',
ps.show_price as 'shop_show_price', p.show_price as 'product_show_price'
FROM " . _DB_PREFIX_ . "product p
LEFT JOIN " . _DB_PREFIX_ . "product_lang pl ON (p.id_product = pl.id_product)
LEFT JOIN " . _DB_PREFIX_ . "category_product cp ON (p.id_product = cp.id_product)
Expand All @@ -474,7 +475,8 @@ public function getJsonResponse()
$sql = "SELECT p.id_product, p.reference, m.name as 'manufacturer_name', pl.link_rewrite, p.date_add,
pl.description, pl.description_short, pl.name, p.visibility,
ps.active as 'shop_active', p.active as 'product_active',
ps.available_for_order as 'shop_available', p.available_for_order as 'product_available'
ps.available_for_order as 'shop_available', p.available_for_order as 'product_available',
ps.show_price as 'shop_show_price', p.show_price as 'product_show_price'
FROM " . _DB_PREFIX_ . "product p
LEFT JOIN " . _DB_PREFIX_ . "product_lang pl ON (p.id_product = pl.id_product)
LEFT JOIN " . _DB_PREFIX_ . "category_product cp ON (p.id_product = cp.id_product)
Expand Down

0 comments on commit d01f04a

Please sign in to comment.