Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Manufacturers In Place of Categories - home.tpl issue.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-03-2009, 09:09 AM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Unhappy Manufacturers In Place of Categories - home.tpl issue.

Thanks for taking a few minutes to help me with this, here's the issue:

Last year we realized we have WAY too many categories to look good on a page but considerably less named brands. So, we switched out the manufacturers for "brand names" and on the home.tpl page where we found categories.tpl we replaced it with the [if] statements for the manufacturers.tpl

Below is the edit I've done to the home.tpl page on our test store but for some reason we keep seeing the categories but not the manufacturers ... even when I took the whole [if] statement for the categories out of the file. And I'm stumped as to why. Perhaps I need to edit another page that I'm not thinking of? I don't think I handled the code wrong but maybe? I tried cleanup.php thinking it was the cache but no good there either... so yea, I could use a clue.

The code I replaced is in red and the code that I replaced it with is in green.

Any advice would be GREATLY appreciated.

Code:
{* $Id: home.tpl,v 1.100 2008/12/11 08:02:53 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} <?xml version="1.0" encoding="{$default_charset|default:"iso-8859-1"}"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> {config_load file="$skin_config"} <html xmlns="http://www.w3.org/1999/xhtml"> <head> {include file="customer/service_head.tpl"} <!--[if lt IE 7]> <script src="{$SkinDir}/customer/iefix.js" type="text/javascript"></script> <![endif]--> </head> <body{if $body_onload ne ''} onload="javascript: {$body_onload}"{/if} class="{if $main ne "catalog" || $current_category.category ne ""}normal-page{else}welcome-page{/if}{foreach from=$container_classes item=c} {$c}{/foreach}"> <div id="page-container"> <div id="page-container2"> <div id="content-container"> <div id="content-container2"> <div id="center"> <div id="center-main"> <!-- central space --> {include file="customer/noscript.tpl"} {if $gcheckout_enabled && $main ne "cart" && $main ne "checkout" && $main ne "anonymous_checkout" && $main ne "order_message"} {include file="modules/Google_Checkout/gcheckout_top_button.tpl"} {/if} {include file="customer/dialog_message.tpl"} {if $page_title && ($main ne "catalog" || $current_category.category ne "")} <h1 class="page-title">{$page_title|escape}</h1> {/if} {if $active_modules.Special_Offers && ($main ne "catalog" || $current_category.category ne "")} {include file="modules/Special_Offers/customer/new_offers_message.tpl"} {/if} {include file="customer/home_main.tpl"} <!-- /central space --> </div> </div> {if $main ne "catalog" || $current_category.category ne ""} <div id="left-bar"> {* if $categories && ($active_modules.Fancy_Categories || $config.General.root_categories eq "Y" || $subcategories) *} {* include file="customer/categories.tpl" *} {* /if *} {if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"} {include file="modules/Manufacturers/menu_manufacturers.tpl" } {/if} {if $active_modules.SnS_connector && $config.SnS_connector.sns_display_button eq 'Y'} {include file="modules/SnS_connector/button.tpl"} {/if} {include file="customer/menu_cart.tpl" } {if $active_modules.Feature_Comparison && $comparison_products ne ''} {include file="modules/Feature_Comparison/product_list.tpl" } {/if} {include file="customer/special.tpl"} {if $active_modules.Survey && $menu_surveys} {foreach from=$menu_surveys item=menu_survey} {include file="modules/Survey/menu_survey.tpl"} {/foreach} {/if} {include file="customer/help/menu.tpl"} {include file="customer/news.tpl"} {if $active_modules.Interneka} {include file="modules/Interneka/menu_interneka.tpl" } {/if} </div> {/if} </div> </div> <div class="clearing"> </div> <div id="header"> {include file="customer/head.tpl"} </div> <div id="footer"> {if $active_modules.Users_online} {include file="modules/Users_online/menu_users_online.tpl"} {/if} {include file="customer/bottom.tpl"} </div> {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} {if $active_modules.Google_Analytics && $config.Google_Analytics.ganalytics_code} {include file="modules/Google_Analytics/ga_code.tpl"} {/if} </div> </div> </body> </html>
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
  #2  
Old 08-03-2009, 11:50 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

did you edit the home.tpl in the customer folder or the skin1 folder?

all .tpl are in the customer folder for 4.2
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 08-03-2009, 12:23 PM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

We're going in through the Admin Panel, Edit Templates, which I believe takes you directly into the skin1 folder.
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
  #4  
Old 08-03-2009, 12:30 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

all templates are in the akin1/customer folder.

if you edit the home.tpl in the skin1 folder there will be no changes
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 08-03-2009, 01:17 PM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

Went in and double checked where we were at when editing. We are definitely in the right place ie: skin1/customer/home.tpl

Yet the problem still persists . . . .

Tried different browsers, used the cleanup.php all to make sure it was not a cache issue.
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
  #6  
Old 08-05-2009, 07:06 AM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

Thank you for trying to help Ashley. Sorry it didn't work.

Okay, so is there anywhere else that we'd need to edit other than skin1/customer/home.tpl to make the manufacturers appear where the categories are in my test store?

I'm fiddling around with this again today and even with fresh eyes of being away from the code for a while I'm still not seeing how to make it work. Oddly I got it working on my 4.1.12 store (see signature for link) but I can't get it to work in 4.2 and their both on the same host so I'm sure it's not some problem on server side. *sigh*

I'm open to any suggestions right now... hammers, pick axes, alien abductions... anyone got any ideas?
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
  #7  
Old 08-05-2009, 10:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

Maybe you've done this already but check your general settings / manufacturers and make sure that "Show manufacturers list in the menu column" is ticked
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #8  
Old 08-05-2009, 11:35 AM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

Double checked that also, it is checked so that does not seem to be the problem.
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
  #9  
Old 08-06-2009, 06:32 AM
  Madhatterr's Avatar 
Madhatterr Madhatterr is offline
 

eXpert
  
Join Date: Jan 2007
Posts: 202
 

Default Re: Manufacturers In Place of Categories - home.tpl issue.

For everyone who may read this thread in the future; if you use the fashion mosaic skin with X-Cart 4.2.x then you have to edit two templates to hide the categories menu:

1. skin1/customer/main/welcome.tpl - to hide the categories from the index page.

2. skin1/customer/home.tpl - to hide the categories from the rest part of the store.

Both must be edited to make the changes apply. Just thought I'd share what I learned.
__________________
DeAnna Ross
http://madhatterrgames.com [v.4.1.8] Fashion Template
http://www.hortonstores.com [v.4.1.12] Fashion Mosaic Skin
http://teststore.hortonstores.com [v.4.2.2] Fashion Mosaic Skin TEST STORE - NOT FOR ACTUAL SHOPPING!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:23 PM.

   

 
X-Cart forums © 2001-2020