VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: arnabsaha on October 08, 2014, 07:41:07 AM

Title: Posting values (product quantity, userid) to the product page
Post by: arnabsaha on October 08, 2014, 07:41:07 AM
Hello All,

I'm stuck on a particular task in my current project. What I need to do is, post values like (product quantity, userid) through a PHP module (Jumi) to a particular virtuemart product page.

Basically, I'm working on a crowdfunding type of project. Where users can create events with wishlists of products from the website itself. And when someone contributes to their event/project, the contributor simply types in the amount they wish to contribute and submit. Which will take them to virtuemart product page where user actually buy points via virtuemart (Alpha user points)

The event page: http://giftwise.in.cp-in-1.webhostbox.net/GiftingPortal/index.php/en/search-wishlists/1-my-birthday

And the virtuemart product page: http://giftwise.in.cp-in-1.webhostbox.net/GiftingPortal/index.php/en/contribute-to-wishlists/gift-option-1-detail

I need to pass quantity value from the event page to the product page which should auto-populate the quantity to what was passed.

Also, userid of the event creator, as once the purchase is made, that amount is points which is delivered to the buyer's/contributors account by the Alpha user points plugin. Need to also write a plugin/script to transfer the points to the event creator's account after successful purchase.

My environment:
Joomla 3.3.1
Virtuemart 2.99
Alpha User Points 1.9.8
Crowdfunding http://extensions.joomla.org/extensions/e-commerce/donations/23876
and few other plugins

Any assistance is much appreciated.

Thanks,
Arnab
Title: Re: Posting values (product quantity, userid) to the product page
Post by: arnabsaha on November 11, 2014, 07:48:12 AM
Hello All!
Any ideas?
Title: Re: Posting values (product quantity, userid) to the product page
Post by: Milbo on November 11, 2014, 11:46:50 AM
Use the GET data and a customplugin
Title: Re: Posting values (product quantity, userid) to the product page
Post by: arnabsaha on November 18, 2014, 08:01:16 AM
Thanks! I'm able to pass the value and GET. But, to prefill the quantity in the checkout would need to write a customplugin correct?
Do you have reference to any tutorial for virtuemart plugins?