Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using Ultimate SEO Urls in conjunction with...


Guest

Recommended Posts

Hi,

I was wondering if anyone would be so kind as to help out here...

Ive installed Chemos awesome ultimate seo`s however...

On allproducts.php and pricelist.php etc the Ultimate SEO`s are not directly linked and the standard osc code is used...

$link_array = split('_', $cat_info[$inc_cat[$i]['id']] ['path']);
 for ($j=0; $j<sizeof($link_array); $j++) {
   $cat_info[$inc_cat[$i]['id']]['link'] .= ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cat_info[$link_array[$j]]['path']) . '"><nobr>' . $cat_info[$link_array[$j]]['name'] . '</nobr></a> » ';
   }

 

Is the section of code in allproducts that pulls the Cpath name.

I was wondering if anyone could help me figure out how to change this from Cpath to Cpath Cname like it is in the contrib?

 

Ive tried playing about with...

 

if ( isset($HTTP_GET_VARS['cName']) && defined(urldecode($HTTP_GET_VARS['cName'])) ) {
$cPath = str_replace( 'cPath=', '', constant(urldecode($HTTP_GET_VARS['cName'])) );
$HTTP_GET_VARS['cPath'] = $cPath;
}
if (isset($HTTP_GET_VARS['pName']) && defined(urldecode($HTTP_GET_VARS['pName'])) ) {
$pid = str_replace('products_id=', '', constant(urldecode($HTTP_GET_VARS['pName'])));
$HTTP_GET_VARS['products_id'] = (int)$pid;
}

 

From Chemo`s install file and the above but not being an experienced coder I cant quite work it out.

Any help would be appreciated.

Thanks

James

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...