Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Things not showing up on the Order Success Page


Guest

Recommended Posts

Posted

I was modifying a line in /catalog/includes/languages/english/checkout_success.php when I noticed that what was in that file was not fully showing up on the actual Order Success Page.

 

It does not show anything after (including):

 

define('TEXT_SEE_ORDERS'...

 

It is in the file checkout_success.php, but that is it. Any ideas?

Posted

Yes, I even tried downloading the full oscommerce package to use the file from and it still comes up like that.

Posted
Yes, I even tried downloading the full oscommerce package to use the file from and it still comes up like that.

 

And the one that is in the Languages folder?

catalog / includes / languages / english / checkout_success.php

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Yep!

 

I changed the php/html a bit and got it to work. I believe the following bit is why it didn't work, but I don't know how to decipher PHP so I am not sure *why* it didn't work:

 

<?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;

}

?>

 

I was wanting the TEXT_SEE_ORDERS and TEXT_CONTACT_STORE_OWNER to show up, but it didn't when it was in that format :huh: However, I added it as <?php echo TEXT_SEE_ORDERS; ?> and <?php echo TEXT_CONTACT_STORE_OWNER; ?> and now it works.

Posted

if ($global['global_product_notifications'] != '1') appears to be taking it to if loop.

 

the code define is in else part.

 

You need to set global product notification to true.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...