Jump to content

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 (see edit history)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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