Posted - 02/20/2023 : 11:38:25
Hi folks,
I've recently completed some work on an old site and, whilst all appeared well, the client has just spotted some cart related problems.
I did three things and am unsure as to what exactly has cause the problem, as it's only seen during checkout: 1, updated to PHP 7.4 from PHP5.6 2, updated the cart to v7.5.5 (not sure of the previous version but possible a year or so out of date) 3, implemented Search Engine friendly URLS
Problem 1: There are strange issues with the cart. If you add a product to the cart, the mini-cart link at the top right increments to show the number of products in the cart. Hovering over the mini-cart link displays the contents of the cart, but clicking on the link says "there are no items in the cart". If you navigate the site and add another product all the previous items reappear. Clicking the link again shows an empty cart, but clicking on the "Checkout" link from the product add pop-up will take you to the cart and show all the products you've added.
Problem 2: In the checkout phase, once you have entered shipping info, clicking on checkout to move to the screen to check details and proceed to process payment, multiple errors such as: Warning: Illegal string offset 'PSPID' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36 Warning: Illegal string offset 'AMOUNT' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36 Warning: Illegal string offset 'CURRENCY' in /home/pureplas/public_html/vsadmin/inc/customppsend.php on line 36 appear at the top of the page, with the cart element displayed at the bottom.
The site uses Barclays ePDQ to process payments.
Site URL is https://www.pure-plastics.co.uk/ and the error is easilty reproduced.
Any assistance would be greatly appreciated.
Thanks, Tim
|