Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Problem with Information Pages and CDpath
PostPosted: Thu Jan 26, 2012 11:50 am 
Offline
CRE Addict
User avatar

Joined: Tue Mar 30, 2010 8:36 pm
Posts: 206
I am having an issue with CDpath attaching to the end of product page urls. This results in "back to list" being added to the bottom of the product page, and clicking on this link takes you back to "about us". This happens only after I visit one of the Info Pages and then click on a product.

I read a previous thread that had a fix, but I am still experiencing the issue.

I deleted the code in RED, as shown below:

=====================
<?php
/*
$Id: functions_htmloutput.php,v 1.0.0.0 2008/01/22 13:41:11 datazen Exp $

CRE Loaded, Open Source E-Commerce Solutions
http://www.creloaded.com

Copyright (c) 2007 CRE Loaded
Copyright (c) 2003 osCommerce

Released under the GNU General Public License

*/
global $link, $PHP_SELF;

// if CDpath session is set, carry CDpath to next URL
if (!eregi('CDpath=', $link)) {
if (isset($_SESSION['CDpath']) && $_SESSION['CDpath'] != NULL) {
$pages = array('articles.php',
'articles.tpl.php',
'articles_new.php',
'articles_new.tpl.php',
'article_info.php',
'article_info.tpl.php',
'categories.php',
'categories1.php',
'categories2.php',
'categories3.php',
'categories4.php',
'categories5.php',
'product_info.php',
'product_info.tpl.php',
'index_nested.tpl.php',
'index_products.tpl.php
');
if (in_array(basename($PHP_SELF), $pages)) {
$this_separator = (strpos($link, '?')) ? '&' : '?';
$link .= $this_separator . 'CDpath=' . $_SESSION['CDpath'];
}
}
}
?>
==========================

I am still experiencing the problem ... can someone please tell me what I am doing wrong? I am running 6.4.1 pro. TIA.

_________________
B2B 6.4.1 with MVS enabled


Top
 Profile  
 
 Post subject: Re: Problem with Information Pages and CDpath
PostPosted: Fri Jan 27, 2012 2:17 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2405
Location: New Zealand
Have you got any CDS categories with a description that has [] append CD Path ticked?
If you don't want this to happen on product pages, untick all / any of these.
If you do want to keep the CD Path appending to CDS / information pages, then find the $params code in the product_info(_tabs).tpl.php and comment it out like this:
Code:
// added for CDS CDpath support
//  $params = (isset($_SESSION['CDpath'])) ? 'CDpath=' . $_SESSION['CDpath'] : '';

Not sure this is the same as the other post, but this should resolve the issue you describe.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 24, 2012 4:31 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy