VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: gba on December 30, 2020, 18:43:32 PM

Title: How to get cart position in 'plgVmOnViewCartVM3' of vmcustom field?
Post by: gba on December 30, 2020, 18:43:32 PM
Hello!

In the cart the products are numbered by a position id.
i.e. the delete button having 'name='delete.[id]"', or there is also a hidden input having 'name="cartpos[]" value="[id]"'.
How can I find out the current cart position id within the function plgVmOnViewCartVM3() of a vmcustom field?

Thank you very much in advance for any useful hint!

Kind regards,
Gerald
Title: Re: How to get cart position in 'plgVmOnViewCartVM3' of vmcustom field?
Post by: gba on December 06, 2021, 10:52:43 AM
Your help still is very much appreciated :)
Title: Re: How to get cart position in 'plgVmOnViewCartVM3' of vmcustom field?
Post by: Studio 42 on December 07, 2021, 21:06:22 PM
I think that no one have understand the question ????
Title: Re: How to get cart position in 'plgVmOnViewCartVM3' of vmcustom field?
Post by: Jörgen on December 07, 2021, 21:09:27 PM
If i get it right the customfields are only called when the position is right. So why the question ?

Jörgen