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:
- CubeCart Tax Classes on Product Page
A client of mine sells a mix of VAT and VAT exempt products via a... - CubeCart PayPal IPN Hack for multiple stores
Heres a nice little hack to alter the IPN information sent by CubeCart to Paypal... - CubeCart and Wordpress Integration
Following my 100% CubeCart orientated posts, here's another late night hack. It integrates a Wordpress... - Essential Mods for CubeCart 4
Estelle has two CubeCart modifications that I would consider essential for any serious store owner.... - CubeCart Mod – Show sub-category products on category page
This modification is for CubeCart 3. It will show all the products belong to the...
What this article useful to you?
Let me know, buy me a beer!
Alternatively, if you're feeling impecunious, you may like to subscribe to my RSS feed, or see other articles in the CubeCart, HTML, CSS, AJAX, PHP category.