Restart “spamd” in WHM via SSH

I was facing the issue to restart “spamd”. The error messages was “The system’s command to check or to restart this service failed.” To Fix this issue. Please follow below: Via root SSH access: Please use the following to check if spamd is running: /scripts/restartsrv_spamd –status To restart spamd, the following command may be used:[…]

How to find first and last index of foreach loop in smarty

When we do a coding with the Prestashop sometime we need to find whether first/last index of foreach loop. There are 2 ways to find first or last index of foreach loop in the smarty. I will show you some of example for that. {foreach from=$arrList key=myId item=i name=foo} {if $} This is the first[…]

Prevent fancy box popup on product detail page on mobile – Prestashop

This tutorial is base on the Prestashop 1.6.X Every product has the possibility to have several images, those images are listed as a list to the left of the main product image. The problem is when the user clicks on any of the thumbnails, it pops up with a fancy box and swapping over the[…]

Convert address tag to Google Maps embed tag(iframe) with jQuery

1. HTML Part [html] <address class="need_to_convert"> 1 Chaplin Drive, Lane Cove West, New South Wales, Australia </address> [/html] 2. jQuery Part Using jQuery, we will search the whole document for <address> tags with “need_to_convert” class name, create some HTML to embed the map with the current address inserted in it, then write that HTML out[…]

WooCommerce – How to change “Add to cart” button text, Tips & Tricks

I’d like to share how to change “Add to cart” text of the WooCommerce. Change the add to cart text on product archives Add the following to your functions.php file under your activated theme. WooCommerce <2.1 [php] add_filter( ‘add_to_cart_text’, ‘my_archive_custom_cart_button_text’ ); function my_archive_custom_cart_button_text() { return __( ‘My Button Text’, ‘woocommerce’ ); } [/php] WooCommerce 2.1+[…]