Alphapoints not working....I think

  • Posts: 208
  • Thank you received: 10
10 years 9 months ago #145816

-- url of the page with the problem -- : bestedernewsletters.com
-- HikaShop version -- : 2.3.0 Essentials (purchased 2 days ago)
-- Joomla version -- : 2.5.8
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Happy that I finally have the alphauser points showing up on the checkout page as an option.

But something weird is happening.

Here it shows that the user is purchasing $8.32
The points says they have 1100 points and can use 832 of them for a discount. Here's the screen shot



So..... I checked that YES I want to use the points to pay
The point section NOW says that I have 1100 points and can use them for a $11.00 discount
Why is it showing that??? Shouldn't it show that NOW I will have 268 points left (after I apply the 832 for the order?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 9 months ago #145908

Hi,

In the plugin "plugins/hikashoppayment/userpoints/userpoints.php" can you please replace

		if(isset($order->additional['userpoints']))
			$final_price -= $order->additional['userpoints']->price_value_with_tax;

		$pointsDecrease = $final_price * ( 1 / $this->plugin_params->value );
By
	//	if(isset($order->additional['userpoints']))
	//		$final_price -= $order->additional['userpoints']->price_value_with_tax;

		$pointsDecrease = $final_price * ( 1 / $this->plugin_params->value );
It should fix your problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum