Internal 500 error when checkout with points

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
7 years 7 months ago #267446

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6
-- Error-message(debug-mod must be tuned on) -- : Call to undefined method hikashopCartClass::loadCart() in /home/petstore/web/theon linepetstore.com.my/public_html/plugins/hikashoppayment/userpoints/userpoints.php on line 463

Call to undefined method hikashopCartClass::loadCart() in /home/petstore/xxx/public_html/plugins/hikashoppayment/userpoints/userpoints.php on line 463

Dear we hit above error when using AUP point as checkout payment, may we know what should we do or any misconfiguration of our setting?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267463

Hello,

It looks like your using the "UserPoints" plugin in the mode which create a coupon (and not in "virtual coupon" mode).
Please comment the line 463 of the plugin, it will avoid the fatal error and it should work properly.

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.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
7 years 7 months ago #267542

Dear Jerome

Yes, you are right, the error gone when we turn on "virtual coupon"

However we do not wish coupon to be generated, even if we comment out the line the coupon is still generated, and after commenting the line we can not lead to checkout finish page, is that something wrong?

Last edit: 7 years 7 months ago by Jerome. Reason: removing useless quote

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 7 months ago #267552

Hi,

It is normal that the coupon is still generated when you remove that line. That line should just not be there with the new cart system of HikaShop 3, and removing that line was only to fix that error message.

Regarding the fact that the coupon is still generated, that's because you have the virtual coupon turned off. If you turn it off, the system won't create a coupon, it will display as a coupon on the checkout, but it won't be a real coupon, hence the "virtual coupon" name.

Regarding the finish page, I can't say if it's related to the points or not, or why. We would need more information, on how your checkout is configured, how your points plugins are configured, a link to the shop and the steps to reproduce the problem. Also do you have the problem with other payment methods like bank transfer ? Do you have the problem with the default template of Joomla ? Any error message when you do that test ?

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
7 years 7 months ago #267572

Dear Nicolas

Thanks for your reply

You can reproduce the problem as below

Turn off/on virtual coupon (both lead to the same)- > address -> select a shipping method -> select a payment method (point method if virtual is off) - > finish hit -> and it will direct back to "address" -> shipping method -> and now payment method will left with other option and finally we can checkout)

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 7 months ago #267575

Hi,

That's not precise enough. We don't know how your checkout or points are configured.
You say "and it will direct back to "address"" but with a default install of HikaShop, there is no redirect. The checkout is all ajax in one step. So we don't know what is the problem nor why.
Again, please provide the information I asked about:

We would need more information, on how your checkout is configured, how your points plugins are configured, a link to the shop and the steps to reproduce the problem. Also do you have the problem with other payment methods like bank transfer ? Do you have the problem with the default template of Joomla ? Any error message when you do that test ?

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

Time to create page: 0.063 seconds
Powered by Kunena Forum