Any web developer using the ePages shopping cart software will soon realise its limitations, compared to solutions where you can edit the source code.
Never fear if there’s a niggling anomaly which you think needs changing. You can use JavaScript or CSS to respectively change the functionality and the design of your store.
For example, if you are running a Business-To-Business store, or a gift store, or anything that requires a separate delivery address, you can keep the check box to ‘Enter a Separate Delivery Address’ always ticked to leave it open.
All you need to do is copy the following lines of JavaScript into a text field in ‘Shopping Basket Settings’ in the CMS:
<script type = "text/javascript"> (function($) { $(document).ready(function() { $('#EnableShippingAddress').attr('checked', true); }); })(jQuery); </script>
And that is that! For any other check box replace the text ‘#EnableShippingAddress’ with the ‘id’ value of the checkbox, easily uncovered by using Firebug Firefox plugin or ‘Inspect Element’ in Chrome.
You can now pre-tick any checkbox in ePages. Stay tuned for more ePages manipulation and customisation tips!
Shout out to Whirlpool Forums member ‘reg’ for sharing this excellent piece of code!