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

Strange shop_closed has appeared!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-06-2010, 10:42 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Strange shop_closed has appeared!

Hi, I made a custom version of the shop_closed.html file and posted it in the customisation section a few months ago. The final site I have been working on is about to go live in a few days' time, and my custom shop_closed page displays when you go to the domain name, but when you go to a subcategory (unlikely that a customer would do this, but I'm interested in what's happening) it displays a hybrid of the old shop_closed file and my new one! i.e. it contains the text I typed into the shop_closed.html file, but not the logo, and it uses the old (bloated) X-Cart code!
You can view the 'hybrid' version at:
http://www.tnplshop.co.uk/Card-Covers/

and the correct (customised) one at

http://www.tnplshop.co.uk

Has anybody got any ideas why this is happening? I thought there was only one shop_closed file.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 12-06-2010, 12:54 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Strange shop_closed has appeared!

You can try changing the src references to your logos from skin/images to /skin/images

----
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote

The following user thanks gb2world for this useful post:
Sisom (12-06-2010)
  #3  
Old 12-06-2010, 02:32 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Strange shop_closed has appeared!

Hi gb2world, thanks for explaining that, what a fool I am! Talk about not taking my own advice - I've been developing three sites for the same client, and hadn't even used my own, new version of the shop_closed.html on this one!

I've put the extra forward slash in now and that's fixed the problem. Am I right in thinking that that now makes it an absolute, rather than relative, URL? So from the
http://www.tnplshop.co.uk/Card-Covers/
page, it was looking for
http://www.tnplshop.co.uk/Card-Covers/skin1/images/etc.
(which obviously doesn't exist)

instead of
http://www.tnplshop.co.uk/skin1/images/etc.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #4  
Old 12-06-2010, 03:19 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Strange shop_closed has appeared!

It is an absolute referenced always from the top level. I try not feel foolish when I do that. You can get used to writing code one way, then using URL re-writes forces you to be a little more careful with how you define the URLs to things.

----
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
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 01:28 PM.

   

 
X-Cart forums © 2001-2020