Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Give me a suggestion please


carthrina

Recommended Posts

Posted

Hi everyone,

 

I want to put that code of scrolling text in Shopping cart for each language, just under WHAT IS IN MY CART ? heading text... just to make some advertisement of a promotion in different languages (each language ).

 

Do you have any idea how to do so ?

 

This is the code to be added.

 

<div align="center"><FONT color="#ffffff" size="+1"><MARQUEE bgcolor="#000080" direction="right" loop="20" width="75%"><STRONG>This is cool!</STRONG></MARQUEE></FONT></DIV>

 

 

 

 

Best regards,

Cathrine

Posted
Hi everyone,

 

I want to put that code of scrolling text in Shopping cart for each language, just under WHAT IS IN MY CART ? heading text... just to make some advertisement of a promotion in different languages (each language ).

 

Do you have any idea how to do so ?

 

This is the code to be added.

 

<div align="center"><FONT color="#ffffff" size="+1"><MARQUEE bgcolor="#000080" direction="right" loop="20" width="75%"><STRONG>This is cool!</STRONG></MARQUEE></FONT></DIV>

Best regards,

Cathrine

 

Hi, to do this modify the code in shopping_cart.php from:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table>

 

to:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
	  <tr>
	  	<td><?php require(DIR_WS_INCLUDES . 'scroller.html'); ?></td>
	  </tr>			
       </table>

 

Copy the HTML code for the scroller into a new HTML file called scroller.html and put it in your includes folder

 

Your result should look like this:

 

My Demo

 

If you get this much done let me know and I'll give you instructions on how to get the text to change according to language

 

Regards

Posted

waw !! Thanks Achraf it is working, but :( I think it is not a good idea to put the advertisement in the shopping cart, is it? I was thinking, maybe if i put it on a page where products are listed it would be better. for example when a costumer clicks on a category or a subcategory he will see the list of products and the advertisement as well, above the list... this way he will be attracted to add the products to his cart.

 

 

:) thank you again Ashraf..

Archived

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

×
×
  • Create New...