X-Cart Snippets. More snippets will follow soon...
301 Redirects With X-Cart Clean URLs
How to redirect an old URL to a new URL (for when using the X-Cart Clean URLs module) ...
Block IP Addresses or Referring Domains
A quick and easy method to block specific or ranges of IP addresses or referring domains, via your root .htaccess file.
Change next order ID value
If you've just opened a new store, you may not want customers to see low order ID's.
Detect HTTPS mode in Smarty
Enable Debug Console for Specific IP Address Only
Gives you a private debug console for a specific IP address, so as not to disturb customer view...
Export ALL Database Tables in DB Export
You may have other non X-Cart tables present in your database. This will dump them ALL from DB export tool in admin.
Price Adjustment - Round Up - Deduct 0.01
SQL patch to adjust price, round up to nearest, then deduct a cent or penny etc.
Redirect to HTTPS
With Google giving a ranking boost to secure websites, here is how to automatically redirect to HTTPS...