Installing and using ApacheTop on centos

Installing and using ApacheTop on centos

You can check if epel-release is installed on CentOS by running the following command in the terminal: rpm -qa | grep epel-release This will check if the epel-release package is installed and will display the package name if it is installed. If the package is not...

Create a link to Google Search Console for ranking data

Create a link to Google Search Console for ranking data

In this example I am going to create a link to google search console to get history of keywords used and organic position in the last 3 months for a url in your xcart 4 store from the backend. In order to do this you must have your domain verified and setup in google...

Adding your own custom css file to shopify store

Adding your own custom css file to shopify store

When working with shopify you will want to edit the css file for yours store theme. Editing the css file is not recommended as you will come into issues with theme updates which either remove your updates or change so much that you had not idea what your original...

How to identify a customer that is not logged in on shopify

How to identify a customer that is not logged in on shopify

You can use this code snippet to display different content on the site based on whether the user is logged in or not. Great for wholesale customers. {%- if customer.id == null -%} <div class="product-retail-link"><a href="#">Your text...

Discount Coupon Product Exceptions

Discount Coupon Product Exceptions

In xcart 4 the dscount coupon will discount all products. But in some cases you want to stop it discounting some products and not be part of the offer. This can be done using the following instructions.

Mass Delete all customers for test server purposes in xcart 4

Mass Delete all customers for test server purposes in xcart 4

Create a file in /admin/ called delete_all_customers.adhoc.php and add the following to it. define('IS_MULTILANGUAGE', 1); require './auth.php'; require $xcart_dir.'/include/security.php'; x_load('backoffice'); $customers_sql = "select id from $sql_tbl[customers]...

How to clear down a log file on linux

How to clear down a log file on linux

if you need to clear down a log file on linux as it is getting too big. Rather than delete and allow the application to re-create it. You can use the following command which will not interupt the program using it. cat /dev/null > /path/to/logfile # to empty all the...