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

Changing breadcrumbs ...how can i change link-url of company

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-07-2005, 05:49 AM
 
krpatel krpatel is offline
 

Advanced Member
  
Join Date: Sep 2005
Posts: 51
 

Default Changing breadcrumbs ...how can i change link-url of company

Hello Everyone,

i have top level in the breadcrumbs like this:

Company :: category :: product with urls https://shop.vaatchit.com/home.php :: https://shop.vaatchit.com/home.php?cat=245 :: "product link"

means....

for,
Company -->https://shop.vaatchit.com/home.php
category --->https://shop.vaatchit.com/home.php?cat=245.

Now, i would like to have,

The link-url should be http://www.vaatchit.com instead of https://shop.vaatchit.com/home.php

can we do this ??

I tried with location.tpl but i didnt get proper success for it. if anyone able to do this please inform me.
Regards,
N V Master.
__________________
x-cart gold
Version 4.0.14
Reply With Quote
  #2  
Old 12-07-2005, 06:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

That should be automatic if you have things set up correctly in your config.php.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-24-2011, 08:58 AM
 
Fascinations Fascinations is offline
 

Member
  
Join Date: Dec 2010
Posts: 16
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

balinor, could you expand on that explanation?

I am trying to do the same thing on 4.4 pro.

I would like to try and remove as many references and/or pointers to home.php as possible. I am using a completely separate front end outside of x-cart and would like to use the breadcrumbs, but I need them to point to the base url instead of home.php.

Any input would be appreciated on this.

Thanks.
__________________
X-Cart Pro 4.4
Reply With Quote
  #4  
Old 01-28-2011, 02:04 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

Insert this code into <xcart_dir>/smarty.php script:

PHP Code:
if (AREA_TYPE == "C") { 
        function 
replace_home_php_links($tpl_source, &$smarty
        { 
            global 
$xcart_web_dir

            return 
str_replace("\"home.php\"""\"$xcart_web_dir\""$tpl_source); 
        } 
        
$smarty->register_outputfilter("replace_home_php_links"); 


right before this code fragment:
PHP Code:
$smarty->config_dir $xcart_dir $smarty_skin_dir
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 02-08-2011 at 04:59 AM.
Reply With Quote

The following 4 users thank qualiteam for this useful post:
3andena (11-27-2011), Holiday (05-17-2011), michellevy (02-01-2011), moniquelynn (04-11-2011)
  #5  
Old 02-04-2011, 10:07 AM
 
michellevy michellevy is offline
 

Member
  
Join Date: Oct 2007
Posts: 13
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

Quote:
Originally Posted by qualiteam
Insert this code into <xcart_dir>/smarty.php script:

PHP Code:
function replace_home_php_links($tpl_source, &$smarty)
{
    global 
$xcart_web_dir;

    return 
str_replace("\"home.php\"""\"$xcart_web_dir\""$tpl_source);
}
$smarty->register_outputfilter("replace_home_php_links"); 

right before this code fragment:
PHP Code:
$smarty->config_dir $xcart_dir $smarty_skin_dir

Thank yu for teh code, however this is not working in the admin backend.

if you install this code, then in the admin backend the home link will be the same as the following link.

so for example:

Home :: General Setting

in this case, if you mouse over the Home link, then you will see in the bottom of browesr that the link will say:

admin/configuration.php

Same link if you were to mouse over the "general setting" breadcrumb setting.

Anyway, it would be nice if you could provide a way to correct that issue.

Thank you.
__________________
4.1.8
Reply With Quote
  #6  
Old 02-08-2011, 05:01 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

OK. Sorry. I've update the code.

It should work for customer front end only now.
Please check.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #7  
Old 02-08-2011, 08:52 PM
 
michellevy michellevy is offline
 

Member
  
Join Date: Oct 2007
Posts: 13
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

Quote:
Originally Posted by qualiteam
OK. Sorry. I've update the code.

It should work for customer front end only now.
Please check.

Alex,
Thank you very much for this update.
It is now working very well.
__________________
4.1.8
Reply With Quote
  #8  
Old 07-29-2013, 03:45 AM
 
alinush alinush is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 88
 

Default Re: Changing breadcrumbs ...how can i change link-url of company

This helps a lot to replace all the links in the store.

Can you also advise about updating the homepage canonical link from store.url/home.php to store.url ?

Thanks
__________________
X-Cart 4.1.x to 4.7.x
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:21 PM.

   

 
X-Cart forums © 2001-2020