Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

the support text states look out fo the code surrounded by // PWA BOF and // PWA EOF.

 

so for example the first file your given in the contrib download that i'm looking at is checkout_confirmation.php

 

i've found the code surrounded by // PWA BOF and // PWA EOF.

 

Exactly what am i meant to do with it? Edit it?

 

<td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><!-- PWA BOF -->

<td class="main"><?php echo '<b>' . HEADING_DELIVERY_ADDRESS . '</b>' . (((! tep_session_is_registered('customer_is_guest')) || (defined('PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING') && PURCHASE_WITHOUT_ACCOUNT_SEPARATE_SHIPPING=='yes') )? ' <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>':''); ?></td>

</tr><!-- PWA EOF -->

<tr>

<td class="main"><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?></td>

</tr>

 

thank you

Posted
can anyone help?

You copy that information into your file at the same loaction that is indicated.

Posted

i dont understand

 

in here?

<!-- PWA BOF -->

 

do i not just overwrite the files in the contrib with the ones on my site?

Posted
do i not just overwrite the files in the contrib with the ones on my site?

You sure can do that. However, you will lose any other changes made, the files may not be compatible with your osc version.

 

What don't you understand about editing your shop files? It is just copy and paste in a text editor.

Posted

ok this code here.

 

what exactly do i do with it?

 

add it to the code that is on my site?

 

// PWA BOF

tep_session_unregister('customer_is_guest');

// PWA EOF

 

or do i just take my new logoff.php file i d/l'ed for this contrib and owerwrite the ones that are on my shop????

 

thats all i want to know...

Posted
ok this code here.

 

what exactly do i do with it?

 

add it to the code that is on my site?

 

// PWA BOF

tep_session_unregister('customer_is_guest');

// PWA EOF

 

or do i just take my new logoff.php file i d/l'ed for this contrib and owerwrite the ones that are on my shop????

 

thats all i want to know...

Add it.

Posted

  tep_session_unregister('customer_id');
 tep_session_unregister('customer_default_address_id');
 tep_session_unregister('customer_first_name');
 tep_session_unregister('customer_country_id');
 tep_session_unregister('customer_zone_id');
 tep_session_unregister('comments');
 tep_session_unregister('customer_is_guest');
 $cart->reset();

 

so my new logoff.php will look like this??? think i may have figured it out now.

 

cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...