New Zenner
- Join Date:
- Mar 2012
- Posts:
- 12
- Plugin Contributions:
- 0
Started by jcrennan on 26 May 2023, 1:21 AM · Views: 3,015
New Zenner
Zen Follower
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?
There are two $ before order_totals: $$order... should be $order...
ZC v2.2.2 PHP 8.4+ MySQL 8.4+
Administrator
@pilou2 this is not correct
See https://docs.zen-cart.com/user/upgrading/php_warnings/#syntax-error-unexpected- for notes on this issue.
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.
Zen Follower
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+
Administrator
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.
Administrator
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.
Tell staff why this post should be reviewed.