| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
PROBLEM: $location array issue on homepage | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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! |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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:
AFTER ADD: Code:
FIND: Code:
BEFORE ADD: Code:
|
|||||||||
#3
|
|||||||
|
|||||||
![]() 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! |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|