X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Strange shop_closed has appeared! (https://forum.x-cart.com/showthread.php?t=56913)

Sisom 12-06-2010 10:42 AM

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.

gb2world 12-06-2010 12:54 PM

Re: Strange shop_closed has appeared!
 
You can try changing the src references to your logos from skin/images to /skin/images

----

Sisom 12-06-2010 02:32 PM

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.

gb2world 12-06-2010 03:19 PM

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.

----


All times are GMT -8. The time now is 02:28 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.