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

Redirecting customers to home.php on click

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-27-2007, 11:19 PM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default Redirecting customers to home.php on click

Hi -- Hope someone can help. When a customer clicks on the company logo (x-cart logo) at the top of a page, I'd like to redirect to www.mydom.com/xcart/home.php and *not* to the default www.mydom.com/xcart/ Basically, specify the link used in the Home button by the logo. Where do I change the link?

Also, where do I change the welcome text displayed in home.php?

TIA.
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
  #2  
Old 08-27-2007, 11:21 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Redirecting customers to home.php on click

Hi
Change that link by editing it in skin1/head.tpl
Change text through Admin, Languages - or use Webmaster Mode to do it on the fly.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 08-28-2007, 12:08 AM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default Re: Redirecting customers to home.php on click

I'd already looked in head.tpl and couldn't see a link. Looking again, I see <a href="{$http_location}/"> So, how do I specify the home.php? I don't know PHP.

You've lost me with the other reply. Do you mean Administration > Languages? That doesn't see like the place. I just want to replace the default string.
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
  #4  
Old 08-28-2007, 12:49 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Redirecting customers to home.php on click

Yep, that's the link - just change {$http_location}/ to www.mydom.com/xcart/home.php

Not sure why you would want to, but that's all you need to do.

And Yep, that's exactly where I mean. Why doesn't that seem like the place? Unless you have hard coded the text into your skin1/customer/main/welcome.tpl template, which I very much doubt, just like most of the text on your site, it is stored in the database, and accessed through Languages in your Admin section.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #5  
Old 08-28-2007, 01:42 AM
 
shangara singh shangara singh is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 38
 

Default Re: Redirecting customers to home.php on click

I think I might wait till I have my SSL cert installed before changing the path. I read somewhere it can cause probs calling images via http when customer is logged in securely. Would calling a page do likewise?

Reason I want to change the link is because it takes you out of the store. That's not good, IMO. The Home button link is much more logical.

Languages, it seems to me the place to change the language of your store or some of its properties. I still cannot see how you can change a text string that appears on a home.php page though. No, I haven't hardcoded welcome.tpl It was hard enough finding it, let alone hard code it.

Not sure how Webmaster Mode can help. The welcome text also says to use this but I cannot see how.
__________________
-------------------------
Shangara Singh
www.Examaids.com
X-Cart: Version 4.1.10
Reply With Quote
  #6  
Old 08-28-2007, 05:37 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Redirecting customers to home.php on click

just change it to {$http_location}/xcart/home.php

Yes, Languages is where you can change the store language, but it is also where you change any text that appears in your shop.
Search for welcome in the filter box, or some of the text that you are trying to find and replace.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
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:30 AM.

   

 
X-Cart forums © 2001-2020