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

Stopping catalog from deleting specific file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-30-2007, 06:39 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default Stopping catalog from deleting specific file

Version 4.1.8

I have a catalog in the root of my site not in a catalog subdirectory.

When I recreate my catalog I select the checkbox to delete all html files upon catalog creation.

This function ignores the shop_closed.html file.

I have some other non xcart html files at the root of my site that I would like to be left alone upon catalog creation.

What file do I edit to add the list of these files so xcart will no longer delete them?
Reply With Quote
  #2  
Old 12-30-2007, 08:04 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: Stopping catalog from deleting specific file

Quote:
Originally Posted by Light Speed
Version 4.1.8

I have a catalog in the root of my site not in a catalog subdirectory.

When I recreate my catalog I select the checkbox to delete all html files upon catalog creation.

This function ignores the shop_closed.html file.

I have some other non xcart html files at the root of my site that I would like to be left alone upon catalog creation.

What file do I edit to add the list of these files so xcart will no longer delete them?
Hello,

Open /your_xcart_folder/admin/html_catalog.php and look for this line:
Code:
if (($file == ".") || ($file == "..") || ($file=="shop_closed.html") || (strstr($file,".html")!=".html"))
Specifically, add your filename(s) to that line within the OR construct (that is what the || signify)
So for example it might look like this after your edit:
Code:
if (($file == ".") || ($file == "..") || ($file=="shop_closed.html") || ($file=="my_file_that_I_dont_want_deleted.html") || (strstr($file,".html")!=".html"))
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #3  
Old 12-30-2007, 08:27 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default Re: Stopping catalog from deleting specific file

ROCKIN

Thanks for the pointer!!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:50 AM.

   

 
X-Cart forums © 2001-2020