camaron wrote: ↑Mon Oct 14, 2024 7:01 pm
Uncaught Error: Undefined constant "NAVBAR_ICON_CART_CONTENTS" in C:\xampp\htdocs\PhoenixCart-master\templates\bootstrap5\includes\modules\navbar\tpl_nb_shopping_cart.php:3
First, do not install an Addon that is not compatible for your Phoenix Cart version.
You are using 1.0.9.7 and the latest Spanish Language Pack Addon is clearly marked for 1.0.9.6.
As previously suggested, you could use Phoenix Cart version 1.0.9.6 instead.
Otherwise, the notice tells you the problem.
NAVBAR_ICON_CART_CONTENTS outputs a Language value.
It is in the Core Code but is not in your (Spanish) Language files.
So, where is it in the Core Code?
You could search the Core Code on your local computer or search the Phoenix Cart Public GitHub Repository here:
https://github.com/CE-PhoenixCart/PhoenixCart
Use the Search Box at the top to search the repository for NAVBAR_ICON_CART_CONTENTS
This gives the results:
https://github.com/search?q=repo%3ACE-P ... &type=code
That shows it is defined in /templates/bootstrap5/includes/languages/english.php
Therefore that Language file is overriding the Language file here: /includes/languages/english.php
Now, this is confusing because it is unfortunate that v1.0.9.7 is on the pathway to merging the new Bootstrap 5 template into Core Code. /templates/bootstrap5/ is new in v1.0.9.7 and NAVBAR_ICON_CART_CONTENTS is a new Constant.
Therefore, there will not be a /templates/bootstrap5/ in the 1.0.9.6 Spanish Language Pack.
You can quick fix by adding the new Constant:
https://github.com/CE-PhoenixCart/Phoen ... #L107-L113
to your main Language file, /includes/languages/espanol.php