Jump to content
mantas393

How to temporarily change product price?

Recommended Posts

Posted (edited)

I'm developing a module that would suggest a few products in cart with temporary discount. The discount would be applied, only if product is added to cart from this "suggestion section". 

I'm currently stuck with trying to change product price. Is there any method that i could use to change the products price? Or maybe there are some other way to change price?

Edited by mantas393

Share this post


Link to post
Share on other sites

You will need to create a specific price linked to the current cart, you can create this from the code.

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

×

Important Information

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