Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Like to add text botton section of content area


blr044

Recommended Posts

I read on this forum some time back or maybe in the mod section.

 

Present time I have a few text lines inserted into product info script, Any ideas out there if there is a way one can add text to a page?

 

Thanks.

 

blr044

Link to comment
Share on other sites

OK now, is this text the same on all product infos or does it need to change as the products change.

 

If it is the same open your product_info ( and you did not say exactly where you wanted your code so I will guess )

 

Around line 214 between your <td> <tr>'s find this code.

 

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

and add another <td> your wording will go here and then close your wording with </td>

 

The whole code will look like this.

 

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td>Have a worderful day and then do it again tomorrow</td>

</tr>

Link to comment
Share on other sites

OK now, is this text the same on all product infos or does it need to change as the products change.

 

If it is the same open your product_info ( and you did not say exactly where you wanted your code so I will guess )

 

Around line 214 between your <td> <tr>'s find this code.

 

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

 

and add another <td> your wording will go here and then close your wording with </td>

 

The whole code will look like this.

 

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td>Have a worderful day and then do it again tomorrow</td>

</tr>

 

I did add your script, but nothing. I want the text to appear below ( customers also bought this product ). This is my code in product_info.php:

 

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_path($current_category_id = '')) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td>Have a worderful day and then do it again tomorrow</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td>

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

 

<HR width="80%" color="#044476">

<tr>

<td align="left" class="smallText"><h3>Here are a few reasons to shop here...</h3>

<ul><li><b><u>Order Confirmation:</u></b>   You will receive immediate email confirmation from us after placing your order to confirm that it was entered correctly and that we have received it.</li><br>

<li><b><u>100% Customer Satisfaction Guarantee:</u></b>   We guarantee that we will ship the correct products to you in pristine condition. If for any reason your products are damaged or lost in shipping, we will replace them immediately. Simply call or email us so that we can help you.</li><br>

<li><b><u>Track your order from our door to yours:</u></b>   With our store, you'll never wonder when your products are going to arrive. We happily send you a unique tracking number that will allow you to get an estimated delivery date, as well as see where your package is at any time.</li><br>

<li><b><u>Order Status Updates via Telephone & Email:</u></b>   If any item from your selection is out of stock, we will immediately send you an email, giving you the option of waiting or shipping immediately. Your satisfaction is our highest priority, and communicating with you is the first step toward meeting your needs.</li>

</ul>

</td></tr>

 

If one would take a look here, the text I am asking about should appear the eagle image.

 

What I want to do is something like this. Like where the text "PLEASE NOTE:" and another site shows what I am talking about -where I can add some of my reason for shopping at my site. Look at this site...

 

Thanks.

 

blr044

Link to comment
Share on other sites

First you have an error in your code

 

Remove the last { here

 

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

 

Then paste all this revised code at line 225

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_also_purchased(3600);
} else {
include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}

?>

<HR width="80%" color="#044476">
<tr>
<td align="left" class="smallText"><h3>Here are a few reasons to shop here...</h3>
<ul><li><b><u>Order Confirmation:</u></b>   You will receive immediate email confirmation from us after placing your order to confirm that it was entered correctly and that we have received it.</li><br>
<li><b><u>100% Customer Satisfaction Guarantee:</u></b>   We guarantee that we will ship the correct products to you in pristine condition. If for any reason your products are damaged or lost in shipping, we will replace them immediately. Simply call or email us so that we can help you.</li><br>
<li><b><u>Track your order from our door to yours:</u></b>   With our store, you'll never wonder when your products are going to arrive. We happily send you a unique tracking number that will allow you to get an estimated delivery date, as well as see where your package is at any time.</li><br>
<li><b><u>Order Status Updates via Telephone & Email:</u></b>   If any item from your selection is out of stock, we will immediately send you an email, giving you the option of waiting or shipping immediately. Your satisfaction is our highest priority, and communicating with you is the first step toward meeting your needs.</li>
</ul>
</td></tr>

 

You file starting at line 221 to the end of the page

 

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_also_purchased(3600);
} else {
include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}

?>

<HR width="80%" color="#044476">
<tr>
<td align="left" class="smallText"><h3>Here are a few reasons to shop here...</h3>
<ul><li><b><u>Order Confirmation:</u></b>   You will receive immediate email confirmation from us after placing your order to confirm that it was entered correctly and that we have received it.</li><br>
<li><b><u>100% Customer Satisfaction Guarantee:</u></b>   We guarantee that we will ship the correct products to you in pristine condition. If for any reason your products are damaged or lost in shipping, we will replace them immediately. Simply call or email us so that we can help you.</li><br>
<li><b><u>Track your order from our door to yours:</u></b>   With our store, you'll never wonder when your products are going to arrive. We happily send you a unique tracking number that will allow you to get an estimated delivery date, as well as see where your package is at any time.</li><br>
<li><b><u>Order Status Updates via Telephone & Email:</u></b>   If any item from your selection is out of stock, we will immediately send you an email, giving you the option of waiting or shipping immediately. Your satisfaction is our highest priority, and communicating with you is the first step toward meeting your needs.</li>
</ul>
</td></tr>	  <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td><td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td>
<?php
if ((USE_CACHE == 'true') && empty($SID)) {
  echo tep_cache_also_purchased(3600);
} else {
  include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
}
 }
?>
	</td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...