Ken_Shea Posted February 22, 2014 Posted February 22, 2014 Hi All, Can one of you coding familiar folks help with the necessary code in this example to add a icon.jpg following the empty! define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty!'); Thanks much Ken
Jack_mcs Posted February 23, 2014 Posted February 23, 2014 Something like this should work, though it it not the best solution. You really should use the tep_image function to do this but for a small change like this, it shouldn't matter. define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty! <img src="images/icon.png" alt='' border="0" width="XX" height="YY"> '); Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Ken_Shea Posted February 23, 2014 Author Posted February 23, 2014 Thank you Jack, your a big help, Will give it a go. Ken
♥Tsimi Posted February 23, 2014 Posted February 23, 2014 <?php echo TEXT_CART_EMPTY . ' ' . tep_image(DIR_WS_IMAGES . 'icons/xxxx.jpg'); ?> or give it a class to adjust the position. <?php echo TEXT_CART_EMPTY . '<div class="icon">' . tep_image(DIR_WS_IMAGES . 'icons/xxxx.jpg') . '</div>'; ?> .icon { display: inline-block; height: XXpx; width: XXpx; }
Ken_Shea Posted February 23, 2014 Author Posted February 23, 2014 Thanks Lambros, Will see about trying all three and see what can be learned. Jacks, looks the least confusing though. Ken
Recommended Posts
Archived
This topic is now archived and is closed to further replies.