Author Topic: Get cart session and change price  (Read 4418 times)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Get cart session and change price
« Reply #15 on: September 24, 2015, 10:07:09 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Get cart session and change price
« Reply #16 on: September 24, 2015, 10:08:38 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Datalynk

  • Beginner
  • *
  • Posts: 23
  • Innovative & Ground Breaking Solutions
    • Datalynk UK | Website Design and Development
  • Skype Name: Datalynk
  • VirtueMart Version: 2.6.6
Re: Get cart session and change price
« Reply #17 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...).
Dean
Senior Development Consultant
Datalynk UK

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9853
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Get cart session and change price
« Reply #18 on: September 24, 2015, 21:54:02 pm »
vmcustom

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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10337
  • VirtueMart Version: 3+
Re: Get cart session and change price
« Reply #19 on: September 25, 2015, 14:33:44 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

J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

Datalynk

  • Beginner
  • *
  • Posts: 23
  • Innovative & Ground Breaking Solutions
    • Datalynk UK | Website Design and Development
  • Skype Name: Datalynk
  • VirtueMart Version: 2.6.6
Re: Get cart session and change price
« Reply #20 on: September 25, 2015, 17:34:56 pm »
Thank you Milbo, I have found what I need in the textinput plugin to override product price...
Dean
Senior Development Consultant
Datalynk UK