Zen Cart Logo

Template Fluorspar

Views: 135,984

Results 121 to 140 of 298
29 Nov 2021, 12:55 PM
#121
g2ktcf avatar

g2ktcf

Totally Zenned

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

Template Fluorspar

I reached out on the IH5 support thread trying to understand why IH5 is not working properly. The answer I got back was to check with the template author.

This is the problem ->https://wlcartistry.com/index.php?main_page=product_info&cPath=76_103&products_id=374

There is a single image loaded via IH5. The thumbnails and additional IH files are created correctly. But I am still getting broken image links. What in the template would cause this? Are you hardcoding the image to be the Med and Large image files from the ZC core? How can I fix this?

The following is the warning log. It appears the template is looking for the missing _LRG file without letting IH handle the process.....?

29-Nov-2021 06:45:04 America/Chicago] Request URI: /index.php?main_page=product_info&cPath=76_103&products_id=374, IP address: 107.77.221.228
#1  getimagesize() called at [/home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php:19]
#2  require(/home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php) called at [/home/includes/templates/fluorspar/templates/tpl_product_info_display.php:51]
#3  require(/home/includes/templates/fluorspar/templates/tpl_product_info_display.php) called at [/home/includes/modules/pages/product_info/main_template_vars.php:153]
#4  require(/home/includes/modules/pages/product_info/main_template_vars.php) called at [/home/includes/templates/fluorspar/common/tpl_main_page.php:315]
#5  require(/home/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home/index.php:94]
--> PHP Warning: getimagesize(images/large/CE3100080000_Front_LRG.jpg): failed to open stream: No such file or directory in /home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php on line 19.

Thanks
Chris

29 Nov 2021, 1:15 PM
#122
lat9 avatar

lat9

Administrator

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

Re: Template Fluorspar

g2ktcf:

I reached out on the IH5 support thread trying to understand why IH5 is not working properly. The answer I got back was to check with the template author.

This is the problem ->https://wlcartistry.com/index.php?main_page=product_info&cPath=76_103&products_id=374

There is a single image loaded via IH5. The thumbnails and additional IH files are created correctly. But I am still getting broken image links. What in the template would cause this? Are you hardcoding the image to be the Med and Large image files from the ZC core? How can I fix this?

The following is the warning log. It appears the template is looking for the missing _LRG file without letting IH handle the process.....?

29-Nov-2021 06:45:04 America/Chicago] Request URI: /index.php?main_page=product_info&cPath=76_103&products_id=374, IP address: 107.77.221.228
#1 getimagesize() called at [/home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php:19]
#2 require(/home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php) called at [/home/includes/templates/fluorspar/templates/tpl_product_info_display.php:51]
#3 require(/home/includes/templates/fluorspar/templates/tpl_product_info_display.php) called at [/home/includes/modules/pages/product_info/main_template_vars.php:153]
#4 require(/home/includes/modules/pages/product_info/main_template_vars.php) called at [/home/includes/templates/fluorspar/common/tpl_main_page.php:315]
#5 require(/home/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home/index.php:94]
--> PHP Warning: getimagesize(images/large/CE3100080000_Front_LRG.jpg): failed to open stream: No such file or directory in /home/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php on line 19.

> 
> Thanks
> Chris
FWIW, it's that this template's version of **tpl_modules_main_product_image.php** is (for whatever reason) bypassing the use of the Zen Cart **zen_image** function to render those images.  That function, if used, is what enables Image Handler to perform its image manipulations.
29 Nov 2021, 1:26 PM
#123
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

lat9:

FWIW, it's that this template's version of tpl_modules_main_product_image.php is (for whatever reason) bypassing the use of the Zen Cart zen_image function to render those images. That function, if used, is what enables Image Handler to perform its image manipulations.

I am looking at that file now. This file simply echos the html reference to the files...how would I change this to make it work with IH? I have no problems editing this file as needed.

<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>

<figure id="productMainImage" class="product-main-image" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">

<?php
$largewidth = "1000";
$largeheight = "1000";
list($largewidth, $largeheight, $type, $attr) = getimagesize($products_image_large);

$smallwidth = "200";
$smallheight = "200";
list($smallwidth, $smallheight, $type, $attr) = getimagesize($products_image_medium);

 echo '<a href="'.$products_image_large.'" itemprop="contentUrl" data-size="'.$largewidth.'x'.$largeheight.'" data-index="0">'. "\n";
 echo '<img src="'.$products_image_medium.'" alt="'.$products_name.'" title="'.$products_name.'" width="'.$smallwidth.'" height="'.$smallheight.'" itemprop="thumbnail" class="img-responsive" /></a>'. "\n";

