Author Topic: recalculated (XHR/Json) Post Data - needed.  (Read 481 times)

Adwans

  • Beginner
  • *
  • Posts: 35
  • Beginner, I do think so
recalculated (XHR/Json) Post Data - needed.
« on: November 02, 2016, 22:38:07 pm »
Hello,
I have a problem, 
Need this what is sent by "recalculate" function  during Price update via XHR.
Code: [Select]
CustomProductData[199][24]:"227"In JS/Jquery not a problem. But
I need it in PHP - in custom plugin to modify $modificatorSum with another Customfield's data (from select).
OR:
Last post data sent to server via json/xhr.

Simply: I must have selected option value (from product page) transmitted to plugin in order to correct $modificatorSum.
WHY?: My plugin add some "%" but i have a customfield (select) with product dimensions ("100 x 100 +20USD" for example) and don't want to modify only "product-price" but whole price with this "100 x 100 +20USD". ( price + dimensions_that_added_some_value ) * Some_feature_in_%
 Any suggestion will be great.
Is this somewhere in table, object? joomla post data?


Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9416
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: recalculated (XHR/Json) Post Data - needed.
« Reply #1 on: November 07, 2016, 11:49:50 am »
Beware that you must have a filter method in the trigger, which adds the product for the cart. Because form values must be validated, else they removed (whitelisted). I did want to you want already with our customsize plugin http://extensions.virtuemart.net/products/custom-size-detail
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Adwans

  • Beginner
  • *
  • Posts: 35
  • Beginner, I do think so
Re: recalculated (XHR/Json) Post Data - needed.
« Reply #2 on: March 06, 2017, 11:36:59 am »
Sorry not responding,
Hello Milbo, Thank You.
Solution  was to write a Custom plugin for window dimensions which is now carefully being tested :).  Far less difficult than my initial idea.
Best Regards, Z

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9416
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: recalculated (XHR/Json) Post Data - needed.
« Reply #3 on: March 06, 2017, 18:49:56 pm »
Did you take a look on our customsize plugin?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/