Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 Tips and Tricks - HALL OF FAME
 Changing text to graphics
Author « Topic     

Andy
ECT Moderator

95440 Posts

Posted - 09/03/2010 :  12:25:40  
You've probably seen that the store generated form buttons can be changed to images

ASP Version -> http://www.ecommercetemplates.com/help/ecommplus/parameters.asp#buttons

PHP Version -> http://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#buttons

... but you can also change text to graphics to brighten things up.

One common request is to change the details text link to a graphic. To do this add the following to vsadmin/includes.asp

xxPrDets="<img src=""images/details.gif"" border=""0"" />"

or to vsadmin/includes.php

$xxPrDets="<img src=\"/images/details.gif\" border=\"0\">";

Another tweak is to add a graphic to a text entry. We've set up one here for the email a friend link http://www.ectdemostore.com/build-your-own.asp

To get the icon there, add this to vsadmin/includes.asp

xxEmFrnd="<span style=""vertical-align:text-bottom""><img src=""/images/emailfriend.gif"" alt=""Email a Friend"" width=""16"" height=""16"" border=""0"" /></span> Email a Friend"

The vertical align there doesn't make too much difference and can be used without.

Andy

Ecommerce templates

View the latest ECT newsletter
Check out our regular templates

Follow us on Twitter and Facebook


pumbany
Ecommerce Template Expert

USA
508 Posts

Pre-sales questions only
(More Details...)

Posted - 03/12/2011 :  11:03:08  
I tried to change the "refer a friend" text wording on the product detail page to an image:

Above you wrote to use this code in the includes file:

xxEmFrnd="<span style=""vertical-align:text-bottom""><img src=""/images/emailfriend.gif"" alt=""Email a Friend"" width=""16"" height=""16"" border=""0"" /></span> Email a Friend"

But I think this is for ASP; which is why it didn't work. Do you know what this would be for PHP?

Phil
ECT Moderator

United Kingdom
7625 Posts

Posted - 03/13/2011 :  08:43:17  
That will be

$xxEmFrnd='<span style='vertical-align:text-bottom'><img src='/images/emailfriend.gif' alt='Email a Friend' width='16' height='16' border='0' /></span> Email a Friend';



* Moving Servers?
* Database Imports/Exports
* Database Conversions
* Access to MySql
* MSSQL to MySql
* ASP to PHP

Rate Our Services
View Our Feedback

Edited by - Phil on 03/13/2011 08:45:05

pumbany
Ecommerce Template Expert

USA
508 Posts

Pre-sales questions only
(More Details...)

Posted - 03/13/2011 :  22:44:08  
That line resulted in the following error message on this page: http://www.urbanmist.com/products.php?cat=64

ERROR MESSAGE:

Parse error: syntax error, unexpected T_STRING in /home/urbanmi/public_html/vsadmin/includes.php on line 51

Phil
ECT Moderator

United Kingdom
7625 Posts

Posted - 03/14/2011 :  04:01:45  
Try this but change the images sizes to the size of your image

$xxEmFrnd="<img border='0' src='images/emailfriend.gif' width='101' height='23'>";



* Moving Servers?
* Database Imports/Exports
* Database Conversions
* Access to MySql
* MSSQL to MySql
* ASP to PHP

Rate Our Services
View Our Feedback

Edited by - Phil on 03/14/2011 04:03:14
  « Topic     
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000