VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: fg on September 16, 2013, 12:36:03 PM

Title: Cart product price override
Post by: fg on September 16, 2013, 12:36:03 PM
Hi,

this is my first question in this forum but you helped me a lot so far by answering other questions that were also interesting for me.

I want to manipulate the product-price in the cart. My products can be bundled with various options, that I get in the "customPlugin"-field.
Now I tried to change the price by adding a plgVmOnAddToCart-function and override the $product->product_price in my own plugin.
Unfortunetaly the  product-price is resetted by vm to its default-vm price every time I reload the cart.

Do you have any idea how to permanently manipulate the product price when adding a product to the cart?

Thank you in advance!
Felix
Title: Re: Cart product price override
Post by: Maxim Pishnyak on September 16, 2013, 17:27:57 PM
"Your plugin" is a your custom plugin?
Title: Re: Cart product price override
Post by: fg on September 18, 2013, 16:38:03 PM
yes, its a custom plugin
Title: Re: Cart product price override
Post by: Maxim Pishnyak on September 18, 2013, 20:13:56 PM
I'm not programmer, but did you check available plugins that could be useful for your research?
Title: Re: Cart product price override
Post by: usman124 on September 19, 2013, 07:23:09 AM
ering other questions that were also interesting for me.

I want to manipulate the product-price in the cart. My products can be bundled with various options, that I get in the "customPlugin"-field.
Now I tried to change the price by adding a plgVmOnAddToCart-function and override the $product->product_price in my own plugin.
Unfortunetaly t