Smack Digital Inc.

How To Close Your X-Cart Without Tanking SEO Ranking

Posted by and last updated Apr 4, 2014 03:57 PM

Tutorial detailing how to close an X-Cart store without tanking search engine ranking.

Using the "Check this to close your shop temporarily:" in your X-Cart admin -> general settings section will not allow customers to access your site effectively closing it, however this also prevents search engines from accessing your site pages and tells search engines that all pages have been directed to shop_closed.html. This can have a drastic consequence on search engine rankings.

Instead, you can prevent orders from being processed and place a shop closed message on your stores pages with the following changes. Note the location of the .tpl files may differ if you are using a custom skin. You'll want to modify the files at the locations specific to your site.

Open skin/common_files/customer/home.tpl

{include file="customer/home_main.tpl"}

Before add code providing a formatted message about the reason your store is closed:
<div style="padding: 10px; border: 1px solid #CCCCCC; background-color: #EAEAEA">
<h2>Shop Closed Temporarily</h2>
We'll be open for orders again shortly, please check back soon!
To place an order in the meantime please call 555-5555.

Open cart.php


After add:
// WCM - Temporarily disable orders
header('Location: /');
// / WCM - Temporarily disable orders

Your store will now remain spiderable while people who attempt to place orders will be redirected to the home page displaying the closed message. To restore checkout remove the message from home.tpl, and delete the code from cart.php.

About the Author

Jonathan Peters Jonathan's founder of Smack Digital, a digital strategy agency that creates and executes online business success for executives who are highly motivated to quickly increase their market share. With more than two decades of experience on the web for clients ranging from non-profits to billion dollar enterprises, Jonathan's an expert in web development, eCommerce, software programming, search engine optimization and social media marketing.

Browse By Category

RSS Feeds

Don't miss out! Subscribe to our RSS Feeds to receive instant notification when new entries are added.

RSS Feed for All Categories
RSS Feed for X-Cart How-Tos
We choose our clients selectively.
Let's talk success. Apply to work with us.
Apply toWork With Us
Apply toWork With Us