Jump to content

Add prices Drops to FrontController


DieterK

Recommended Posts

Hello,
i whant to hide the menu for prices drops if there are none, i couldnt find a sql statment to just get one product if "price drop".
when i try
 

        $products = Product::getPricesDrop(
            (int)Context::getContext()->language->id
        );

i get an error

(1/1) ContextErrorException

Notice: Trying to get property 'id' of non-object

Any Ideas ?
sorry for early post hit control enter.

Best Regards,
Dieter
 

Edited by DieterK (see edit history)
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...