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

PROBLEM: $location array issue on homepage

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-28-2006, 08:36 AM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default PROBLEM: $location array issue on homepage

All,
I am getting a very weird thing happening on my homepage: the TITLE is showing a category name along with the Company Name.

I changed smarty.php to show the tags, and the array is being built much differently than my other store, but can't figure out what is causing it to build this way.

Typical way in debug:
(using "..." to make it broken down better below)

{$location}
...Array(1)
......0 = Array (2)
............0 = the store name
............1 = home.php


But on my website, it's showing in debug as:

{$location}
...Array(3)
......0 = Array (2)
............0 = the store name
............1 = home.php
......1 = Array (2)
............0 = Name of cateogry ***** this is showing up in the TITLE *****
............1 = CDSEO name of the category
......2 = Array (2)
............0 = forgot to write this down, not shown in TITLE though
............1 = forgot to write this down, not shown in TITLE though


This issue is JUST with the homepage.... when I start going into categories, subcategories, checkout, etc. etc., it's perfect.

The code inside the TITLE tag is the default X-Cart code.

This is driving me nuts... hoping someone can assist with this!!! This is one of my final "cleanups" before going live. Thanks very much all !!!!

Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
  #2  
Old 12-28-2006, 10:29 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: PROBLEM: $location array issue on homepage

There may have been a mis-edit in your categories.php.

As a "quick" fix, you can do this:

Open skin1/customer/home.tpl

FIND:

Code:
<title>

AFTER ADD:

Code:
{if $main eq "catalog" AND $cat eq ""} YOUR CUSTOM TITLE HERE {else}

FIND:

Code:
</title>

BEFORE ADD:

Code:
{/if}
Reply With Quote
  #3  
Old 12-28-2006, 12:21 PM
 
btomasie btomasie is offline
 

Advanced Member
  
Join Date: Oct 2004
Posts: 80
 

Default Re: PROBLEM: $location array issue on homepage

Thanks Jon.... the issue now is in debug, it shows that my homepage has $cat = 468.... which is the name of the cat that is showing up.


Is categories.php a file that is editted it (I assume so) when doing the CDSEO self-install? I can't remember.... I did it so long ago and then this website project died for numerous months and I am just now getting back into it.

Where is the $cat set originally, do you know?

Thanks much!
Brian
__________________
X-Cart Gold v4.0.18 [unix]
- Easy Checkout module
- ezUpsell module
- CDSEO module

X-Cart Gold v4.1.11 [unix]
***38,000+ active products!
- CDSEO module
- Address Book module
- Reorder module
- Smart Search module

X-Cart Gold v4.4.2 [unix]
- in development now!
Reply With Quote
  #4  
Old 12-28-2006, 12:39 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: PROBLEM: $location array issue on homepage

The $cat variable is usually only set in the query string and shouldn't be specified in CDSEO in any way. If you send FTP info to support@websitecm.com I'll see if I can help you out.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:33 PM.

   

 
X-Cart forums © 2001-2020