Zen Cart Logo

Template Fluorspar

Views: 135,986

Results 141 to 160 of 298
13 Apr 2022, 10:21 PM
#141
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,768
Plugin Contributions:
9

Template Fluorspar

:frusty:

<not_a_rant>There's a lot of talent and expertise represented here on the forum but, I doubt anyone without the same template and settings as yours can figure out the underlying CSS of the icon on this page by looking at an image.</not_a_rant>

I can tell you a whole lot about the similar icon at the top of the page because I can get my browser to that page.

It is a font_awesome icon sometimes represented in code as fa-home. On your main page, it is listed in the navMain as a class for an i tag .fas fa-home fa-sm and titled as home

It's color and status is covered using **#navMain i or #navMain .home i

**The template lists some six lines that MIGHT change the color!

The hover color is listed in two separate ways in THREE elements of the stylesheet. So, if you change the color on line 93, it will have no effect on the hover color listed in line 371. And, it may well be overidden by line 98 of the stylesheet that defines the hover color for the a tag.

So, we need to be able to delve into the code to see all the possibilities. The template may also use :active tags on the links to show what page you are on. https://jeandret.com/index.php?main_page=products_all&disp_order=1&page=4 shows an example where bootstrap uses the :active to let the customer know they are on page 4.

Maybe this will help in seeing why the posting tips ask for a link rather than a picture. There's no way I could discover that much info on the upper home icon without being able to open the link to your home page in a browser.

13 Apr 2022, 10:39 PM
#142
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,768
Plugin Contributions:
9

Re: Template Fluorspar

***IF
***the icon uses something other than #navBreadCrumb on the Down for Maintenance Page, I can't say without a good look.

If the icon uses the #navBreadCrumb .fa-home like that icon seen on the Crystals page, we can come up with.....

line 129 of the stylesheet will change the gray to whatever color you need.

line 131 covers the change of the background and color on hover.

BUT, lines 129, 132, and 380 get involved as well.

Unfortunately, it's quite common for templates from this source to have multiple elements in the CSS addressing the same item.:(

14 Apr 2022, 1:00 AM
#143
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

Sorry, it might have helped if I had been more specific about what I need to change. I know how to change colors, styles, etc. What I need to do is to add an aria-label attribute to the line that is loading that icon. I found the one in the upper left hand corner. It's loaded in includes/templates/fluorspar/common/tpl_header.php. But I can not for the life of me find where the icon in the breadcrumb series is being loaded from. Accessibility checkers mark it with an error because the anchor tag has no text--i.e. an empty link. I can use 'aria-label="Home" within the i tag if I can just find where it's being generated and loaded from.

Here's a link to the page.

https://www.zentest.newnaturalsonline.com/index.php?main_page=down_for_maintenance

14 Apr 2022, 6:51 AM
#144
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

HeleneWallis:

Sorry, it might have helped if I had been more specific about what I need to change. I know how to change colors, styles, etc. What I need to do is to add an aria-label attribute to the line that is loading that icon. I found the one in the upper left hand corner. It's loaded in includes/templates/fluorspar/common/tpl_header.php. But I can not for the life of me find where the icon in the breadcrumb series is being loaded from. Accessibility checkers mark it with an error because the anchor tag has no text--i.e. an empty link. I can use 'aria-label="Home" within the i tag if I can just find where it's being generated and loaded from.

Here's a link to the page.

https://www.zentest.newnaturalsonline.com/index.php?main_page=down_for_maintenance

Inspecting the breadcrumb home icon in browser dev tools I found this class:

fas fa-home fa-2x

Searching the fileset for that class I found:

define('HEADER_TITLE_CATALOG', '<i class="fas fa-home fa-2x"></i>');

in fluorspar_v1.8\fluorspar\includes\languages\english\fluorspar\header.php

Hope that's the one you were looking for.

14 Apr 2022, 12:01 PM
#145
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

simon1066:

Inspecting the breadcrumb home icon in browser dev tools I found this class:

fas fa-home fa-2x

