Zen Cart Logo

Template Fluorspar

Views: 135,987

Results 161 to 180 of 298
28 May 2022, 5:17 PM
#161
helenewallis avatar

helenewallis

Totally Zenned

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

Template Fluorspar

simon1066:

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.

Yes, the line is correct.
28 May 2022, 5:24 PM
#162
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
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.

On the advanced search, the constant's value is being displayed correctly. It's only on the product listing page where the problem occurs.

14 Jun 2022, 3:21 PM
#163
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

Is there any reasonably simple way to remove the Nivo slider altogether, without going through and eliminating every reference to it individually? There does not appear to be any way to apply an alt attribute to the individual image slices, amongst other problems with it. I have stopped it from being displayed on my website, and WAVE no longer shows errors for it. But the code is still present, but aXe dev tools found problems.

14 Jun 2022, 3:55 PM
#164
simon1066 avatar

simon1066

Totally Zenned

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

Re: Template Fluorspar

HeleneWallis:

Is there any reasonably simple way to remove the Nivo slider altogether, without going through and eliminating every reference to it individually? There does not appear to be any way to apply an alt attribute to the individual image slices, amongst other problems with it. I have stopped it from being displayed on my website, and WAVE no longer shows errors for it. But the code is still present, but aXe dev tools found problems.

I don't use this template but it seems that the content of the slider is controlled by tpl_nivo_top.php and that that file is called in includes\templates\fluorspar\common\tpl_header.php

This is the code, in that file, that either need to be disabled or removed:

