Wanted to share a cool little thing I just did that might help some of you with custom RTML stores when dealing with one or two products that are different from all the rest of your products.
FREE SHIPPING is one of the most powerful things you can offer shoppers on your store to motivate them to buy (more). In some industries, it's a given. When all your competion offers free shipping on sales over a certain dollar amount, if you don't do the same you're toast!
Long story, short: a client offers free shipping on certain types of products over a certain dollar amount. Cool. How to promote it on every page? I like to stick FREE SHIPPING right up there in a shopper's face right in the headline. Works well. Converts more shoppers into buyers. Sounds good, right?
Problem is, I'm lazy. And forgetful, too. I really hate having to hard code FREE SHIPPING into the names of products that get free shipping because I always forget to add the text to new products. Also, things change pretty often on this site. My client will suddenly drop the price on something and forget to remove FREE SHIPPING from the headline! So then the product won't qualify but still says "Free Shipping." Ouch. Nothing pisses off a customer faster than saying you offer free shipping on an item and then not giving it to them. And that usually comes out of my pocket.
Enter RTML and SMART TEMPLATES! It was pretty easy to write a SMART RTML TEMPLATE called FREE SHIPPING that sniffs out the price or sale-price, and automatically adds the words "- FREE SHIPPING" to the H1 tag (headline) on any item that has a price over a certain amount. The customer RTML code also adds a little FREE SHIPPING graphic right by the ORDER button, too.
Less than one tenth of same client's products are bulky or don't ship standard UPS and for whatever reason he does NOT want to offer FREE SHIPPING on those. So now I have to figure out some way to identify those products so as to NOT trigger all the FREE SHIPPING stuff.
Instead of adding a custom field called FREE-SHIPPING Y/N or trying to deal write RTML rules to deal with every possible situation, I came up with this little hack:
First, I tweak the template. I insert a WHEN NOT @disable-free-shipping statement as the first line in my FREE SHIPPING RTML template.
Now all the client has to do is edit the item that doesn't get free shipping, create a NEW-PROPERTY called disable-free-shipping as a Y/N field, and set it to NO.
NOTE: This does NOT affect the SHIPPING RULES you set up in the Store Manager, only what shows up on the page, but creating a little exception rule is a very helpful way to fix the occasional weirdness without rewriting your entire RTML template.
-- ROB SNELL
somewhere in rural Mississippi in my new office
P.S. Happy Birthday, Nephew Luke! (and the USA, too!)