Hi Brekke,
Thanks for getting back to me. All of my payment modules are set to "true" including Money Order and Zen Cart Free Charge Card and Paypal IPN.
Any other ideas?
Hi Brekke,
Thanks for getting back to me. All of my payment modules are set to "true" including Money Order and Zen Cart Free Charge Card and Paypal IPN.
Any other ideas?
Can you install the debug_error_logging_utility_1-0 and install it. then post the error log.
Thanks a bunch.
I uploaded the file per your advisement. Here is the result of myDEBUG-1222383587
[25-Sep-2008 17:59:48] PHP Warning: include(includes/templates/classic/templates/tpl_checkout_split.php)
Does this help you?
Thank you again.
I'm ready to respond and we'll available for you. THANK YOU! Lynn
simply try and uppload the original file includes/templates/classic/templates/tpl_checkout_split.php just rename the one you have now to old_tpl_checkout_split.php
see if that makes any difference.
Hi Brekke,
So i've been struggling with this because what I discovered is: the Warning in the DEBUG shows this path:
includes/templates/classic/templates/tpl_checkout_split.php
However, tpl_checkout_split.php does exist in my control panel. Currently tpl_checkout_split.php only exists in this path:
includes/templates/template_default/templates/
There is no includes/templates/classic/templates/ path (the templates folder in this one doesn't exist.
Should i place the php file in includes/templates/template_default/templates/?
Thanks for your help!
easyest way is to create a new folder and make the path. then download the file tpl_checkout_split.php
and uppload it to the path it wants to be in. :)
just create the path: includes/templates/classic/templates/
and put the file in it.
![]()
sorry to be so unsure, but.... there is a templates file (which is a text file) under /classic/ which is named "templates" therefore I can't create a folder named "templates".
What should I do? Much much appreciated
This is what the "Templates" txt file reads
<table>
<tr>
<td>
<fieldset class="checkout" id="checkoutShoppingCart">
<legend><?php echo TABLE_HEADING_SHOPPING_CART; ?></legend>
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
<br class="clearBoth" />
<?php if ($flagAnyOutOfStock) { ?>
<?php if (STOCK_ALLOW_CHECKOUT == 'true') { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></div>
<?php } else { ?>
<div class="messageStackError"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></div>
<?php } //endif STOCK_ALLOW_CHECKOUT ?>
<?php } //endif flagAnyOutOfStock ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
<tr class="cartTableHeading">
<th scope="col" id="ccQuantityHeading" width="30"><?php echo TABLE_HEADING_QUANTITY; ?></th>
<th scope="col" id="ccProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<?php
// If there are tax groups, display the tax columns for price breakdown
if (sizeof($order->info['tax_groups']) > 1) {
?>
<th scope="col" id="ccTaxHeading"><?php echo HEADING_TAX; ?></th>
<?php
}
?>
<th scope="col" id="ccTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
</tr>
<?php // now loop thru all products to display quantity and price ?>
<?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { ?>
<tr class="<?php echo $order->products[$i]['rowClass']; ?>">
<td class="cartQuantity"><?php echo $order->products[$i]['qty']; ?> x</td>
<td class="cartProductDisplay" align="center"><?php echo $order->products[$i]['name']; ?>
<?php echo $stock_check[$i]; ?>
<?php // if there are attributes, loop thru them and display one per line
if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) {
echo '<ul class="cartAttribsList">';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
?>
<li><?php echo $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])); ?></li>
<?php
} // end loop
echo '</ul>';
} // endif attribute-info
?>
</td>
<?php if (sizeof($order->info['tax_groups']) > 1) { ?>
<td class="cartTotalDisplay">
<?php echo zen_display_tax_value($order->products[$i]['tax']); ?>%</td>
<?php } // endif tax info display
?>
<td class="cartTotalDisplay">
<?php echo $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
if ($order->products[$i]['onetime_charges'] != 0 ) echo '<br /> ' . $currencies->display_price($order->products[$i]['onetime_charges'], $order->products[$i]['tax'], 1);
?>
</td>
</tr>
<?php } // end for loopthru all products
?>
</table>
<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
?>
<div id="orderTotals"><?php $order_total_modules->output(); ?></div>
<?php
}
?>
</fieldset>
<!- EOF SHOPPING CART -->
</td>
</tr>
<tr>
<td>
<table>
<?php
$selection = $order_total_modules->credit_selection();
if (sizeof($selection) <= 2) {
echo '<tr>';
}
if (sizeof($selection)>0) {
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
if ($_GET['credit_class_error_code'] == $selection[$i]['id']) {
?>
<div class="messageStackError"><?php echo zen_output_string_protected($_GET['credit_class_error']); ?></div>
<?php
}
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
// no more than two fieldsets per row
?>
<?php if(!($COWOA && $selection[$i]['module']==MODULE_ORDER_TOTAL_GV_TITLE)) {?>
<?php if (sizeof($selection) > 2) {
echo '<tr>';
} ?>
<?php } ?>
<td class="checkoutDiscounts">
<?php
$continue_discount = true;
if ( ($selection[$i]['module'] == MODULE_ORDER_TOTAL_INSURANCE_TITLE) && ($order->content_type == 'virtual') ) {
$continue_discount = false;
$_SESSION['insurance'] = $_SESSION['opt_insurance'] = '0';
}
if ($continue_discount == true) {
?>
<fieldset class="checkout" id="checkoutCoupons" onChange="updateForm()">
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<table>
<tr>
<td>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
</td>
<td>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</td>
<?php if (($selection[$i]['module'] != MODULE_ORDER_TOTAL_INSURANCE_TITLE) && ($selection[$i]['module'] != MODULE_ORDER_TOTAL_SC_TITLE)) { ?>
<td>
<input type=button value="Refresh" onClick="updateForm()">
</td>
<?php } ?>
</tr>
</table>
<table>
<tr>
<td><?php echo $selection[$i]['checkbox']; ?></td>
</tr>
</table>
</fieldset>
<?php } ?>
</td>
<?php if (sizeof($selection) > 2) {
echo '</tr>';
}
}
}
}
?>
<?php
// allows side by side discount fieldsets if only two or less modules
if (sizeof($selection) <= 2) {
echo '</tr>';
}
?>
</table>
<table>
<tr>
<?php
if ($order->content_type != 'virtual') {
?>
<td class="checkoutShippingTable">
<!--BOF SHIPPING-->
<br class="clearBoth" />
<h1 id="checkoutShippingHeading"><?php echo HEADING_TITLE_SHIPPING; ?></h1>
<fieldset class="checkout" id="checkoutShippingMethods">
<legend><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></legend>
<?php echo zen_draw_form('shipping', zen_href_link(FILENAME_CHECKOUT, '', 'SSL')) ?>
<fieldset class="checkout" id="checkoutShipTo">
<legend><?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?></legend>
<?php if ($messageStack->size('checkout_shipping') > 0) echo $messageStack->output('checkout_shipping'); ?>
<div id="checkoutShipto" class="floatingBox back">
<?php if ($displayAddressEdit) { ?>
<div class="buttonRow forward"><?php echo '<a href="' . $editShippingButtonLink . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>
<?php } ?>
<address class=""><?php echo zen_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'); ?></address>
</div>
<div class="floatingBox important forward"><?php echo TEXT_CHOOSE_SHIPPING_DESTINATION; ?></div>
</fieldset>
<?php
if (zen_count_shipping_modules() > 0) {
?>
<br class="clearBoth"/>
<?php
if (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {
?>
<p id="checkoutShippingContentChoose" class="important"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></p>
<?php
} elseif ($free_shipping == false) {
?>
<p id="checkoutShippingContentChoose" class="important"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></p>
<?php
}
?>
<?php
if ($free_shipping == true) {
?>
<div id="freeShip" class="important" ><?php echo FREE_SHIPPING_TITLE; ?> <?php echo $quotes[$i]['icon']; ?></div>
<div id="defaultSelected"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . zen_draw_hidden_field('shipping', 'free_free'); ?></div>
<?php
} else {
$radio_buttons = 0;
for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
?>
<fieldset class="checkout" id="checkoutShippingSelection">
<legend><?php echo $quotes[$i]['module']; ?> <?php if (isset($quotes[$i]['icon']) && zen_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></legend>
<?php
if (isset($quotes[$i]['error'])) {
?>
<div><?php echo $quotes[$i]['error']; ?></div>
<?php
} else {
for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
$checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);
if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
//echo ' <div id="defaultSelected" class="moduleRowSelected">' . "\n";
//} else {
//echo ' <div class="moduleRow">' . "\n";
}
?>
<?php
if ( ($n > 1) || ($n2 > 1) ) {
?>
<div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></div>
<?php
} else {
?>
<div class="important forward"><?php echo $currencies->format(zen_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . zen_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></div>
<?php
}
?>
<?php echo zen_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'onClick="updateForm()", id="ship-'.$quotes[$i]['id'] . '-' . $quotes[$i]['methods'][$j]['id'].'"'); ?>
<label for="ship-<?php echo $quotes[$i]['id'] . '-' . $quotes[$i]['methods'][$j]['id']; ?>" class="checkboxLabel" ><?php echo $quotes[$i]['methods'][$j]['title']; ?></label>
<!--</div>-->
<br class="clearBoth" />
<?php
$radio_buttons++;
}
}
?>
</fieldset>
<?php
}
}
?>
<?php
} else {
?>
<h2 id="checkoutShippingHeadingMethod"><?php echo TITLE_NO_SHIPPING_AVAILABLE; ?></h2>
<div id="checkoutShippingContentChoose" class="important"><?php echo TEXT_NO_SHIPPING_AVAILABLE; ?></div>
<?php
}
?>
</fieldset>
<!--EOF SHIPPING-->
</td>
<?php
}
?>
<td class="checkoutBillingTable">
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
if (!$payment_modules->in_special_checkout()) {
// ** END PAYPAL EXPRESS CHECKOUT ** ?>
<br class="clearBoth" />
<?php if ($order->content_type != 'virtual') { ?>
<h1 id="checkoutPaymentHeading"><?php echo HEADING_TITLE_PAYMENT; ?></h1>
<?php } else { ?>
<h1 id="checkoutPaymentHeading"><?php echo HEADING_TITLE_PAYMENT_VIRTUAL; ?></h1>
<?php } ?>
<fieldset class="checkout" id="checkoutPayment">
<legend><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></legend>
<!--BILLING ADDRESS-->
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
if (!$payment_modules->in_special_checkout()) {
// ** END PAYPAL EXPRESS CHECKOUT **
?>
<fieldset class="checkout" id="checkoutBillTo">
<legend><?php echo TABLE_HEADING_BILLING_ADDRESS; ?></legend>
<div id="checkoutBillto" class="floatingBox back">
<?php if (MAX_ADDRESS_BOOK_ENTRIES >= 2) { ?>
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHANGE_ADDRESS, BUTTON_CHANGE_ADDRESS_ALT) . '</a>'; ?></div>
<?php } ?>
<address><?php echo zen_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'); ?></address>
</div>
<div class="floatingBox important forward"><?php echo TEXT_SELECTED_BILLING_DESTINATION; ?></div>
</fieldset>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
}
// ** END PAYPAL EXPRESS CHECKOUT **
?>
<?php
if (SHOW_ACCEPTED_CREDIT_CARDS != '0') {
?>
<?php
if (SHOW_ACCEPTED_CREDIT_CARDS == '1') {
echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled();
}
if (SHOW_ACCEPTED_CREDIT_CARDS == '2') {
echo TEXT_ACCEPTED_CREDIT_CARDS . zen_get_cc_enabled('IMAGE_');
}
?>
<br class="clearBoth" />
<?php } ?>
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
?>
<p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
<?php
} elseif (sizeof($selection) == 0) {
?>
<p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?></p>
<?php
}
?>
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
<?php
if (defined('(MODULE_PAYMENT_CC_STATUS') && (MODULE_PAYMENT_CC_STATUS == 'True' and $selection[$i]['id'] == 'cc')) {
?>
<div class="alert"><?php echo MODULE_PAYMENT_CC_TEXT_DESCRIPTION2; ?></div>
<?php } ?>
<?php
if (defined('MODULE_ORDER_TOTAL_COD_STATUS') && MODULE_ORDER_TOTAL_COD_STATUS == 'true' and $selection[$i]['id'] == 'cod') {
?>
<div class="alert"><?php echo TEXT_INFO_COD_FEES; ?></div><br class="clearBoth">
<?php
} else {
// echo 'WRONG ' . $selection[$i]['id'];
?>
<?php
}
?>
<br class="clearBoth" />
<?php
if (isset($selection[$i]['error'])) {
?>
<div><?php echo $selection[$i]['error']; ?></div>
<?php
} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
?>
<div class="ccinfo">
<?php
for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {
?>
<label <?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : ''); ?>class="inputLabelPayment"><?php echo $selection[$i]['fields'][$j]['title']; ?></label><?php echo $selection[$i]['fields'][$j]['field']; ?>
<br class="clearBoth" />
<?php
}
?>
</div>
<br class="clearBoth" />
<?php
}
$radio_buttons++;
?>
<br class="clearBoth" />
<?php
}
?>
<!-- EOF PAYMENT -->
<?php if (FEC_GIFT_WRAPPING_SWITCH == 'true') {
if (!file_exists(DIR_WS_MODULES . "order_total/ot_giftwrap_checkout.php")) {
echo '<font color="red"><strong>GIFTWRAP MODULE NOT INSTALLED, PLEASE DISABLE IN FEC CONFIGURATION</strong></font>';
} else {
?>
<div id="checkoutGiftWrapping">
<!-- bof Gift Wrap -->
<?php
$value = "ot_giftwrap_checkout.php";
include_once(zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] .
'/modules/order_total/', $value, 'false'));
include_once(DIR_WS_MODULES . "order_total/" . $value);
$wrap_mod = new ot_giftwrap_checkout();
$use_gift_wrap = true;
if ($wrap_mod->check()) {
?>
<br />
<fieldset class="shipping" id="gift_wrap">
<legend><?php echo GIFT_WRAP_HEADING; ?></legend>
<?php
echo '<div id="cartWrapExplain">';
echo '<a href="javascript:alert(\'' . GIFT_WRAP_EXPLAIN_DETAILS . '\')">' . GIFT_WRAP_EXPLAIN_LINK . '</a>';
echo '</div>';
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
<tr class="cartTableHeading">
<th scope="col" id="ccProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
<th scope="col" id="ccWrapHeading"><?php echo GIFT_WRAP_CHECKOFF; ?></th>
</tr>
<?php
// now loop thru all products to display quantity and price
$prod_count = 1;
// tsg_logger($order->products);
for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
for ($q = 1; $q <= $order->products[$i]['qty']; $q++) {
if ($prod_count%2 == 0) {
echo '<tr class="rowEven">';
} else {
echo '<tr class="rowOdd">';
}
echo '<td class="cartProductDisplay">' . $order->products[$i]['name'];
// if there are attributes, loop thru them and display one per line
if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) {
echo '<ul class="cartAttribsList">';
for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
echo '<li>' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br($order->products[$i]['attributes'][$j]['value']) . '</li>';
} // end loop
echo '</ul>';
} // endif attribute-info
?>
</td>
<?php
// gift wrap setting
echo '<td class="cartWrapCheckDisplay">';
$prid = $order->products[$i]['id'];
if (zen_get_products_virtual($order->products[$i]['id'])) {
echo GIFT_WRAP_NA;
} else if (DOWNLOAD_ENABLED && product_attributes_downloads_status($order->products[$i]['id'], $order->products[$i]['attributes'])) {
echo GIFT_WRAP_NA;
} else if ($wrap_mod->exclude_product($prid)) {
echo GIFT_WRAP_NA;
} else if ($wrap_mod->exclude_category($prid)) {
echo GIFT_WRAP_NA;
} else {
$gift_id = "wrap_prod_" . $prod_count;
echo zen_draw_checkbox_field($gift_id,'',false, 'id="'.$gift_id .'" onClick="updateForm()"');
}
echo "</td>";
?>
</tr>
<?php
$prod_count++;
}
} // end for loopthru all products
?>
</table>
</fieldset>
<br />
<?php
}
?>
<!-- eof Gift Wrap -->
</div>
<?php }} ?>
</fieldset>
<?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
} else {
?> <input type="hidden" name="payment" value="<?php echo $_SESSION['payment']; ?>" /> <?php
}
// ** END PAYPAL EXPRESS CHECKOUT **
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<fieldset class="checkout" id="checkoutComments">
<legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
<?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
</fieldset>
</td>
</tr>
<?php
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
?>
<tr>
<td>
<fieldset class="checkout" id="checkoutConditions">
<legend><?php echo TABLE_HEADING_CONDITIONS; ?></legend>
<div><?php echo TEXT_CONDITIONS_DESCRIPTION;?></div>
<?php echo zen_draw_checkbox_field('conditions', '1', false, 'id="conditions"');?>
<label class="checkboxLabel" for="conditions"><?php echo TEXT_CONDITIONS_CONFIRM; ?></label>
</fieldset>
</td>
</tr>
<?php
}
?>
<!-- include hidden payment attributes -->
<?php
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
</table>
Ok, so I took a chance and was nervous, but.... You were right! I got it. It seems to be working.
HUGE THANK YOU! I can't tell you enough how much I appreciate it!
Lynn
http://www.PetHerbalRemedies.com
Your welcome. :)
sorry my late reply.
hve been strugeling with my own new site.
IE and firefox was not showing the site the same way.
if you have any other problems. feel free to contact me here or atCode:[email protected]