This latest version of the extension is the easiest. No more hack, no more component required. No rule to install etc...
1. Install the plugin as any Joomla extension.
2. Create a Virtuemart product category dedicated to Userpoints packages (write down the category id, as it will be required for the plugin settings)
3. Create a Virtuemart product within this new product category. This product is a points package. Call this product for eg: "1000 points" then sell it $10.00
This makes a ration of 100 (1000/10) (required for the plugin settings)
4. Go to extension manager -> Plugins -> VMplayment plugin -> VM2Buypoints to enable and edit the plugin settings.
Note: This is not a true vmpayment plugin. you don't have to create a payment method to use it, just enable it.
5. Settings
Point system: AlphaUserPoints - EasySocial Points - Jomsocial Points
(Whatever you select here make sure the corresponding component is installed and has Userpoints feature (Jomsocial & EasySocial)
Category ID: This is the Virtuemart category ID number of the category you created in s tep 2 for points package
Ration: this is where you set 100 (if you sell 1000 points for 10€).
These parameters are used by the plugin to trigger the points delivery.
When an order is confirmed, if a product is found to be from the points package category, its price is converted into points using the ration (* quantity) and added to customers points account.
Rules usually required for points are automatically added by the plugin during the first transation.
When an order is Canceled or Refunded, the points delivery is reverted.
When changing order statuses more then once, different behaviors occure depending on the Pointsystem:
AlphaUserPoints: thanks to the keyreference parameter, the payment and refund can only happen once. if the order is confirmed again after being refunded, it won't deliver the points again.
Jomsocial: Userpoints have no history here so, every time the order is set to confirmed, points will be added. Every time it's canceled, points will be deducted. Attention: Going from Confirmed to pending then to Confirmed again will deliver twice the points 2 customer.
EasySocial: Userpoints here are almost as good as AlphaUserpoints so we can track points history and avoid to pay and refund more than once.
In conclusion we recommend to use AUP (free) or EasySocial (Paid) Userpoints and to be carefull with useless order status changes if you use Jomsocial Points.
- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.