Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove "Notify me of product updates checkboxes"


kevinmiami

Recommended Posts

Posted

Does anyone know how to remove the Line:

If found the following in the checkout_sucess.php file: "Please notify me of updates to the products I have selected below:" and was able to remove it

 

BUT

 

how do u remove the actual product checkboxes that appear below that??

 

it's not in the column_left.php or column_right.php files either.

 

SOOOO FRUSTRATING!!!!!!!! HELP! hahaha

 

thanks so much for any help!

Posted

to remove "Please notify me of updates to the products I have selected below:" in checkout_sucess.php go to includes/languages/english/checkout_sucess.php and look for this line:

 

define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

and do this

//define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

Thanks for the info-

 

Like you said, I was able to remove the text "Please notify me of updates to the products I have selected below" in the "checkout_sucess.php" file,

 

however its the actual checkboxes & products that I cant get rid of!

 

any advice?

Posted
Thanks for the info-

 

Like you said, I was able to remove the text "Please notify me of updates to the products I have selected below" in the "checkout_sucess.php" file,

 

however its the actual checkboxes & products that I cant get rid of!

 

any advice?

 

 

Are you talking about the notify product box itself?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

in the catalog\checkout_success.php here is the code for the checkboxes.

<?php
 if ($global['global_product_notifications'] != '1') {
echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

$products_displayed = array();
for ($i=0, $n=sizeof($products_array); $i<$n; $i++) {
  if (!in_array($products_array[$i]['id'], $products_displayed)) {
	echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';
	$products_displayed[] = $products_array[$i]['id'];
  }
}

echo '</p>';
 } else {
echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;
 }
?>
		<h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>
	  </tr>
	</table></td>

 

if you comment it out add an extra </td> to close the table cell of the separator.

  • 7 months later...
Posted

You do this:

 

//define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

 

and get this:

 

TEXT_NOTIFY_PRODUCTS

 

**checkbox is here** product name etc

 

I went to the checkout success page line 75 to find the code as suggested in this post to alter with the extra </td>.

 

Where do you add the extra </td> to remove the text and checkbox? This is not made clear to us non-coders!

 

 

 

Thanks

Posted
You do this:

 

//define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

 

and get this:

 

TEXT_NOTIFY_PRODUCTS

 

**checkbox is here** product name etc

 

I went to the checkout success page line 75 to find the code as suggested in this post to alter with the extra </td>.

 

Where do you add the extra </td> to remove the text and checkbox? This is not made clear to us non-coders!

Thanks

 

 

You don't have to uncomment anything. Just change this:

 

if ($global['global_product_notifications'] != '1') {

 

 

 

To this:

 

if ($global['global_product_notifications'] != '0') { //changed 1 to 0 to remove products notifications options in checkout_success.php

 

 

Then if you decide you want it after all you don't have to change other files, just change the 0 back to 1.

 

I tested it and it works.

Archived

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

×
×
  • Create New...