How to unblock IP addresses on a WHM

On certain servers, there are chances of our IP addresses getting blocked when we accidentally enter the wrong password multiple times or when we unintentionally try to ssh via the wrong port multiple times. The IP will be blocked for a certain period of time. If you have faced the same issue then read on to know how to block blacklisted IP addresses on a WHM based GNU/Linux server. Continue reading “How to unblock IP addresses on a WHM”

Free Shipping and Flat Rate Shipping issue [Opencart]

So if you set flat rate shipping store-wide, and you add free shipping for orders of $xxx, it still gives the option to the user to select either the flat rate shipping or the free one. Is there a way to just force it to be Free if Free is an option? I don’t think people will choose to pay for shipping if Free shipping is an option.

is there any solution on this? Continue reading “Free Shipping and Flat Rate Shipping issue [Opencart]”

Discount based on number of items in cart – Woocommerce

Discounts are a powerful marketing weapon which allows you to drive customer loyalty and revenue.

Suppose you would like to have a  discount based on number of items in cart. After you added 2 products to the cart, you get a discount. More products you add and more discount you get.

For example:

  • 1 product – full price (No Discount)
  • 2 products – full price with 10% discount of the combined price
  • 3 products – full price with 15% discount of the combined price
  • 4 products – full price with 20% discount of the combined price
  • And so on …

Yes its possible to use a trick, to achieve this. Normally for discounts on cart we use in WooCommerce coupons. Here coupons are not appropriated. I will use here a negative conditional fee, that becomes a discount.
Continue reading “Discount based on number of items in cart – Woocommerce”

Display subcategory products in parent category – Opencart

Just after installing any version of OpenCart you may notice that if you have multiple level categories in your store, subcategory products are not shown in parent or top category. That might be an issue for some. But there is a simple and quick solution for that. You just need vQmod in your system and one small free OpenCart extension.

Continue reading “Display subcategory products in parent category – Opencart”

How to fix – Warning: You do not have permission to modify blah blah blah + Opencart 2

Are all of your directories and files set to 755 and 644 permissions (Linux/Unix only, not Windows)? Which distribution of Linux (or of Unix) or version of Windows is your server? If no, reset to 755/644 (in FileZilla Client, recurse, all dirs or all files).

If above method doesn’t solve the issue, try below code. It worked for me. Continue reading “How to fix – Warning: You do not have permission to modify blah blah blah + Opencart 2”

Send Gravity Forms File Uploads to Amazon S3

This snippet will send files uploaded to a Gravity Forms form to your Amazon S3 account. To get started, first download the files. Then, some customization steps are required before use:

The code snippet is in the link below:

Read more about sending gravity forms files to Amazon s3

Note:

This type of functionality is best to put into a plugin. Theme files (i.e. functions.php) are intended for presentation and everything else should be in a plugin. This is because you’ll lose the functionality if you switch themes. Here’s a link on how to build a plugin for it.

Once you create the plugin and the main file, just add a folder called “inc” and add the S3.php file to that.

 

 

Add all countries into geo zone on opencart easily

  • Open the form to add geo zone.
  • Open console of the browser and enter the code:

Then remove the countries you wish to exclude.

That’s all.

Latest version of opencart I had to change it to

Thanks!

Tips:

How to open Javascript console?
To open the dedicated Console panel, either:
  1. Press Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac).
  2. If DevTools is already open, press the Console button.