Clickfunnels create dynamically updating product images

If you have 3 images then keep one images visible and hide other two in clickfunnels. Then find the ids of images and also of input elements for dynamic selection of images. Use the below javascript code to in Tracking code footer section. Ofcourse add the script...

Virtualmin, postfix and multiple domains

With virtualmin and postfix when using multiple domains, the imap etc for mail clients doesn’t work properly because postfix doesn’t support sni… It only works for the domain for which SSL is copied over to the postifx/devcot. A To fix create a...

Disable Woocommerce image cropping

Use below code in functions.php or in your custom plugin add_filter( ‘woocommerce_get_image_size_thumbnail’, ‘ci_theme_override_woocommerce_image_size_thumbnail’ ); function ci_theme_override_woocommerce_image_size_thumbnail( $size ) { //...

Some useful WordPress plugins

Just a random list Simple Image Sizes A pretty useful plugin to generate custom image sizes or to change theme image sizes like removing crop etc from woocommerce images.

Equal columns for WordPress/Woocommerce products

Use the code below. Will need to change tag/selector according to theme (function($){ if (window.innerWidth > 400) { equalheight = function(container){ var currentTallest = 0, currentRowStart = 0, rowDivs = new Array(), $el, topPosition = 0;...

Magento Indexers Invalid Issue

Go to Magentto root from command line and run following command. php bin/magento indexer:reindex If you get the error “Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors”...

React Native SSL error on Android API 16-19

React native fetch request won’t work on Android API 16 to 19 after react native upgraded to newer okHttp versions which doesn’t support old cipher suites. To make it work we will have to downgrade okHttp version of react native. I specifically encountered...

Virtualmin Postfix fixes after mariadb upgrade…

Used this guide to upgrade mariadb to version 10 or above. After upgrade postfix needs to be restarted. Go to postfix > Edit config files and copy over files main,master and virtual.rpmsave to their original files. Run command postmap /etc/postfix/virtual And...

Postfix – Virualmin – Email send/receive issue

Just a log for the future… Make sure FQDN is setup properly. Check under webadmin > Networking > Network configuration In /etc/postfix/main.cnf myhostname should be set to FQDN. Keep inet_protocols = ipv4 Above is the issue most of the time, configuration...