Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Coding help needed.


Ken_Shea

Recommended Posts

Posted

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

Posted

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

Posted

<?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;

}

Posted

Thanks Lambros,

Will see about trying all three and see what can be learned.

 

Jacks, looks the least confusing though.

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...