Jump to content

Add prices Drops to FrontController


DieterK
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More