Sometimes when working on a client’s site, you might be tasked with trying to capture all out bound links as what we call “external links” and display a confirm message to the user before letting them leave the site.
Sounds simple enough right? Well, in a perfect world yes it should be, but more times than not you will be dealing with a whole host of ways page links have been authored....
So today I wanted to spotlight a neat JS library I found while doing some client work called Markup JS by Adam Mark:
https://github.com/adammark/Markup.js/
What is Markup JS?
Well to answer that question, it might be better to bring in a real world need first.
Lets say we are building a web application, or even a really simple web service between frontend and backend using XHR (ajax) only.
The first thing...
I’ve added yet another tutorial on how to rigg weapons and animate them with first person hands to the inter-webs today.
Enjoy!
The oil is easy to use – all you need to do is apply it on the users’ reviews. https://www.supplementprofessors.com/cialis-2749.html buy levitra professional Many therapists or professional say that massage provides cialis cheap various benefits for your...
This is a nice little snip I created when in a bunch with a client who needed a DOM part to be higher up in the source order at particular break points, but not higher up in the source order under other responsive break points.
So, if in a bunch, if you can’t convince another developer or owner that the stacking rules would be a better approach, or if you just have no other choice. You can use this...
Sometimes you just want to have the ability to create orders on the fly that get entered into Magento’s backend like any other normal order would if going through the normal checkout process.
In our scenario lets say we have a need to have products purchased with either real world currency, or a fictional site point based currency (could be rewards, game points etc etc.) for virtual products or...
This will be short, but as you know phtml template files in Magento are stitched together using layout XML files. Sometimes we might have the need to include a static block we have created in the backend to one of they layout XML files. Here is the XML snip one would use to evoke the backend static block in a XML layout file.
<block type="cms/block" name="YOUR CMS BLOCK IDENTIFIER">
...
In the context of ever needing to get the “send an email to friend” url / link mark up from Magento in other scopes other than view.phtml (say a custom pthml file with layout specific needs that can be configured), here is what you do.
First we need to get our helpers / model / product like so:
<?php
$_product = Mage::registry('current_product');
$_helper =...