toolcrazy Posted December 13, 2002 Posted December 13, 2002 I would like to omit the notification box from the product page and the checkbox from the checkout success page. I am going to sell a lot of one of a kind product and I don't think it is necessary. Or even better yet is there a way to make notification box appear on only selected product pages. For instance, my one of a kind product won?t get the notification box, but the items I have several of will get it. I know this idea will be more involved because of the admin side needed, but maybe for a later release. I am using Ian's OCS loaded v4 12/5/2002 with all updates. Thanks for the wonderful forum, Steve Steve -------------------------
Guest Posted December 14, 2002 Posted December 14, 2002 Yeah, I too would like to know the answer to this question..
toolcrazy Posted December 14, 2002 Author Posted December 14, 2002 Well, I figure it out myself, or at least the omit part. Here is what I did; Went to catalog/includes/column_right.php and comment out: /* include(DIR_WS_BOXES . 'product_notifications.php'); */ Twice, why? I don't know why they have it twice, and I stayed inside the curly brackets. I find this easier and less confusing. This gets rid of the box on the product pages. Now to get rid of the check box on the checkout success page. I went to catalog/checkout_success.php and commented out this block of code, /* 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 */ I never delete, commenting always leave me the option of adding it back in later. Notice to all: I am not a programer. I do have a basic understanding of PHP, but not good enough to write code yet. If I am wrong on these changes, please let me know. I am still learning. I am using OSCLoaded v4 12/5/02 with all patches. Steve -------------------------
Guest Posted December 17, 2002 Posted December 17, 2002 I think you might have forgotten something... in My Account (account.php) there is a button "Notifications" you'll have to comment that out also... cheers
toolcrazy Posted December 17, 2002 Author Posted December 17, 2002 Opps :shock: I missed that one. Thanks a lot!!!! :D Steve -------------------------
Recommended Posts
Archived
This topic is now archived and is closed to further replies.