Error on checkout/after_end.php following payment

  • Posts: 17
  • Thank you received: 0
8 years 6 months ago #253647

-- url of the page with the problem -- : www.fleurage-natural-perfume.com.au
-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : Safari 10.0
-- Error-message(debug-mod must be tuned on) -- : Parse error: syntax error, unexpected ''Order Revenue: '' (T_CONSTANT_ENCAPSED_STRING) in /home/fleurage/fleurage-natural-perfume.com.au/templates/rt_paradigm/html/com_hikashop/checkout/after_end.php on line 22

Hi
Customers began reporting error message yesterday.

Have run our own tests today and replicated the error.
Updated Joomla and Hikashop to latest versions.
Error remains.
Payment successfully goes through via credit card or Paypal.
Parse error happens on return to page following payment.

Your kind help please.

Thanks Rob

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

  • Posts: 17
  • Thank you received: 0
8 years 6 months ago #253648

Updated the link to the page.
www.fleurage-natural-perfume.com.au/inde...ter_end&order_id=176

I have deleted this line (line 22) from the after_end.php file
$app->enqueueMessage( JText::_('<br>Order Total: '.$order_total'<br>Order Revenue: '.$order_total - $shipping_price'<br>paradigm<br>') );
and the error message has stopped although the thank you message now appears odd.

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

  • Posts: 83676
  • Thank you received: 13546
  • MODERATOR
8 years 6 months ago #253688

Hi,

This comes from your custom code, not HikaShop.
In the line you deleted, you have an error.
After the first $order_total variable, you should have a dot.
Similarily, after the variable $shipping_price, you're also missing a dot.

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

  • Posts: 17
  • Thank you received: 0
8 years 6 months ago #253717

Thank you for the advice, had forgotten there was custom code there, and even why it is there.

Amend the code to this below?

$app->enqueueMessage( JText::_('<br>Order Total: '.$order_total'.<br>Order Revenue: '.$order_total - $shipping_price.'<br>paradigm<br>') );

Thank you.

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

  • Posts: 83676
  • Thank you received: 13546
  • MODERATOR
8 years 6 months ago #253718

Yes.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum