NEW! features in Sorting WooCommerce Pro plugin

Today I’ve released a new version of the Sorting WooCommerce Pro Plugin. The plugin introduces two additional features proposed and suggested by customers.

Per Category Sorting!

The plugin up to v1.3.2 provided the option to create custom sorting options using custom attributes or default ones. However, the sorting options were general to the entire shop! The plugin now provides the option to specify that a sorting option appears only in a certain category. For as, Tea is different than Coffee. Both have different attributes that would be meaningless in the other’s context.

Sorting Icon Shortcode

Place the shortcode anywhere and get the sorting icon that changes the sorting of the items from ASC to DESC and vice versa for the same attribute! Check these awesome features and more in the plugin’s page.

[Javascript] jQuery and Chrome extensions

Chrome extensions are usually based on javascript. Nowadays, jQuery is always used/though of when javascript is mentioned. Thus, it’s essential to know how to use jQuery – at least in the popup.

To get familiar with chrome extension development – check this out.

To trigger something when the page is loaded in javascript it’s usually the famous


$(document).ready(function(){
//whatever
});

This, unfortunately, will not work in the popup of your extension. Instead, I used another function


function ext_ready(){
//whatever
}

window.onload = ext_ready;

Ofcourse that is not my solution – but I read it somewhere long time ago that I forgot the resource. Probably it’s on stackoverflow somewhere.