Jump to content

how do i check if a product is being featured or is the best seller?


Recommended Posts

Can i ask how do i check if a product is being featured or is the best seller?


by using the following, i can know if a product is "new"

{if isset($product.new) && $product.new == 1}




by using the following, i can know if a product is "on sales"

{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}



how can i check if the product is being featured or is the best seller?

Link to comment
Share on other sites

im trying along this link for the feature list, but didn't turn out very well

{if isset($product.id_category == 1) && $product.id_category == 1 && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}

Link to comment
Share on other sites

hello, is there anyone can point me to a direction to resolve this issue?

i'm sure there is some variables i can check upon with, just isn't sure which variables is it.


for "Featured Item" i think we can start by checking it against the "Home" categories, but problem is i'm not sure what is the correct syntax to do so.

anyone please?

Link to comment
Share on other sites

I don't think there is existing property in a class you can use.
To check if a product is featured or not, you will need to do some coding I think.

You must check if following record exists in table ps_category_product

id_product = YourProdeuctID , id_category = 1


id_category = 1 is Home featured category

Link to comment
Share on other sites

×
×
  • Create New...