kuai Posted June 16, 2009 Posted June 16, 2009 Hey everyone, Just did a trial purchase in the store and I'm trying to get rid of the product notification box that is on the checkout_success page. I have commented out everything associated with this. I am left with the word "Array xxxxx'' . The xxxxxxx is a number associated with the product I guess. any help would be appreciated. Thanks, Kuai
kuai Posted June 16, 2009 Author Posted June 16, 2009 Hey everyone, Just did a trial purchase in the store and I'm trying to get rid of the product notification box that is on the checkout_success page. I have commented out everything associated with this. I am left with the word "Array xxxxx'' . The xxxxxxx is a number associated with the product id I guess. any help would be appreciated. Thanks, Kuai Here is the code from the catalog\checkout_success file. you can see where I commented out a few things with no errors. In this line: $products_displayed[] = $products_array[$i]['']; I removed "id" from the last brackets which removed the number after the word Array. How can I get rid of the word "Array". <?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]['']; } } echo '</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> Kuai
kuai Posted June 16, 2009 Author Posted June 16, 2009 Here is the code from the catalog\checkout_success file. you can see where I commented out a few things with no errors. In this line: $products_displayed[] = $products_array[$i]['']; I removed "id" from the last brackets which removed the number after the word Array. How can I get rid of the word "Array". <?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]['']; } } echo '</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> Kuai just an update. I found a post from 2006 that gave this suggestion. I uncommented everything and changed the '1' to a '0' is this line: if ($global['global_product_notifications'] != '1') { and that removed everything, but also put the following lines in that space which I guess I can live with. I was just trying to clean up the page a little. "You can view your order history by going to the 'My Account' page and by clicking on 'History'. Please direct any questions you have to the store owner." Kuai
kuai Posted June 16, 2009 Author Posted June 16, 2009 just an update. I found a post from 2006 that gave this suggestion. I uncommented everything and changed the '1' to a '0' is this line: if ($global['global_product_notifications'] != '1') { and that removed everything, but also put the following lines in that space which I guess I can live with. I was just trying to clean up the page a little. "You can view your order history by going to the 'My Account' page and by clicking on 'History'. Please direct any questions you have to the store owner." Kuai One more update. working in catalog/checkout_success php file. Comment out line 106: //echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; and change the 1 to a 0 on line 93: if ($global['global_product_notifications'] != '0') { This will really clean up the checkout success page. Kuai
Recommended Posts
Archived
This topic is now archived and is closed to further replies.