Flashy CubeCart errors
Posted on October 23, 2007
Since CC4 already uses script.aculo.us for Lightbox2 (for viewing images), it is fairly easy to add effects to other areas of the site.
For example, the notice that says "Product options must be selected before this item can be added to the basket." can be tarted up very easily.
Edit yourskin/styleTemplates/viewProd.tpl
Locate <p class="txtError">{LANG_OPTS_NOTICE}</p>
and replace with
<p class="txtError" id="optsError">{LANG_OPTS_NOTICE}</p>
<script type="text/javascript" language="javascript" charset="utf-8"> // <![CDATA[ new Effect.Pulsate("optsError",{}); // ]]> </script>
Your error boxes will now have a flashy pulsate effect. You can of course have any effect in the library, see here. Easy as!
Related posts
- Idiot Proof Lightbox
I've just made some modifications to my Gallery code which is part of i9000's small... - CubeCart Tax Classes on Product Page
A client of mine sells a mix of VAT and VAT exempt products via a... - Custom Shopp Gallery with FancyBox
Following on from a previous post Custom Shopp Gallery, here is how to do make... - Protoculous – Prototype and script.aculo.us
An unknown Frenchman did a great job at combining and compressing Prototype & script.aculo.us into... - CubeCart and WordPress Integration
Following my 100% CubeCart orientated posts, here's another late night hack. It integrates a WordPress...



