Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with shipdate v0.2


dabri

Recommended Posts

Hi,

 

I?ve osC 2.2 MS2 Shop with SEC 2.2 installed on my webspace.

 

Now I?ve installed the Shipdate v2.0 contribution:

 

http://www.oscommerce.com/community/contributions,1393

 

Everything is work fine, but on the checkout_confirmation.php, I have the following strange behavior:

 

shop.gif

 

Made the following changes:

 

// if no shipping method has been selected or no shipdate, redirect the customer to the shipping method selection page

  if (!tep_session_is_registered('shipping') || !tep_session_is_registered('shipdate')) {

 

and after this Code:

 

                <td class="main"><?php echo $order->info['shipping_method']; ?></td> 
             </tr> 
<?php 
   }

 

I add the following Code:

 

 if (isset($order->delivery['shipdate'])) { 
?> 
             <tr> 
               <td class="main"><?php echo '<b>' . HEADING_ARRIVAL_DATE . '</b> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td> 
             </tr> 
             <tr> 
               <td class="main"><?php echo date('F j, Y',$order->delivery['shipdate']); ?></td> 
             </tr> 
<?php 
   }else{print_r($order->delivery);} 
?>

 

Can somebody tell me, how can I remove these array, which you can see in the image.

 

Thanks

 

Regards Daniel

Link to comment
Share on other sites

  • 1 month later...

I don't know if this is still a problem for you but I had the same problem.

 

I remedied the situation by deleting "print_r".

 

from this:

 

<?php

}else{print_r($order->delivery);}

?>

 

to this:

 

<?php

}else{($order->delivery);}

?>

 

PJRanger

Edited by PJRanger
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...