?>
</figure>
29 Nov 2021, 6:09 PM
#124
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

I have spent some time looking at this file vs the default template file. It appears that this is just an older version of the file.

29 Nov 2021, 6:23 PM
#125
lat9 avatar

lat9

Administrator

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

Re: Template Fluorspar

g2ktcf:

I have spent some time looking at this file vs the default template file. It appears that this is just an older version of the file.
Not so much older as very much changed from the template_default rendering. You're going to also have issues with additional images; this template provides a module override (/includes/modules/fluorspar/additional_images.php) as well, which doesn't include any of the zc156+ notifications that Image Handler uses to provide its dropin distribution.

29 Nov 2021, 6:26 PM
#126
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

g2ktcf:

I have spent some time looking at this file vs the default template file. It appears that this is just an older version of the file.

well, replacing the Fluorspar template version with the default fixed all the log warnings. But now my main product image is tiny...smaller than the image in the grid view :(

29 Nov 2021, 6:40 PM
#127
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

lat9:

Not so much older as very much changed from the template_default rendering. You're going to also have issues with additional images; this template provides a module override (/includes/modules/fluorspar/additional_images.php) as well, which doesn't include any of the zc156+ notifications that Image Handler uses to provide its dropin distribution.

I removed that over ride as well. Not much has changed though.

29 Nov 2021, 7:27 PM
#128
g2ktcf avatar

g2ktcf

Totally Zenned

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

Re: Template Fluorspar

g2ktcf:

I removed that over ride as well. Not much has changed though.

Okay, I figured out that the main image size was being driven by configuration image values. They were previously 150 and 120 and I noticed those values in the developer console of Chrome. I increased these to 400 x 400 and now my page appears to be operating properly.

Product Info - Image Width	        400	
Product Info - Image Height	400	

So I had to replace tpl_modules_main_product_image.php with the default template version and REMOVE the override includes/modules/fluorspar/additional_images.php

9 Feb 2022, 4:05 PM
#129
earthlytreasures2 avatar

earthlytreasures2

New Zenner

Join Date:
Feb 2022
Location:
australia
Posts:
5
Plugin Contributions:
0

Re: Template Fluorspar

See my website here:
http://www.earthlytreasures.com.au/
I cant get rid of that error message and it wont fully install.
Its not the zencart install as I can install other templates on the site.
And I can install the same template on other websites using the exact same data files.
Its just this one website that wont work.

9 Feb 2022, 5:39 PM
#130
carlwhat avatar

carlwhat

zennedOut

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

Re: Template Fluorspar

earthlytreasures2:

See my website here:
http://www.earthlytreasures.com.au/
I cant get rid of that error message and it wont fully install.
Its not the zencart install as I can install other templates on the site.
And I can install the same template on other websites using the exact same data files.
Its just this one website that wont work.

https://docs.zen-cart.com/user/troubleshooting/error_occurred/

https://docs.zen-cart.com/user/troubleshooting/blank_page/#working-with-debug-logs

18 Mar 2022, 1:58 PM
#131
earthlytreasures2 avatar

earthlytreasures2

New Zenner

Join Date:
Feb 2022
Location:
australia
Posts:
5
Plugin Contributions:
0

Re: Template Fluorspar

My website is here http://earthlytreasures.com.au
I am using the flourspar template
I cant get new (Or old or anything) products to show on the main page when somebody logs on to my website.
How do I get some products to automatically show on the front page?

20 Mar 2022, 3:59 PM
#132
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

earthlytreasures2:

My website is here http://earthlytreasures.com.au
I am using the flourspar template
I cant get new (Or old or anything) products to show on the main page when somebody logs on to my website.
How do I get some products to automatically show on the front page?

You can get any specific category to show on the front page by going into Configureation -> Layout Settings -> Main Page - Opens with Category. The category you specify there is the one that will be shown on the main page.

You can show new products in the sidebar by going into Tools -> Layout Boxes Controller and turn on sideboxes/whatsnew.php

25 Mar 2022, 11:46 PM
#133
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

Thought I'd share how to make the Nivo slider images clickable. It's actually quite easy.

In /includes/templates/fluorspar/common/tpl_nivo_slider.php, you want the <div> that begins at line 3:

<div id="slider" class="nivoSlider"> <img src="includes/templates/fluorspar/images/data/image1.jpg" alt="Herbs and Spices" title='<?php echo NIVO_CAPTION_1; ?>'/> <img src="includes/templates/fluorspar/images/data/image2.jpg" alt="Pet Products" title='<?php echo NIVO_CAPTION_2; ?>'/> <img src="includes/templates/fluorspar/images/data/image3.jpg" alt="Document Library" title='<?php echo NIVO_CAPTION_3; ?>'/> </div>

To make those images into links, just enclose each one in a <a href> tag. The example below shows how I did it for my site:

<div id="slider" class="nivoSlider"> <a href="https://www.newnaturalsonline.com/index.php?main_page=index&cPath=2"><img src="includes/templates/fluorspar/images/data/image1.jpg" alt="Herbs and Spices" title='<?php echo NIVO_CAPTION_1; ?>'/></a> <a href="https://www.newnaturalsonline.com/index.php?main_page=index&cPath=7"><img src="includes/templates/fluorspar/images/data/image2.jpg" alt="Pet Products" title='<?php echo NIVO_CAPTION_2; ?>'/></a> <a href="https://www.newnaturalsonline.com/doc_menu.html"><img src="includes/templates/fluorspar/images/data/image3.jpg" alt="Document Library" title='<?php echo NIVO_CAPTION_3; ?>'/></a> </div>

This is very lightly glossed over in the fluorspar docs, and the 'More Info' link in the docs goes to a blank page. The Zenofobe domain name appears to be parked and for sale, so there apparently won't be any help from the template author.

26 Mar 2022, 12:01 AM
#134
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:

To make those images into links, just enclose each one in a <a href> tag. The example below shows how I did it for my site:

<div id="slider" class="nivoSlider"> <a href="https://www.newnaturalsonline.com/index.php?main_page=index&cPath=2"><img src="includes/templates/fluorspar/images/data/image1.jpg" alt="Herbs and Spices" title='<?php echo NIVO_CAPTION_1; ?>'/></a> <a href="https://www.newnaturalsonline.com/index.php?main_page=index&cPath=7"><img src="includes/templates/fluorspar/images/data/image2.jpg" alt="Pet Products" title='<?php echo NIVO_CAPTION_2; ?>'/></a> <a href="https://www.newnaturalsonline.com/doc_menu.html"><img src="includes/templates/fluorspar/images/data/image3.jpg" alt="Document Library" title='<?php echo NIVO_CAPTION_3; ?>'/></a> </div>

If your canonical link is set to https://www.newnaturalsonline.com/, then you would remove the info in red above. This makes it a relative verrsus absolute link and avoids a lot of headaches.

Biggest example is in accessibility. If you have a link to the two categories above (2 and 7) in your catgegories column, accessiblity will hit you for links that are ambiguous. https://myzencarthost.com/accessibility/andi/help/alerts.html?ambiguous_link

Basically, with absolute links, you are forcing the system to leave the cart and come back in to go to the link. Relative links are like "It's right over here on the shelf."

26 Mar 2022, 1:29 PM
#135
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

Yes, correct, I wasn't thinking about that. Thanks for the heads up.

13 Apr 2022, 4:22 PM
#136
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

I'm working on accessibility issues with Fluorspar, and have hit a brick wall with the Down for Maintenance page. I cannot find where the 'home' icon in the breadcrumb line is being sourced from. I can find everything around it, but not that icon tag itself. Anyone know? It is not nddbc.html.

13 Apr 2022, 4:41 PM
#137
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 a peak. Otherwise, it's a WAG.

13 Apr 2022, 7:06 PM
#138
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

dbltoe:

perhaps a peak. Otherwise, it's a WAG.

Umm, huh?

13 Apr 2022, 7:17 PM
#139
dbltoe avatar

dbltoe

Totally Zenned

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

Re: Template Fluorspar

You'll get more help if you give a link. Otherwise, it's a Wild A.. Guess.

13 Apr 2022, 9:43 PM
#140
helenewallis avatar

helenewallis

Totally Zenned

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

Re: Template Fluorspar

dbltoe:

You'll get more help if you give a link. Otherwise, it's a Wild A.. Guess.

Here's a screenshot. It's the home icon below the megamenu in the breadcrumb line.

Attachment 19953