Jump to content

How to query for special offer products


Recommended Posts

Hi,

 

I'm creating a custom module. It's working okay so far, but I now need to query for products that have a special offer. So I basically need all products that have a $product['specific_prices']['to'] – do you know how I can get there?

 

Best regards, tey

Link to comment
Share on other sites

to get prices drop products you can use static function:

Product::getPricesDrop();

function has got arguments:

 

/**

* Get prices drop
*
* @param integer $id_lang Language id
* @param integer $pageNumber Start from (optional)
* @param integer $nbProducts Number of products to return (optional)
* @param boolean $count Only in order to get total number (optional)
* @return array Prices drop
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...