KrisXin Posted January 21, 2019 Share Posted January 21, 2019 Hi there community, First, I'm new to prestashop. I've been playing around the source a bit. What I need to do (dont ask why...) is to "skip" the group discount when getting the price of the products, so the front page always shows the same price for everyone. I tried modifying the 'specific prices' modifiers by customer, group, and supplier, but without success. Any help, please? Thanks! Link to comment Share on other sites More sharing options...
joseantgv Posted January 21, 2019 Share Posted January 21, 2019 47 minutes ago, KrisXin said: Hi there community, First, I'm new to prestashop. I've been playing around the source a bit. What I need to do (dont ask why...) is to "skip" the group discount when getting the price of the products, so the front page always shows the same price for everyone. I tried modifying the 'specific prices' modifiers by customer, group, and supplier, but without success. Any help, please? Thanks! Do you want to skip specific price at front page but apply them at cart? Link to comment Share on other sites More sharing options...
KrisXin Posted January 21, 2019 Author Share Posted January 21, 2019 (edited) 2 hours ago, joseantgv said: Do you want to skip specific price at front page but apply them at cart? Kinda. I want to apply them only when making the invoice. It's for privacy purposes. Edited January 21, 2019 by KrisXin (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted January 22, 2019 Share Posted January 22, 2019 Did you try to put {debug} or {$product|print_r} in your template? With such debug code you can see which variables are available in Smarty. There might well be a price without discount. Link to comment Share on other sites More sharing options...
KrisXin Posted January 23, 2019 Author Share Posted January 23, 2019 12 hours ago, musicmaster said: Did you try to put {debug} or {$product|print_r} in your template? With such debug code you can see which variables are available in Smarty. There might well be a price without discount. Yep. At least in the $product object, there's no information about the price without the group discount : ( Link to comment Share on other sites More sharing options...
musicmaster Posted January 23, 2019 Share Posted January 23, 2019 In that case you will to go to the code that calls the template and add the full price to the product object/array. Link to comment Share on other sites More sharing options...
musicmaster Posted January 23, 2019 Share Posted January 23, 2019 BTW: did you check out the settings for product in the backoffice? There are some relevant options there too. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now