If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / Issue with code in Linkpoint_api.php file

Issue with code in Linkpoint_api.php file

Started by jcrennan on 26 May 2023, 1:21 AM · Views: 3,015

Results 1 to 6 of 6
26 May 2023, 1:21 AM
#1
jcrennan avatar

jcrennan

New Zenner

Join Date:
Mar 2012
Posts:
12
Plugin Contributions:
0

Post #1 by jcrennan

ive been having issues with the code in my website and ive narrowed it down to this line but im not sure whats wrong with it, im only new to this having just recently taken over this website, can you see whats wrong with it?

Attachment 20303

26 May 2023, 6:06 AM
#2
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

Post #2 by pilou2

jcrennan:

ive been having issues with the code in my website and ive narrowed it down to this line but im not sure whats wrong with it, im only new to this having just recently taken over this website, can you see whats wrong with it?

Attachment 20303

There are two $ before order_totals: $$order... should be $order...

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

26 May 2023, 9:39 AM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #3 by swguy

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 May 2023, 12:01 PM
#4
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
416
Plugin Contributions:
6

Post #4 by pilou2

swguy:

@pilou2 this is not correct

See https://docs.zen-cart.com/user/upgrading/php_warnings/#syntax-error-unexpected- for notes on this issue.

Nice documentation! I did not realized it was a 'variable variable' stuff just looking at this code. {} were probably added to avoid this kind of confusion.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

26 May 2023, 4:10 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #5 by swguy

Also note that linkpoint has been removed from the Zen Cart core.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 May 2023, 6:21 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,146
Plugin Contributions:
56

Post #6 by lat9

pilou2:

Nice documentation! I did not realized it was a 'variable variable' stuff just looking at this code. {} were probably added to avoid this kind of confusion.
The {} were added more for 'compliance' with stricter PHP (7.4? and later) integrations where the {} are now required.