Monthly Archives: Jan 2016

Daily Tips Magento Tutorials

How to get SkinURL in Magento 2

display magento products on homepage

Question of the day:

How to use the old functions($this->getSkinUrl() and {{skin url=”}}) from Magento 1.x inside the brand new Magento 2?

Read More
Daily Tips Social Media

How to turn off(or disable) Star Wars sounds from YouTube video player

I guess every Star Wars fan activated that amazing feature that Google came few months ago: “Awaken the Force within you. Choose a side and your Google apps will follow your path.“.

Read More
eCommerce Ecwid

Ecwid onPageLoaded early firing

If you want any JavaScript or jQuery script code to run when a certain page in the product browser widget of Ecwid is open, you need to use the Ecwid JavaScript API, more exactly the OnPageLoaded event.

Your js code should be wrapped into the function, then the function needs to be added to the OnPageLoaded hadlers.

For example, to add a placeholder to the search input you need to use the following code:

if (typeof(Ecwid) == 'object') {
    // an Ecwid JS API call
        // Regular JS Code
        function(page) { 
            if (jQuery('.ecwid-SearchPanel-field').length){  
                jQuery('.ecwid-SearchPanel-field').attr('placeholder', 'Enter your search term');

References: jsFiddle, Ecwid forum.

Read More

Enjoy This Article?

Join My Mailing List...