Jump to content
Sign in to follow this  
dabri

Problem with shipdate v0.2

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×