Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Image Code in static page "shiping & return" etc


sepatufutsal

Recommended Posts

Hi I am curious about add image comand in shiping & returns or custome static page in my web

 

this is my code

 

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', 'Testimonial');

define('HEADING_TITLE', 'Testimonial');

define('TEXT_INFORMATION', '<UL type="disc"><center><B>CELOTEH CLIENT TENTANG PRODIRECTSOCCER INDONESIA</B></center>');

echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'up.jpg', 'osCommerce') . '</a>';

tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="single-product"')

?>

 

the result is in my attachment file.

 

all I want is the image show in the below of "CELOTEH CLIENT TENTANG PRODIRECTSOCCER INDONESIA"

so what is the corect code php one ?

 

thx for your attention :)

 

post-321649-0-97939600-1368972599_thumb.jpg

Link to comment
Share on other sites

You need to add the image within TEXT_INFORMATION

 

Now you have (leaning out the product image that is wrong)

define('TEXT_INFORMATION', '<UL type="disc"><center><B>CELOTEH CLIENT TENTANG PRODIRECTSOCCER INDONESIA</B></center>');
echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'up.jpg', 'osCommerce') . '</a>';

 

Should be

define('TEXT_INFORMATION', '
<UL type="disc"><center><B>CELOTEH CLIENT TENTANG PRODIRECTSOCCER INDONESIA</B></center>
<br />
<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'up.jpg', 'osCommerce') . '</a>
');

 

Not sure what this strange markup is, why not use proper html tags and style in css, eg a <h2>...</h2>

Link to comment
Share on other sites

great, thx for your advice, I have made it

but because of I got this code copy paste from google,

I have problem to change the paramater for the code

1. My image is in folder \images\testimonial,

2. I want to change the image widht and height in precent scale

 

so what is the correct code for php newby like me

 

this is my google code >>>

 

 

echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'up.jpg', 'osCommerce') . '</a>';

tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="single-product"')

 

 

thx

Link to comment
Share on other sites

great, thx for your advice, I have made it

but because of I got this code copy paste from google,

I have problem to change the paramater for the code

1. My image is in folder \images\testimonial,

2. I want to change the image widht and height in precent scale

 

so what is the correct code for php newby like me

Link to comment
Share on other sites

ok, I have done to change the scale

 

 

<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'up.jpg', 'osCommerce', '50%', '50%') . '</a>

 

but the problem is how to change directory of the image..

if my folder images is images/testimonial

 

i have change it DIR_WS_IMAGES_TESTIMONIAL,

but the image is still now show

 

need advise please

Link to comment
Share on other sites

@@multimixer

 

thx very much.

 

I have make it..

with ur sugestion to change the directory :

 

 

tep_image(DIR_WS_IMAGES . 'sub_folder/subsub_folder/' . 'image_name.jpg', 'image_title', 50, 50);

 

so i make it to >>

 

<a href="' . tep_href_link('images/testimonial/testimonial1.jpg') . '">' . tep_image(DIR_WS_IMAGES . 'testimonial/testimonial1.jpg', 'testimonial1', '50%', '50%') . '</a>

 

and I add new href link, so my photo will be open in new link

 

once again thx to @@DunWeb, and @@multimixer

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...