> 
> Searching the fileset for that class I found:
> ```
define('HEADER_TITLE_CATALOG', '<i class="fas fa-home fa-2x"></i>');

in fluorspar_v1.8\fluorspar\includes\languages\english\fluorspar\header.php

Hope that's the one you were looking for.

That is indeed the one I was looking for, thank you. But adding the aria-label attribute to the link isn't fixing the problem.

The code that appears there now is

<a href="https://www.zentest.newnaturalsonline.com/">
<i class="fas fa-home fa-2x" aria-label="Home"></i>
</a>

But I'm still getting the empty link error.

14 Apr 2022, 4:53 PM
#146
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,768
Plugin Contributions:
9

Re: Template Fluorspar

Icons are not necessarily recognized like an image. You may need to add "role=img" to make it work.

Also, you then may get a hit saying the label is ambiguous because it simply says "Home".

You may also get a hit for the whole thing presented through ::before.

Again, using / versus the https://www....... That may help. Certainly "more correctorer":P

14 Apr 2022, 5:23 PM
#147
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

dbltoe:

Icons are not necessarily recognized like an image. You may need to add "role=img" to make it work.

Also, you then may get a hit saying the label is ambiguous because it simply says "Home".

You may also get a hit for the whole thing presented through ::before.

Again, using / versus the https://www....... That may help. Certainly "more correctorer":P

I added the role attribute. I know ANDI demands that. Some others do not, and I'm working only with WAVE at the moment. It didn't make any difference to the error though. Still says empty link.

I did not put the full canonical path in there. It's inserted, I believe, from line 145 of \includes\templates\fluorspar\common\tpl_main_page.php. And I think that's where the aria-label attribute needs to go. But I'm not sufficiently proficient with php to unravel the last part of that line, though I understand the logic of the first part.

21 Apr 2022, 9:40 PM
#148
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

Digging some more into Fluorspar, I'm finding an anomaly. In the 'New Products,' 'Featured' and 'Specials' links under 'Quick Links,' the constant name 'TEXT_NO_PRODUCTS' is being displayed if there are no new products, instead of the value of the constant ('There are no products to list in this category'). It's almost as though the value wasn't defined anywhere, but I can see that it is (in '\includes\languages\english\index.php'). Other constants defined there are being used appropriately in the relevant places. Any suggestions?

https://www.zentest.newnaturalsonline.com/index.php?main_page=products_new

27 May 2022, 8:16 PM
#149
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

Does anyone have some idea why the constant name "TEXT_NO_PRODUCTS" is being displayed instead of the value of the constant (as described above)?

I'm ready to switch to 1.57d and the new template, but I can't do it until I resolve this problem.

27 May 2022, 8:50 PM
#150
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,768
Plugin Contributions:
9

Re: Template Fluorspar

Perhaps you have an override in \includes\languages\english\flourspar\index.php That does not have the define in it.

That would override the default \includes\languages\english\index.php.

28 May 2022, 12:58 PM
#151
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Template Fluorspar

HeleneWallis:

Does anyone have some idea why the constant name "TEXT_NO_PRODUCTS" is being displayed instead of the value of the constant (as described above)?

I'm ready to switch to 1.57d and the new template, but I can't do it until I resolve this problem.

This is an error in the template. I get error logs from this everyday and just have not found a chance to fix it. Here is the log file from my current site

[27-May-2022 21:52:07 America/Chicago] Request URI: /index.php?main_page=featured_products&disp_order=1&language=en, IP address: 154.54.249.208
#1  include(/home/xxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php:13]
#2  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php:19]
#3  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php:315]
#4  require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home/xxxxx/wlcartistry.com/index.php:94]
--> PHP Warning: Use of undefined constant TEXT_NO_PRODUCTS - assumed 'TEXT_NO_PRODUCTS' (this will throw an Error in a future version of PHP) in /home/xxxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php on line 273.

for those that know...WHEN is TEXT_NO_PRODUCTS used and why?

28 May 2022, 1:21 PM
#152
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

g2ktcf:

This is an error in the template. I get error logs from this everyday and just have not found a chance to fix it. Here is the log file from my current site

[27-May-2022 21:52:07 America/Chicago] Request URI: /index.php?main_page=featured_products&disp_order=1&language=en, IP address: 154.54.249.208
#1 include(/home/xxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php:13]
#2 require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_modules_product_listing.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php:19]
#3 require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/templates/tpl_featured_products_default.php) called at [/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php:315]
#4 require(/home/xxxxx/wlcartistry.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home/xxxxx/wlcartistry.com/index.php:94]
--> PHP Warning: Use of undefined constant TEXT_NO_PRODUCTS - assumed 'TEXT_NO_PRODUCTS' (this will throw an Error in a future version of PHP) in /home/xxxxxx/wlcartistry.com/includes/modules/fluorspar/product_listing.php on line 273.

> 
> for those that know...WHEN is TEXT_NO_PRODUCTS used and why?

Actually that error is not the same as @HeleneWallis' issue. The issue is that there is no define present for TEXT_NO_PRODUCTS, which is why "TEXT_NO_PRODUCTS" is showing on the web page. As @dbltoe said it usually resides in \includes\languages\english\index.php (and that there might be a template-specific version in \includes\languages\english\flourspar\index.php)

Check both of these files for this line:

define('TEXT_NO_PRODUCTS', '???????????????????');


If it's not there then compare your index.php('s) with the originals, as there might be more missing than just that line.
28 May 2022, 1:22 PM
#153
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

dbltoe:

Perhaps you have an override in \includes\languages\english\flourspar\index.php That does not have the define in it.

That would override the default \includes\languages\english\index.php.

No, I had already checked for that. The constant, and its value, is included in \includes\languages\english\fluorspar\index.php.

28 May 2022, 1:23 PM
#154
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

HeleneWallis:

No, I had already checked for that. The constant, and its value, is included in \includes\languages\english\fluorspar\index.php.

That negates my previous post then.

28 May 2022, 1:28 PM
#155
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

HeleneWallis:

No, I had already checked for that. The constant, and its value, is included in \includes\languages\english\fluorspar\index.php.

I think that then points to an error in the PHP file that calls the define, on which page are you seeing the TEXT_NO_PRODUCTS text? I assume it's a product listing page but it could also be on the Advanced Search page.

28 May 2022, 1:50 PM
#156
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

simon1066:

I think that then points to an error in the PHP file that calls the define, on which page are you seeing the TEXT_NO_PRODUCTS text? I assume it's a product listing page but it could also be on the Advanced Search page.

Check your \includes\modules\fluorspar\product_listing.php file and make sure this line is as the original:

'text' => TEXT_NO_PRODUCTS);

If it this then I'm out of ideas I'm afraid.

28 May 2022, 2:33 PM
#157
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Template Fluorspar

dbltoe:

Perhaps you have an override in \includes\languages\english\flourspar\index.php That does not have the define in it.

That would override the default \includes\languages\english\index.php.

So I am a bit confused. After seeing others asking I started digging. There is no index.php in the distributed files for this template. I kept thinking that I was in the wrong folder on my server so I literally went back to the downloaded copy of that file.

So are these values NOT over ridden in the template OR

Is this file just outright missing from the template?

Attachment 20013

28 May 2022, 3:11 PM
#158
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: Template Fluorspar

g2ktcf:

So I am a bit confused. After seeing others asking I started digging. There is no index.php in the distributed files for this template. I kept thinking that I was in the wrong folder on my server so I literally went back to the downloaded copy of that file.

So are these values NOT over ridden in the template OR

Is this file just outright missing from the template?

Attachment 20013

It looks as though this template does not override the index.php language file, I suspect the reason that the OP had a copy in their fluorspar template folder was because they had overridden one of the entries post installation.

TBH, I didn't quite get @dbltoe's post - not having a define in the override copy of index.php would just mean the value would be taken from the original file instead, it wouldn't cause the issue the OP was having.

28 May 2022, 3:17 PM
#159
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
636
Plugin Contributions:
0

Re: Template Fluorspar

Thing is, I am getting that missing define warning constantly....

So I guess I copy that index.php from another folder like the Responsive Classic and see if that fixes my issue? I am on 1.5.7c now so this is only warning. But I cannot go to PHP 8.0 without that being fixed.

28 May 2022, 5:14 PM
#160
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Template Fluorspar

g2ktcf:

Thing is, I am getting that missing define warning constantly....

So I guess I copy that index.php from another folder like the Responsive Classic and see if that fixes my issue? I am on 1.5.7c now so this is only warning. But I cannot go to PHP 8.0 without that being fixed.

Hmm, you're right, it isn't in the distro. I've been working on this for close to a year, in between other obligations, and I can't remember now whether I copied index.php into the fluorspar /includes/languages/fluorspar/english directory because of a warning or not. But evidently I must have done so at some point. I just deleted it and still have the same result--the constant name instead of the constant value.