Jump to content

Can I change total price before $this->context->cart->getOrderTotal(true, Cart::BOTH); ?


Recommended Posts

Hello, I was wondering if the total price could change before function in PS 1.6:

$ This-> context-> cart-> getOrderTotal (true, Cart :: BOTH);

 

If it's $ 20, add another $ 10 to the total price. What is the way to do that?

Edited by bonevbb (see edit history)

Share this post


Link to post
Share on other sites
  • 6 months later...
On 6/19/2017 at 3:38 PM, bonevbb said:
Hello, I was wondering if the total price could change before function in PS 1.6:

 

$ This-> context-> cart-> getOrderTotal (true, Cart :: BOTH);

 

 

 

 

 

If it's $ 20, add another $ 10 to the total price. What is the way to do that?

 

yes, i wanted to add tax in it, how to addd it?

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
×
×
  • Create New...

Important Information

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