<?php
  if ($this_is_home_page) {
?>
<div id="home-banner"><?php require($template->get_template_dir('tpl_nivo_top.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_nivo_top.php');?></div>
<?php
 }
?>

If you don't want to delete it altogether but just 'hide' it from the code than I would change it to:

[B]<?php /* ?>[/B]
<?php
  if ($this_is_home_page) {
?>
<div id="home-banner"><?php require($template->get_template_dir('tpl_nivo_top.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_nivo_top.php');?></div>
<?php
 }
?>
[B]<?php */ ?>[/B]

Edit: there is a javascript file in includes\templates\fluorspar\jscript that no longer needs to load - can be renamed (jquery.nivo.slider.js_old) or deleted. I can't think of anything else that might need considering.

14 Jun 2022, 5:02 PM
#165
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

simon1066:

I don't use this template but it seems that the content of the slider is controlled by tpl_nivo_top.php and that that file is called in includes\templates\fluorspar\common\tpl_header.php

This is the code, in that file, that either need to be disabled or removed:

<?php if ($this_is_home_page) { ?> <div id="home-banner"><?php require($template->get_template_dir('tpl_nivo_top.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_nivo_top.php');?></div> <?php } ?> ``` > > If you don't want to delete it altogether but just 'hide' it from the code than I would change it to: > > ``` [B]<?php /* ?>[/B] <?php if ($this_is_home_page) { ?> <div id="home-banner"><?php require($template->get_template_dir('tpl_nivo_top.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_nivo_top.php');?></div> <?php } ?> [B]<?php */ ?>[/B] ``` > > Edit: there is a javascript file in includes\templates\fluorspar\jscript that no longer needs to load - can be renamed (jquery.nivo.slider.js_old) or deleted. I can't think of anything else that might need considering.

Thanks, I had already removed that section of code, but aXe was still finding references to Nivo. I'll rename or delete the javascript file too. This template has enough accessibility issues as it is without the slider. I've addressed all the others, but I could not make the slider accessible (and apparently no one else has been able to either).

14 Jun 2022, 5:46 PM
#166
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Template Fluorspar

Just a little FYI. If a file is renamed using old or bak, it may still be run by the system AND, any *.bak files on a server are a direct PCI violation.

I try to use my initials as the file extension. Since I'm not J Paul Getty, Gary Ignacious Franken, or Paul Norman Gordon, Peter Henry Porter, Charles Stanley Smith, or any other name that results in a known file extension; the file won't run AND, I can easily find what I did by searching for *.bst.:P

Yes, it's a valid file extension but requires a special viewer to open on line.

14 Jun 2022, 6:16 PM
#167
simon1066 avatar

simon1066

Totally Zenned

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

Re: Template Fluorspar

dbltoe:

Just a little FYI. If a file is renamed using old or bak, it may still be run by the system ...

Now I didn't know that.

15 Jun 2022, 10:28 AM
#168
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

dbltoe:

Just a little FYI. If a file is renamed using old or bak, it may still be run by the system AND, any *.bak files on a server are a direct PCI violation..

Thanks, I did not know that either. I used 'old,' but I can easily go back and substitute my initials, which I don't think correspond to anything currently in use either :)

Btw, the error I was getting with aXe went away after I renamed the file with 'old,' so aXe wasn't finding it. But I'll avoid the use of 'old' in the future anyway.

15 Jun 2022, 10:39 AM
#169
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Template Fluorspar

HeleneWallis:

Btw, the error I was getting with aXe went away after I renamed the file with 'old,' so aXe wasn't finding it. But I'll avoid the use of 'old' in the future anyway.Yep, those are PCI problems versus accessibility items. Not on the aXe radar.

What's quick and easy with cPanel's File Manager is to search your entire site for *.old or *.bak. Sometimes they get created by routine maintenance.

15 Jun 2022, 4:36 PM
#170
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

dbltoe:

Yep, those are PCI problems versus accessibility items. Not on the aXe radar.

What's quick and easy with cPanel's File Manager is to search your entire site for *.old or *.bak. Sometimes they get created by routine maintenance.

Good idea, I'll do that. I use 'old' when I'm testing things and want to make sure I've preserved the original in case I break something. I usually remember to go back and remove the redundant one, but not always.

15 Jun 2022, 5:01 PM
#171
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Template Fluorspar

dbltoe:

Just a little FYI. If a file is renamed using old or bak, it may still be run by the system AND, any *.bak files on a server are a direct PCI violation.

please point us to where on the PCIDSS website we can see that any .bak files are a violation of PCI. i have never seen that, and i would like to...

dbltoe:

...I can easily find what I did by searching for *.bst.:P

Yes, it's a valid file extension but requires a special viewer to open on line.

this is really not correct. text files can be opened by a text editor, no matter their extension. renaming a file's extension does not automatically make the file a valid version of said extension.

keeping backup files on a web server is not a good idea. one must ensure that the web serving software (ie apache) is probably configured to not serve up those files. else anyone can see them if they know where to look.

15 Jun 2022, 6:05 PM
#172
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Template Fluorspar

It's been years since we had this come up in a PCI scan. I added it to lat9's override cheatsheet in 2013 Can't find the link as I didn't have it bookmarked.

As you pointed out, a lot of files can be opened in a standard file editor. When you have something like the configure.php temporarily set to 644 for remote editing or FTP, a configure.bak could be left behind with all the database connection information a hacker would need.

If a mod is downloaded, extracted, edited and then uploaded from your computer; it will often have a .bak in the mix. Even the commercial items like UlteraEdit that I use will leave a .bak. I have even seen them in the zip of older mods. If we edit any mod files, we do a file search for *.bak prior to FTP just to make sure none get transferred.

We used to have a cron for weekly eradication of .bak files but they are so few and far between that we just use cPanel after any significant work is done on a site.

BTW I used the example of .bst because it does take a text editor with extra features to open. https://fileinfo.com/extension/bst

15 Jun 2022, 6:41 PM
#173
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Template Fluorspar

i really do not want to get into another pissing match....

just because the information is on your cheat-sheet does not make it true.

having a file called confidential.bak on your server, that simply has the text 'everything is good' does not put you in violation of PCI. in fact, depending on what payment modules you have enabled, your website may not even be in scope.

current trends in PCI compliance refer to reducing scope. the smaller the scope, the less items one needs to worry about being in compliance.

there is a reason to have websites under version control. just because you are using a commercial piece of software does necessarily mean it is better. it only means you paid for it.

i am frequently reminded of the phrase: "it's a bad craftsman who blames his tools."

having file fragments that are not blocked from being served up by your web site is not a good idea. i would not keep any old files up on a server in a directory that apache serves up.

finally, if you are running anything less than php 7.4, and your website is in scope, you are in violation of PCI.

15 Jun 2022, 8:29 PM
#174
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Template Fluorspar

carlwhat:

i really do not want to get into another pissing match....Then why are you always the "yeah, but" guy?

17 Feb 2023, 5:18 PM
#175
beav avatar

beav

New Zenner

Join Date:
Mar 2018
Location:
Idaho,USA
Posts:
23
Plugin Contributions:
0

Re: Template Fluorspar

Zencart Version 1.5.7d. not an upgrade.
installed using zc_install.
PHP version 7.4.23.
Fluorspar template version 1.8.
https://www.legendcycle.net

I'm getting everything working the way I want but I noticed if I add a product to the cart from the product detail page everything is good. However if I add a product to the cart from the category page it displays "Successfully added Product to the cart ..." at the top of the page but also says "Sorry, the product was not found".

If I change the settings in admin to: Display cart after adding product, It goes to the cart as expected but when I click "continue shopping" it then takes me to the page that says "Sorry, the product was not found".

I switched to the standard template and it doesn't do this.

10 Mar 2024, 3:11 PM
#176
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

Has anyone installed this on 1.5.8a? I am in emergency mode since my isp dropped the phone version I needed. I know there were issues with going to any php 8+

10 Mar 2024, 4:09 PM
#177
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

phone = php ...I am wondering if I am just silly this am or I got bit by an overzealous autocorrect lol

28 Apr 2024, 5:35 PM
#178
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,678
Plugin Contributions:
0

Re: Template Fluorspar

When a customer goes to the store I want the products displayed first. How can I do that?

29 Apr 2024, 11:59 AM
#179
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,678
Plugin Contributions:
0

Re: Template Fluorspar

Can anyone help me please?

29 Apr 2024, 12:57 PM
#180
royaldave avatar

royaldave

Zen Follower

Join Date:
Aug 2013
Location:
Perth, WA, AU
Posts:
284
Plugin Contributions:
1

Re: Template Fluorspar

wmorris:

Can anyone help me please?

Bit confused by what you are asking.

Do you want products displayed on the home page when you first visit your site, or do you want products displayed on the page before other content?