natiaz Posted April 5, 2016 Share Posted April 5, 2016 Hi, I've developing a module and I need to get all the products in a given cart, by cart ID. I want to show the final price of each product but I can't find the method to apply the country taxes and the special price if the product has it. Thanks! Link to comment Share on other sites More sharing options...
presta4you.com Posted April 5, 2016 Share Posted April 5, 2016 Check function 'SpecificPrice::getSpecificPrice()'. This is very expanded function. You can define id_currency, id_country and many more variables. Link to comment Share on other sites More sharing options...
NemoPS Posted April 6, 2016 Share Posted April 6, 2016 Actually if you use $this->context->cart->getProducts() it should give you all of the possible prices (with and without taxes and reductions) Link to comment Share on other sites More sharing options...
natiaz Posted April 11, 2016 Author Share Posted April 11, 2016 Thanks for your replies, @presta4you.com I'll try the function SpecificPrice::getSpecificPrice(). @Nemo1 the thing is that I need those prices by giving a cart ID, not the context cart. Greetings. Link to comment Share on other sites More sharing options...
NemoPS Posted April 11, 2016 Share Posted April 11, 2016 then new Cart($id_cart) and $cart->getProducts() 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