News:

Looking for documentation? Take a look on our wiki

Main Menu

Get cart session and change price

Started by baoquocmt159, March 27, 2015, 09:34:40 AM

Previous topic - Next topic

Milbo

Quote from: baoquocmt159 on March 28, 2015, 04:25:28 AM
Because i want choose options on the cart page, not productdetail page. Please help me.

You still need a vm plugin and you still must use the trigger used in the customplugins to change the price. By security reasons it does NOT work to change the price in the session, it would be corrected by the system. You MUST use a correct plugin and it is nonsens to write a joomla plugin, if we have already a pattern for it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Quote from: Datalynk on September 24, 2015, 00:05:09 AM
Hi, I know this is a dead thread, however I am looking at the same problems myself and was wondering if you could let me know how you solved the issue, or perhaps let me have a copy of your plugin  :)

Dean
Skype: Datalynk

yeh that would be indeed interesting.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

likrish

I understand that a properly constructed plugin IS the way forward, however I would like to know which of the available types of VM plugin is most suited to this task (i.e. vmcalculation or vmcustomfield etc...).

Milbo

vmcustom

check the textinput plugin and the function plgVmPrepareCartProduct
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

PRO

Quote from: Datalynk on September 24, 2015, 15:49:17 PM
I understand that a properly constructed plugin IS the way forward, however I would like to know which of the available types of VM plugin is most suited to this task (i.e. vmcalculation or vmcustomfield etc...).

vm custom field


likrish

Thank you Milbo, I have found what I need in the textinput plugin to override product price...