Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'm really new at all this and trying to learn as I go, so bear with me :-D

 

I'm trying to allow my customers an option to checkout without creating an account as there's a lot of potential privacy concerns relating to my products. If there's another way to accomplish this I'm open to suggestions/ideas.

 

Any help would be appreciated.

 

I'm trying to install:

Purchase Without Account v2.1

http://addons.oscommerce.com/info/355

I grabbed the most recent autoinstaller.

 

During the install I get 1 error:

 

Cannot replace:

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

 

 

with:

<!-- PWA BOF -->

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><?php if (tep_session_is_registered('customer_id') && (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) && !$order->customer['is_dummy_account']) { ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>

<!-- PWA EOF -->

 

in the 'includes/header.php' file.

 

Clik the "Edit Manually" button to edit the file manually

 

 

 

Here's a copy pasta of my entire header.php I'm not sure where to put what.

 

<?php

/*

$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// check if the 'install' directory exists, and warn of its existence

if (WARN_INSTALL_EXISTENCE == 'true') {

if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {

$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');

}

}

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

 

// check if the session folder is writeable

if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {

if (STORE_SESSIONS == '') {

if (!is_dir(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');

} elseif (!is_writeable(tep_session_save_path())) {

$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');

}

}

}

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

?>

<center>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr align="left" valign="top">

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="62" align="left" valign="top" style="background-image:url(../images/BG300.jpg) "> </td>

</tr>

<tr>

<td height="236" style="background-image:url(../images/BG100.jpg) "> </td>

</tr>

</table></td>

<td width="766" height="295"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="62" align="left" valign="top" style="background-image:url(../images/BG300.jpg) "><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('Home.jpg') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image_button('ShoppingCart.jpg') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PROCESS) . '">' . tep_image_button('CheckOut.jpg') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . tep_image_button('myAcccount.jpg') . '</a>'; ?><?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . tep_image_button('ContactUs.jpg') . '</a>'; ?></td>

</tr>

<tr>

<td height="236" align="left" valign="top" style="background-image:url(../images/CenterFOTO.jpg) "><table width="100%" border="0" cellspacing="0" cellpadding="0">

 

<tr>

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

<tr align="left" valign="middle">

 

<td width="62" align="right"></td>

<td width="19"> </td>

<td width="172"><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><span class="header2"></span></td>

</tr>

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><span class="header2"></span></td>

<td></td>

</tr>

</table></td>

</tr>

</table></td>

<td width="298"> </td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table></td>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td height="62" align="left" valign="top" style="background-image:url(../images/BG300.jpg) "> </td>

</tr>

<tr>

<td height="236" style="background-image:url(../images/BG200.jpg) "> </td>

</tr>

</table></td>

</tr>

</table>

</center>

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