News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Modify product price with plgVmPrepareCartProduct and product_override_price

Started by sandomatyas, July 08, 2024, 15:28:43 PM

Previous topic - Next topic

sandomatyas

Hi

I wrote a small VM custom plugin that uses some parameters and plgVmPrepareCartProduct to modify the product's cart price. It's quite similar to text_input and works almost the same.

My problem is with the product price overrides. When I use product_override_price, plgVmPrepareCartProduct modifies $modificatorSum but product_override_price overrides it.

Is it possible to add my custom extra price using plgVmPrepareCartProduct even when the product price is overridden?

Thank you.

Jörgen

The product price override is AFAIK an override, that's it. It is a legacy function from VM 1.xx and can not be mixed with the never flexible price system. Not much of any help. Maybe someone else has any ideas.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.