I have spent a couple of days looking for this template on the forum, I cannot find it. I would like to turn 'on' the right column, can someone please let me know how?
Thank you
Printable View
I have spent a couple of days looking for this template on the forum, I cannot find it. I would like to turn 'on' the right column, can someone please let me know how?
Thank you
I found it with a search: https://www.zen-cart.com/downloads.php?do=file&id=2227
v156 w/ PHP 7.0.3
Greetings I recently did a new install of the Fluorspar template and everything is going well: https://www.kritterkams.com , however I can't seem to get the 'social media' links to work.
In the fluorspar/header.php I tried just the url itself and then this:
/*bof connect with us urls*/
define('FACEBOOK','<a href="https://www.facebook.com/Silver.Kamel" target="_blank"><i class="fa fa-facebook"></i></a>');
But I still don't see the FB icon.
I want to add FB, YouTube, and Instagram icons.
Any Thoughts?
Kamel....
Love is my religion.
Still having no luck with the 'social media' buttons.. I will come back to that later..
Tidying up the home page I see my 'search icon' is missing I think there is an error in the code. I have tried a few mods but I keep getting a blank page after my mods.
Here is the code in tpl_search_header.php :
$content = "";
$content .= zen_draw_form('quick_find_header', zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
$content .= zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);
$content .= zen_draw_hidden_field('search_in_description', '1') . zen_hide_session_id();
$content .= zen_draw_input_field('keyword', '', 'size="6" maxlength="30" value="' . HEADER_SEARCH_DEFAULT_TEXT . '" onfocus="if (this.value == \'' . HEADER_SEARCH_DEFAULT_TEXT . '\') this.value = \'\';" onblur="if (this.value == \'\') this.value = \'' . HEADER_SEARCH_DEFAULT_TEXT . '\';"');
$content .= '<input type="image" src="' . $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'images/data').'/'.BUTTON_IMAGE_SEARCH_MAIN .'"' .' alt="Search" class="search_input" />';
$content .= "</form>";
When I do 'view source' on the page it states an error: does not exist, I think this refers to, .BUTTON_IMAGE_SEARCH_MAIN. so in it's place I put 'search-nav.jpg' but as I said before this caused the whole Home page to go blank. I can find no file BUTTON_IMAGE_SEARCH_MAIN in the v1.5.6 or Fluorspar directories..
How do I change this to pull the image up?
Thanx in advance...
Bless...…….. Kamel
Love is my religion
v1.5.6a PHP 7.0.3
FYI I am getting NO response from peejay who uploaded the FLUORSPAR template. Plus it does not work.
I found the source of this template at www zenofobe com but when I tried to download it my McAfee blocked and deleted the download warning that it contained a virus. So buyer beware! I also left a message at that site and as of yet have had no reply.
I have been trying some of the responsive templates. The ZC Responsive 156a works. Just got to work on it a bit..
Bless.... Kamel
P.S. I will be donating $100.02... $100.00 for the 1.5.6a template and $0.02 for my rant...
Was unaware of this thread, sorry for delay in replying.
In Zen Cart admin ->Configuration-> Layout Settings -> Column Right Status - Global
set to 1
As this template is responsive and designed for only a left column you will need to test by resizing your browser to see if it fits ok.
Was unaware of this thread, sorry for delay in replying.
There are no social media links in this template, so all social media definitions in - includes/languages/english/fluorspar/header.php are
redundant and could be deleted.
The Font Awesome icons used in the template are version 5 and are hosted locally for faster rendering.
If you are modifying say the footer menu to display branded Font Awesome icons you will need to use the new class names.
e.g. edit file - includes/templates/fluorspar/common/tpl_footer_menu.php
delete or edit last column and replace with something like this:-
<div class="footerColumn">
<div id="footerCustomHtml" class="footerMenu noLine">
<div id="customSuppNav">
<ul class="fa-ul">
<li class="footer-media"><a href="https://www.facebook.com/Silver.Kamel" target="_blank"><i class="fab fa-facebook"></i></a></li>
<li class="footer-media"><a href="#"><i class="fab fa-twitter"></i></a></li>
</ul>
</div>
</div>
</div>
The search button is defined as - define('BUTTON_IMAGE_SEARCH_MAIN', 'search-3-24.jpg');
found in the file - includes/languages/english/fluorspar/button_names.php
the image is in - includes/templates/fluorspar/images/data/search-3-24.jpg
I can only conclude the image failed to upload during installation, try reinstalling.
By editing tpl_search_header.php you must have made a syntax error to cause 'the whole Home page to go blank'.
Have a look in your error log!
The file you attempted to download from my website is perfectly safe and virus free, your McAfee software is giving a 'false positive'.
The comment 'So buyer beware!' is misplaced but thanks for bringing this anomaly to my attention.
I would really like to use the Fluorspar Template but am running into a problem: The large Product Images are being forced into an odd perspective which looks to be based on the width and height of the first Product Image. So if the first Product Image is square, all the other product images are forced to be square, etc. This only happens when Fluorspar Template is selected. Maybe I have my Images configured wrong but have not found the Admin setting change which fixes this ("Image - Use Proportional Images on Products and Categories" sounds related but does not have any effect whether zero or one).
Attachment 18522
Template Fluorspar uses Photoswipe to display the large product image which requires all
images to be the same dimensions (the preference of most Zen Cart users). However I have found a
solution here https://stackoverflow.com/questions/...age-size-ratio
which may solve your problem. Open file :-
includes/templates/fluorspar/jscript/photoswipe_init.js
replace the code with this :-
Please let me know if this works.Code:
( function( $ ) {
"use strict";
var $pswp = $('.pswp')[0];
var image = [];
$('.product-images-wrap').each( function() {
var $pic = $(this),
getItems = function() {
var items = [];
$pic.find('a').each(function() {
var $href = $(this).attr('href'),
$size = $(this).data('size').split('x'),
$width = $size[0],
$height = $size[1];
var item = {
src : $href,
w: 0,
h: 0
}
items.push(item);
});
return items;
}
var items = getItems();
$.each(items, function(index, value) {
image[index] = new Image();
image[index].src = value['src'];
});
$pic.on('click', 'figure', function(event) {
event.preventDefault();
var $index = $(this).find('a').data('index');
var options = {
index: $index,
bgOpacity: 0.7,
showHideOpacity: true,
captionEl : false,
fullscreenEl : true,
shareEl : false,
tapToClose : true,
tapToToggleControls : false,
closeOnScroll: false,
history:false,
closeOnVerticalDrag:false,
zoomEl: true,
counterEl: true,
arrowEl: true,
shareButtons: [
{id:'facebook', label:'Share on Facebook', url:'https://www.facebook.com/sharer/sharer.php?u={{url}}'},
{id:'twitter', label:'Tweet', url:'https://twitter.com/intent/tweet?text={{text}}&url={{url}}'},
{id:'pinterest', label:'Pin it', url:'http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}'},
],
}
var lightBox = new PhotoSwipe($pswp, PhotoSwipeUI_Default, items, options);
lightBox.listen('gettingData', function(index, item) {
if (item.w < 1 || item.h < 1) { // unknown size
var img = new Image();
img.onload = function() { // will get size after load
item.w = this.width; // set image width
item.h = this.height; // set image height
lightBox.invalidateCurrItems(); // reinit Items
lightBox.updateSize(true); // reinit Items
}
img.src = item.src; // let's download image
}
});
lightBox.init();
});
});
$('.tabs-nav li a').click(function(ev){
ev.preventDefault();
var tab_id = $(this).attr('href');
$('.tabs-nav li a').removeClass('active');
$('.tab-content').removeClass('active');
$(this).addClass('active');
$(tab_id).addClass('active');
});
} )( jQuery );
https://zenofobe.com
Wow - Thanks peejay! Yes, this worked perfectly. I really appreciate your documenting this fix. This was far beyond anything I could have figured out on my own.
A note about the Mega Menu
the file :- includes/templates/fluorspar/stylesheet_header_menu.css contains the rule :-
.level4 {display:none}
delete this if you want to display the next sub-level category.
Change to :-
.level3 {display:none}
If you want to hide all sub-categories.
https://zenofobe.com
First let me say that the Fluorspar Template has been my #1 choice for my responsive rewrite project since the first time I first laid eyes on it. I am very happy with the look and feel. Now I seem to have written myself into a small corner here and if it is a true problem with misuse of the intent of the Fluorspar Template then I will just disable the particular option in question and proceed.
I am running a vastly simplified version of a ZC Store: Showcase with Prices - no Shopping Cart, no signup/log in, no shipping calculator, no inventory management and no Invoice/Payment function within ZC. (Buyer uses Contact link to get shipping quote, emailed invoice, etc.). So the bulk of my work in adapting a template is turning options off.
So anyway, link to New Products, which results in New Products pictured, works fine. However link to Home Page, which results in Categories, with New Products listed beneath, shows a Buy Now Shopping Cart Button for each New Product. I am guessing there is a simple condition that needs to be set somewhere - in fluorspar/new_product.php?
Thanks PeeJay - It's a minor nit and I am happy to just turn this feature off on the home page.
Attachment 18543
Attachment 18544
Attachment 18545
Attachment 18546
I am assuming but, I take it your store status is set to 1? (My Store)
And, Categories - Always Show on Main Page to 0? (Layout Settings)
Template Fluorspar was designed to display buy now buttons on main page and currently there is now way to change this in admin.
To hide buy now button either:-
open file stylesheet_css_buttons.css and write span.normal_button.BUTTON_IMAGE_BUY_NOW {display:none}
or
copy file includes/modules/new_products.php and overwrite includes/modules/fluorspar/new_products.php
regards peejay
http://zenofobe.com
Thanks PeeJay! - I will do it that way. I am eternally grateful for your help.
Perhaps it might be best to re-insert into the template code the controls provided by the database and the Admin menu choices. The whole idea of database driven is that, in setting a flag that the store is showcase only, there would never be an Add to Cart button. Apparently that is removed and the control moved to the stylesheet.Quote:
Template Fluorspar was designed to display buy now buttons on main page and currently there is now way to change this in admin.
That was part of code to keep from having to set such important things in more than one spot. IMHO stylesheet use of display:none should be a last resort and used only when an override inclusion/exclusion cannot be accomplished.
Submitted as something to consider. You could modify the product_info code to have the button appear on the main page as well but, only if the person is authorized and the store is set to sell.Code:<!--bof Add to Cart Box --><?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = '<div class="max-qty">' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '</div><span class="qty-text">' . PRODUCTS_ORDER_QTY_TEXT . '</span><input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
I should have advised to just delete file:- includes/modules/fluorspar/new_products.php.
Then the template would use the core file includes/modules/new_products.php.
This file does not have any buttons, so I have not removed any code. The code used to display the BUY_NOW button
is from a mod found here :-https://www.zen-cart.com/downloads.php?do=file&id=998
Perhaps you could submit an improved version using your code.
Template Fluorspar does not use mobile_detect (I found it unreliable) and so relies heavily on {display:none} in css media queries.
I know I'm swimming against the tide with this but it seems to work alright.
Best not to use this template if you are not a fan of {display:none}.
Something to peruse:- https://www.quora.com/What-are-the-p...ttp-user-agent
peejay
http://zenofobe.com
display:none and visibility:hidden are not inappropriate but can create problems. I.E. if you need to have a screen reader obtain the info, it will not be able to be read. But, if you set it to position:absolute;left:-2000px; the information will not show but, the screen reader will read the data.
Responsive vs mobile is not unlike tables vs div in code. Several checks including accessibility standards would lower page rank with too many tables. Used to be that everything was table-oriented. Now, you'll lower your rank with too many tables.
Same with mobile-ready/responsive in today's world. Some obtain the info at the beginning and redirect to mobile.yoursite.com. The advantage to this method is the ability to apply stylesheets to only the site needed. One of the things responsive does is bloat the site with stylesheets. You simply have to have more stylesheets if all is done on the same site
IMHO, if you are going to go with responsive vs. redirect, you really need to be watching what the folks are saying that are ranking your site. A recently published article by Google has some interesting information. Some of it touches on not hiding data but, the great information concerns the latest and greatest methods of making a site responsive by the folks that are ranking your site. It doesn't hurt that they develop chrome as well.:P The information was updated in May of this year, so simply the currency of the site makes it worthwhile to take a look. I found a couple of interesting methods there as well.
Again, all is submitted for info. I've always said that necessity is NOT the mother of invention: it's laziness. Even so, we sometimes have to learn how to be lazy.:P
The 'display:none' option worked great for me. I am far from being up to speed on contributing code changes - maybe someday.
Good Afternoon...
(fluorspar_v1.2)
I'm not finding where to replace:
Contact:
999999999
Homer Simpson
742 Evergreen Terrace,
Springfield
Oregon
TIA!!!
I think you'll find it in "templates/[fluorspar]/common/tpl_footer_menu.php"
I am pleased to announce the release of Fluorspar ver 1.3.
Improvements have been made to the home page tabmenu using different javascript and a few css tricks.
The header menu now displays header EZ pages links.
The footer menu displays footer EZ pages links.
Some social media icons have been placed in the footer menu.
Photoswipe will now display enlarged images of different size in correct proportion.
Minor changes to css files to improve css buttons.
https://www.zenofobe.com
Hello, just a small question. Doing some styling on the template pages can't find these icons pictures of home and login buttons in /* Navigation main */ to replace. The cart icons in images folder though. Where should I look into? Thanks.
The template uses Font Awesome icons (Ver 5), not images. These are located in file:-
includes/templates/fluorspar/common/tpl_header.php
<i class="fas fa-home fa-sm" title="Home"></i>
<i class="fas fa-user fa-sm" title="Account"></i>
you will need to replace these lines with something like this:-
<img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE,
$current_page_base,'images').HEADER_ICON_HOME ?>" alt="home icon" class="home-icon" title="Home" />
<img src="<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE,
$current_page_base,'images').HEADER_ICON_LOGIN ?>" alt="login icon" class="login-icon" title="Account" />
Then open file :-
includes/languages/english/fluorspar/header.php
and define your images
// definiitions for header icons
define('HEADER_ICON_HOME', 'Your_file_name.png');
define('HEADER_ICON_LOGIN', 'Your_file_name.png');
Then place your images in :-
includes/templates/fluorspar/images/
Regards, Peejay
https://zenofobe.com
Thank you very much. Got it. Was not even aware the Font Awesome exists. I am not going to replace it for images now though. Looks great and the colors could be changed.
Hi! How can I alter the product page layout? I'd like the left side boxes such as categories and whatever else status is ON not to be shown on product pages, shopping cart, basically anywhere where the categories for instance are not necessary and space can be used more efficiently.
Open file :-
includes/templates/fluorspar/common/tpl_main_page.php
Find this line :-
// the following IF statement can be duplicated/modified as needed to set additional flags
Insert this code below and modify the array to suit your requirements :-
I have modified my demo site as an example. http://www.zenofobe.com/demos/?skin=fluorsparCode:if (in_array($current_page_base,explode(",",'shopping_cart,login,product_info,checkout_shipping,checkout_payment,checkout_confirmation')) ) {
$flag_disable_left = true;
}
if ($this_is_home_page) {
$flag_disable_left = true;
}
Regards,
Peejay
https://zenofobe.com
Changing core files can be a problem during future upgrades if not meticulously documented. There are so many other options that don't require the modification of a core file.
The first that comes to mind in this instance is the use of a stylesheet to do a display:none where you do not want them to appear. Conversely, when needed again, simply change the stylesheet.
There are specific methods to do this and they are laid out in the CSS_read_me.txt of either the template_default or responsive_classic CSS folder.
Remember that, often what is important for the customer to have, is not considered by the developer/owner. For example, as a customer, I would find it VERY helpful to be able to see other categories I might be interested in shopping for while in the shopping cart.
Beautiful! I have just changed home page for "false". Exactly what I needed. Thank you.
dbltoe your comments are always appreciated however your attitude to 'display:none' seems to be a bit fickle, earlier on in this thread you were decrying it's usage and now you are advocating it. https://www.zen-cart.com/showthread....ne#post1359475
Your suggested method of using CSS does require the creation of more CSS files, this has an impact on page rendering (albeit small) and should be avoided.
I do not regard the file 'includes/templates/fluorspar/common/tpl_main_page.php' as a core file as it is part of the Fluorspar template and is therefore an 'override' file.
Modifying these files is part of the 'override system' and is the esscence of the Zen Cart open source project. It would be impossible to design a new template if you were unable to change these files.
Zen Cart v1.5.6c file :- includes/templates/template_default/common/tpl_main_page.php
contains this code :-
This must endorse my method as being acceptable and probably better than creating more CSS files.Code:// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
I have a small issue with getting 2 items to show on the product page. One is CrossSell and the other is alsoPurchased. Both of these show when I view page source with the right details/information, but neither show on the actual page. I've been trying to figure this out for days and nothing I do helps, they do/did both work fine on a previous template and work on the default 156c template. Any advice would be greatly appreciated.
Thanks for pointing this out. I have discovered an error in :-
includes/templates/fluorspar/css/stylesheet.css
open the file and delete this rule found near the top :-
.centerBoxWrapper {display:none}
Please note that CrossSell and Fluorspar are plugins that have modified versions of the same file which need to be merged :-
includes/templates/fluorspar/templates/tpl_product_info_display.php
If you have not already done so, use the version from Fluorspar and insert these lines near bottom of file after :- <!--eof Product URL -->
I am assuming you are using cross_sell_advanced_plus_combo_1.5Code:<!--bof xsell module -->
<?php require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php'); ?>
<!--eof xsell module -->
Regards Peejay
http://zenofobe.com
Thank you Peejay
That was the problem. I figured that line was the the issue and had already played with it, but not correctly. Instead of removing the whole line I only removed the "display:none", which of course wasn't the correct way to do it. Works just as expected now.
How do you change the 3 x images on the home page (the women)?
I replaced them with 3 of my own (named the same and saved the same file type), placed in the same spots and still nothing is changing.
Please help.
Kind Regards
Casey
Now that I have re-read your post, maybe the best way to ensure your browser is refreshing the images is to use unique name for yours. Or right click on an image and select 'Open Image in New Tab', then refresh that tab several times until you get the new image. I have often had to do this - in Chrome at least - to get the new image.
Revise the list of images in this File: includes/templates/fluorspar [or your name for it]/common/tpl_nivo_top.php
You will likely want to do it this way if you want to re-define the 'alternate' tags to match your images.
Perhaps at some time in the future, this will be a feature you can configure in the Admin Control Panel. I am just a rookie at coding so am unable to personally contribute nice 'fixes' to Zen Cart like many others have been selflessly doing.
Remember that when you do this, your browser may show you the cached images. Two options:
a) Use new filenames
b) Learn to clear cache quickly in your browser.
If you don't know how to do (b), a web search for "How to clear cache in name-of-my-browser" should yield some suggestions.
Seems that when modules Gift Certificates and Discount Coupons are uninstalled definitions MODULE_ORDER_TOTAL_GV_STATUS and MODULE_ORDER_TOTAL_COUPON_STATUS no longer exist. Have tried ZC 1.5.7 and problem still persists. These values are used in the mega menu and mobile menu to decide whether to display the links or not.
This is correct. You should always check
if (defined('MODULE_ORDER_TOTAL_GV_STATUS')) { ...
if (defined('MODULE_ORDER_TOTAL_COUPON_STATUS')) { ...
before using these values.
In PHP 5.6, it was ok to skip checking them, but not with PHP 7+! You will see the core code in Zen Cart 1.5.7 always checks these values before using them.
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/scanmyid/public_html/352processserver.com/includes/templates/fluorspar/common/tpl_mega_menu.php on line 110
This warning occurs if you don't have any manufacturers on your database or you don't have a product associated with a manufacturer.
This is a fix, open file :- includes/templates/fluorspar/common/tpl_mega_menu.php
Delete these lines from 59 to 123
And replace with this code :-Code:<li class="manufacturers-li"><a class="drop" href="#"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand -->
<div class="dropdown_1column">
<div class="col_1 firstcolumn">
<ul >
<?php
$show_manufacturers= true;
// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/
// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',true);
if ($show_manufacturers) {
// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}
$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;
// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }
while (!$manufacturer_sidebox->EOF) {
$manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
$manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
$manufacturer_sidebox_array[] =
array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
'text' => DISPLAY_MANUFACTURERS_IMAGES ?
zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
$manufacturer_sidebox_name);
$manufacturer_sidebox->MoveNext();
}
}
} // $show_manufacturers
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
?>
</ul>
</div>
</div>
</li><!-- eof shop by brand -->
Regards,Code:
<?php
$manufacturer_sidebox_query = "select m.manufacturers_id
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
if ($manufacturer_sidebox->RecordCount()>0) {
?>
<li class="manufacturers-li"><a class="drop" href="#"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand -->
<div class="dropdown_1column">
<div class="col_1 firstcolumn">
<ul >
<?php
$show_manufacturers= true;
// for large lists of manufacturers uncomment this section
/*
if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or ($request_type == 'SSL')) {
$show_manufacturers= false;
} else {
$show_manufacturers= true;
}
*/
// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',true);
if ($show_manufacturers) {
// only check products if requested - this may slow down the processing of the manufacturers sidebox
if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
$manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
order by manufacturers_name";
} else {
$manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
from " . TABLE_MANUFACTURERS . " m
order by manufacturers_name";
}
$manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
if ($manufacturer_sidebox->RecordCount()>0) {
$number_of_rows = $manufacturer_sidebox->RecordCount()+1;
// Display a list
$manufacturer_sidebox_array = array();
// kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
// if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
// } else {
// $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
// }
while (!$manufacturer_sidebox->EOF) {
$manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
$manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
$manufacturer_sidebox_array[] =
array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
'text' => DISPLAY_MANUFACTURERS_IMAGES ?
zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
$manufacturer_sidebox_name);
$manufacturer_sidebox->MoveNext();
}
}
} // $show_manufacturers
if(!empty($manufacturer_sidebox_array)) {
for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
$content = '';
$content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
$content .= $manufacturer_sidebox_array[$i]['text'];
$content .= '</a></li>' . "\n";
echo $content;
}
}
?>
</ul>
</div>
</div>
</li><!-- eof shop by brand -->
<?php
}
?>
Peejay https://www.zenofobe.com
Couple of things before I make those changes.
First: My file is different than yours..(and I might be the reason)
<!--<li class="manufacturers-li"><a class="drop" href="#"><?php echo HEADER_TITLE_MANUFACTURERS; ?></a><!--bof shop by brand -->
<div class="dropdown_1column">
<div class="col_1 firstcolumn">
<ul >-->
Second: You added } to the last line when it wasnt there before.
It looks like you have already edited the file so that the manufacturers item does not display but you have left the rest of the code to execute.
All I am saying is to delete ALL THE CODE that refers to the manufacturers menu item.
Another way to explain is to delete everthing BETWEEN these two lines :-
No need to replace it with the new code if you NEVER want to display manufacturers.Code:
</li><!-- eof quick links -->
DELETE EVERTHING BETWEEN THESE TWO LINES !!!!!!!!!!!!!!!
<li class="information-li fullwidth"><a class="drop" href="#"><?php echo HEADER_TITLE_INFORMATION; ?></a><!-- bof information -->
However if you do replace it with the new code, the manufacturers menu item will only display if you have at least one manufacturer on the database.
Lost the will to live!
Regards,
Peejay https://www.zenofobe.com
Hi, I am a noob to zen cart, in fact to e-commerce. I have set up a small store for a UK registered charity and have a few things I'd like to change on this template if possible.
I have zen v1.5.7.
I would like to know if it is possible to remove the 'Brands' tab from the Mega Menu display, and if so, how do I do it.
Thanks in advance, Jim.
Hi Jim,
if you scroll up you will see an explanation of how to remove the brands menu item from the mega menu.
Open file :- includes/templates/fluorspar/common/tpl_mega_menu.php
then remove the code that refers to manufacturers.
I have fixed this issue in Fluorspar version 1.5 so that it only displays this item when you have at least on manufacturer on the database.
I hope to submit version 1.5 soon.
Regards,
Peejay
http://www.zenofobe.com
Thanks @peejay I will have a look.
Good Morning! I am getting a warning in my log files for Fluorspar. PHP 7.4.11, ZC 15.7a, IH5.
Code:[07-Nov-2020 13:15:25 UTC] Request URI: /WLC_Artistry_Design/index.php?main_page=product_info&cPath=22&products_id=34, IP address: 168.235.167.202
#1 header() called at [/home/radianv2/public_html/WLC_Artistry_Design/includes/templates/fluorspar/common/html_header.php:16]
#2 require(/home/radianv2/public_html/WLC_Artistry_Design/includes/templates/fluorspar/common/html_header.php) called at [/home/radianv2/public_html/WLC_Artistry_Design/index.php:42]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home/radianv2/public_html/WLC_Artistry_Design/includes/languages/english/extra_definitions/fluorspar/extras.php:1) in /home/radianv2/public_html/WLC_Artistry_Design/includes/templates/fluorspar/common/html_header.php on line 16.
Based on that log, check the file /includes/languages/english/extra_definitions/fluorspar/extras.php.
I'm guessing that the file has a ?> at the end, followed by a blank line. If that's the case, just remove that ?>, leaving the ending blank line.
Related:
https://docs.zen-cart.com/user/troub..._already_sent/
https://docs.zen-cart.com/user/misce...ing_close_php/
that's not it. :( There is a php line with a comment inside it at the end of the file. I went ahead and dropped the ?> but it made no difference.
No, you're misreading the error message.
It says the problem is on line 1 of the file.
Perhaps your text editor has added a blank line at the top, or has set an invalid BOM (Byte Order Mark).
Might be easiest to just recreate the file. Not by a complete copy-paste of the original, but by recreating its contents.
You could even start by just deleting the file, although I'm sure it contains definitions that the template depends upon, so you will need to recreate what is needed.
Dr Byte, you comment about "recreating" may be a bit over my head. These are all standard ZC 1.5.7a files with the Flourspar template loaded. PHP 7.4.11. I have not created any of the subject files. Please forgive my ignorance.
To add to this, I have found another blank page issue...I happens at the end of creating an account, logging in or logging out. The actions do go through as I can refresh and the account was created, then I was logged in and back and forth. This sounds like the ?> issue but I am not sure what file it would be in.
:( the checkout button is going to a blank page as well. I did tweak a few text items in one file. I have restored those files to the original ones and the problems is still there.
By "recreate the file", I meant: read the original file with your eyes, and type its content (with your hands) into a new file of the same name, created afresh for this purpose. The idea being to attempt to eliminate a problem inside the original file by creating it clean as a new file. A simple text-editor is all one needs to do that.
Blank pages are a result of a server-side error. The details of the error are in the server's logs.
See https://docs.zen-cart.com/user/troub...ng/blank_page/
Guys, I am going to start a new thread over in the Linux Installation Forum on my above issues/ I thought this was due to templates and changes. However a fresh install of everything says otherwise as I am still having issues.
Thanks
Chris
Well, turns out it WAS A FILE IN THE FLUOSPAR TEMPLATE. I do not know the ins and outs of it but Dr Byte mentioned deleting the offending file that was giving me a PHP warning in the debug logs and I missed that advice. All I saw was "recreate the file." After deleting ...../includes/languages/english/extra_definitions/fluorspar/extras.php file, everything started working again. I cannot explain why.
After deleting it. ALL THE BLANK PAGES ARE GONE as well as the warnings. The contents of that file are four lines are
These do not REDEFINE anything, they should check for a definition and then move on if the value is defined.Code:
<?php
if (!defined('LARGE_IMAGE_WIDTH')) define('LARGE_IMAGE_WIDTH', '');
if (!defined('LARGE_IMAGE_HEIGHT')) define('LARGE_IMAGE_HEIGHT', '');
if (!defined('MODULE_ORDER_TOTAL_GV_STATUS')) define('MODULE_ORDER_TOTAL_GV_STATUS', '');
if (!defined('MODULE_ORDER_TOTAL_COUPON_STATUS')) define('MODULE_ORDER_TOTAL_COUPON_STATUS', '');]
Should extras.php be removed from the template or is my install different in some manner?
Again, ZC 1.5.7a, OPC and Fluorspar on Centos 6 server, cPanel 86.0 (build 31), Apache 2.4.46, PHP 7.4.11, MySQL 10.1.48-MariaDB
Perl 5.30.0
Thanks
Chris
I'm pretty sure the file was saved incorrectly when it was created.
Language files need to be saved "Without BOM" ("Byte Order Mark").
Most text editors operate in "without BOM" mode, but sometimes when non-english-speaking people create files they have BOM mode enabled in their editors, and that sets a special character at the beginning of the file ... which PHP treats as text. Outputting that to the browser is treated as sending page-headers ... and when that happens too early in the execution process you get the symptoms you've been posting about: headers-already-sent-on-line-1.
Saving the file "without BOM" (or "not With BOM") usually solves the problem. But if you don't know how to change the "save mode", typing out the file's contents by hand into a new file will probably suffice, especially since you're in Texas, even if you do speak 'merican ... at least it's a derivative of English. :D
My copy of Notepad++ uses BOM by default even when the file is saved without it. After fixing that file and adding it back to the orginal site, it still works fine.
and here it is...
Code:Steps
Download Notepad++.
To check if BOM character exists, open the file in Notepad++ and look at the bottom right corner. If it says UTF-8-BOM then the file contains BOM character.
To remove BOM character, go to Encoding and select Encode in UTF-8.
Save the file and re-try the import.
Okay, supposedly fixing the file removed all my blank page issues but did NOT stop all the Debug logs. I had about 5k more warnings this morning so I deleted the file again. Also, I have another set of code looking for images that doe not exists apparently. I cannot see where I missed copying the files over. Anyone have a clue?
Code:[11-Nov-2020 10:27:39 UTC] Request URI: /WLC_Artistry_Design/index.php?main_page=product_info&cPath=21&products_id=28, IP address: 142.202.95.92
#1 getimagesize() called at [/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php:19]
#2 require(/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php) called at [/includes/templates/fluorspar/templates/tpl_product_info_display.php:51]
#3 require(/includes/templates/fluorspar/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
#4 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/fluorspar/common/tpl_main_page.php:158]
#5 require(/includes/templates/fluorspar/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: getimagesize(images/large/gift_certificates/gv_5_LRG.gif): failed to open stream: No such file or directory in /includes/templates/fluorspar/templates/tpl_modules_main_product_image.php on line 19.
[11-Nov-2020 10:27:39 UTC] Request URI: /WLC_Artistry_Design/index.php?main_page=product_info&cPath=21&products_id=28, IP address: 142.202.95.92
#1 getimagesize() called at [/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php:23]
#2 require(/includes/templates/fluorspar/templates/tpl_modules_main_product_image.php) called at [/includes/templates/fluorspar/templates/tpl_product_info_display.php:51]
#3 require(/includes/templates/fluorspar/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
#4 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/fluorspar/common/tpl_main_page.php:158]
#5 require(/includes/templates/fluorspar/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: getimagesize(images/medium/gift_certificates/gv_5_MED.gif): failed to open stream: No such file or directory in /includes/templates/fluorspar/templates/tpl_modules_main_product_image.php on line 23.
As a quick fix, I copied the images/gift_certificates folder over into the images/large and images/medium folders. I then added _LRG and _MED as appropriate. This seems to fix the errors but I consider this a bandaid. Should there not be some error checking in those files?
I have not run this modified code. It should check for the existance of the actual file and call getimagesize() only if the file exists. Now I do not know what happens to the values in list() and how that affects the site overall. Thoughts?
Code:<?php
/**
* Module Template
*
* @package templateSystem
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_main_product_image.php 18698 2011-05-04 14:50:06Z wilt $
*/
?>
<?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";
if (file_exists($products_image_large) {
list($largewidth, $largeheight, $type, $attr) = getimagesize($products_image_large);
}
$smallwidth = "200";
$smallheight = "200";
if (file_exists($products_image_medium) {
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>
My zencart says "(You are presently using: v1.5.6c)""
and i added this fluorspar on this cart. and i got this on debug. and i done a lot of research but do not know how to fix it..
i also have Image Handler5
[28-Nov-2020 00:50:41 UTC] Request URI: /theshop/MYADMIN/template_select.php?page=1&tID=1, IP address: 24.113.181.201
#1 constant() called at [.../theshop/MYADMIN/includes/functions/admin_access.php:854]
#2 zen_get_menu_titles() called at [.../theshop/MYADMIN/includes/header_navigation.php:12]
#3 require(.../theshop/MYADMIN/includes/header_navigation.php) called at [.../theshop/MYADMIN/includes/header.php:218]
#4 require(.../theshop/MYADMIN/includes/header.php) called at [.../theshop/MYADMIN/template_select.php:95]
--> PHP Warning: constant(): Couldn't find constant BOX_HEADING_UP in .../theshop/MYADMIN/includes/functions/admin_access.php on line 854.
Most likely you've installed something that added a menu entry to the Admin menu system but there's no matching language define for the specified constant.
Likely you're missing a define for BOX_HEADING_UP (granted that seems like a strange one to use for a menu entry).
Missing language defines can be common if your store is using multiple languages and you don't take the time to make sure everything is defined in all languages.
thank you dr Byte
i will look into this..
i only use english.
i am back again.
i have this template running.. and i am using zen cart 156c
the fluorspar template 1.6. '
I have ceom for rewriting urls
inmage handler 5
and muit site
and hopefully added the correct files.. in admin to work
so I have 3 templates for my store..
heras
kandi
tshirt
ok i am writing this because i am getting this debug error and have no idea how to fix it.
these errors all seem template related. they seem to be about the social media buttoms.
thank you in advance to your help.
30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_1 - assumed 'MEDIA_1' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 62.
[30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_1_ICON - assumed 'MEDIA_1_ICON' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 62.
[30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_2 - assumed 'MEDIA_2' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 63.
[30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_2_ICON - assumed 'MEDIA_2_ICON' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 63.
[30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_4 - assumed 'MEDIA_4' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 64.
[30-Nov-2020 01:49:49 UTC] Request URI: /shop/index.php?main_page=page_not_found&pid=527, IP address: 185.191.171.41
#1 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php:32]
#2 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer.php) called at [/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php:203]
#3 require(/home/herasonl/public_html/shop/includes/templates/heras/common/tpl_main_page.php) called at [/home/herasonl/public_html/shop/index.php:97]
--> PHP Warning: Use of undefined constant MEDIA_4_ICON - assumed 'MEDIA_4_ICON' (this will throw an Error in a future version of PHP) in /home/herasonl/public_html/shop/includes/templates/heras/common/tpl_footer_menu.php on line 64.
did you ever get this.. there is a . on line 1 before the<?php a dot on the line one the very first character.
in the includes/languages/english/extra_definitions/fluorspar/extra.php
With Fluorspar, how do I edit the tabs on the home page. I want New to be the default.
Thanks.
Open file :- includes/templates/fluorspar/templates/tpl_modules_tab_menu.php
Replace this code :-
with this code :-Code:case 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS':
echo '<button type="button" class="tablinks buttonFeatured" onclick="openTab(event, \'featuredProducts\')" id="defaultOpen">'.MODULE_TABS_FEATURED.'</button>';
break;
case 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS':
echo '<button type="button" class="tablinks buttonSpecials" onclick="openTab(event, \'specialsDefault\')" >'.MODULE_TABS_SPECIALS.'</button>';
break;
case 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS':
echo '<button type="button" class="tablinks buttonNew" onclick="openTab(event, \'whatsNew\')" >'.MODULE_TABS_NEW.'</button>';
break;
this moves id="defaultOpen" from Featured to NewCode:case 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS':
echo '<button type="button" class="tablinks buttonFeatured" onclick="openTab(event, \'featuredProducts\')" >'.MODULE_TABS_FEATURED.'</button>';
break;
case 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS':
echo '<button type="button" class="tablinks buttonSpecials" onclick="openTab(event, \'specialsDefault\')" >'.MODULE_TABS_SPECIALS.'</button>';
break;
case 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS':
echo '<button type="button" class="tablinks buttonNew" onclick="openTab(event, \'whatsNew\') " id="defaultOpen" >'.MODULE_TABS_NEW.'</button>';
break;
To change the display order of the tabs, go to your shop admin.
Configuration -> Index Listing
Change the sort order of Show New Products on Main Page etc, to suit your requirements.
Regards,
Peejay
https://www.zenofobe.com
Thank you very much. Now how do I get rid of the Action DVDs down in the footer?
Works great one I removed the extra space from \'whatsNew\') "
Never mind turned off ezpages in the footer and it went away.
Any way to display a text list of manufacturers instead of the images?
Appreciate all the help guys.
Open file:- includes/templates/fluorspar/common/tpl_mega_menu.php
Find this line :-
Change true to false :-Code:define('DISPLAY_MANUFACTURERS_IMAGES',true);
You may also want to change the CSS.Code:define('DISPLAY_MANUFACTURERS_IMAGES',false);
Open file :- includes/templates/fluorspar/css/stylesheet_header_menu.css
Delete this line if you want the text to align left:-
.mega-menu .brands ul li {text-align:center}
Change this line:-
.brands li a:hover {background-color:rgb(215,215,215)!important;}
to this (to make hover background darker) :-
.brands li a:hover {background-color:rgb(133,133,133)!important;}
Regards,
Peejay
https://www.zenofobe.com
Thank you very much.
Here's a weird one. For 98 out of 100 searches the cart works great and provides search results. the other 2 times (for different search words) it produces blank pages.
Here is the error log.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 header() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/html_header.php:16]
#2 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/html_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:42]
--> PHP Warning: Cannot modify header information - headers already sent by (output started at /home1/pegasuspub/pegasuspublishing.com/includes/languages/english/extra_definitions/fluorspar/extras.php:1) in /home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/html_header.php on line 16.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php:35]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:116]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 58.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php:35]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:116]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 73.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php:35]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_mega_menu.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:116]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 73.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php:32]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:120]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 58.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php:32]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:120]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 73.
[21-Jan-2021 12:48:16 America/Chicago] Request URI: /index.php?main_page=create_account, IP address: 176.111.51.85
#1 zen_categories_ul_generator->buildBranch() called at [/home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php:85]
#2 zen_categories_ul_generator->buildTree() called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php:32]
#3 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/templates/tpl_modules_mobile_categories_tabs.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php:120]
#4 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_header.php) called at [/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php:106]
#5 require(/home1/pegasuspub/pegasuspublishing.com/includes/templates/fluorspar/common/tpl_main_page.php) called at [/home1/pegasuspub/pegasuspublishing.com/index.php:94]
--> PHP Warning: A non-numeric value encountered in /home1/pegasuspub/pegasuspublishing.com/includes/classes/categories_ul_generator.php on line 73.
I really need to get this fixed.
That extras.php file has a bad character on line 1. Chances are it's a BOM header because the file was saved incorrectly.
You'll find answers to issues like this in the online docs: https://docs.zen-cart.com/user/troub..._already_sent/
Clean install of 1.5.7b. Only plugins installed are One Page Checkout, Square Payments, USPS, and Flurospar.
I just replaced the categories_ul_generator.php with a fresh copy from the 1.5.7b zipfile. As well as the extras.php file from the flurospar zip. Problem still exists. I don't understand why it's intermittant. Try searching for orbit.
Not sure if all the problems are from the SSL, 301 redirect of your site BUT...
Your SSL is for webmail.yoursite.com. Your site is not set for total secure (https://). See https://docs.zen-cart.com/user/insta...rt-in-zen-cart
Get your host to fix the SSL to actually work with your site vs your webmail. Both should have SSL but, "to each his own."
Set a 301 redirect to match the new SSL (www. or non-www.) You can do it yourself in cPanel if you have the Redirects option under Domains.
IMHO, these items are more critical than the warnings as they do not hinder operation.
I don't think this will be a complete fix for the search causing a blank page but, that can be addressed at https://docs.zen-cart.com/user/troub...ng/blank_page/
I have looked at your site a noticed a number of html errors.
I think your define_main_page.php may look like this:-
It appears you have no closing tags on your div and paragraphs and this is causing the page to render incorrectly.Code:<div id="home-text">
Welcome to Pegasus Publishing's online home.
If you would like to receive a Square Invoice to pay for your order please select Pay by Check and indicate you'd like a Square Invoice in the comments.
<P>Please report errors to pegasushelp######################.
<p>Please stay safe and take care.
Also noted on a product description "You Shall Not Pass Kitten T-shirt", a <strong> tag with no closing tag.
The <ul> is a child of the <strong> tag, which is also incorrect.
Suggest you use something like this:- #productDescription ul {font-weight:bold} in your stylesheet.css.
Regards,
Peejay
https://www.zenofobe.com
peejay, have you looked at compatibility with zc 157b? I am back to working on my wife's jewelry site and I feel like I need to get this done now. I still need to install a few other things but I figured this patch should be my priority.
Thanks!
Chris
I am confused, what patch?
Peejay
https://www.zenofobe.com
Attachment 19403
No matter how I try to configure this logo, it comes out distorted. The orginal is a png 250x250. I have tried resizing and all but no matter what I do its still zoomed/stretched....any thoughts?
found it...includes/templates/fluorspar/css/stylesheet.css
its a fixed item on line 36 #logo img{width:220px;height:97px;}
Is there a way to turn off the Slider completely?
I've run into this problem in several template plugns now--the EZ Pages, that I believe are supposed to be displayed under the Useful Links, are not visible. I use these extensively on my current site (where they're displayed in the header bar). The Useful Links are defined as being EZ Pages, but they don't appear to do anything. If those are not associated with the EZ Pages, then where does one edit them and add links?
Never mind, I apparently didn't have all the choices set correctly. I clicked on visible multiple times, and it was still showing as turned off. It's working now.
I've just installed the Fluorspar template and so far have been very happy with it. One thing I do not see how to accomplish is the home page tabs that show on the demo at https://www.zenofobe.com/demos/index...ain_page=index. I've looked through the installation instructions and in the configuration, thinking there might have been an admin configuration section there. But I haven't found anything. How do I do this?
Ha! Figured it out. In Configuration->Layout Settings, "Categories-Always Show on Main Page" must be set to zero. This will over-ride the setting "Categories-Tabs Menu ON/OFF."