Forums / Bug Reports / [fixed v1.3.0.1] error with checkout

[fixed v1.3.0.1] error with checkout

Locked

Started by treasurs on 10 Sep 2006, 3:10 AM · Views: 1,468

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Sep 2006, 3:10 AM
#1
treasurs avatar

treasurs

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

[fixed v1.3.0.1] error with checkout

I have my first customer. She ordered one item fine the first time. Now 3 days later she is wanting to order a different item and she is getting this error message

error, unexpected T_VARIABLE in
/home/treasurs/public_html/includes/templates/template_default/sideboxes/tpl_order_history.php
on line 13

I tryed to order the same item and it went fine. I got all the way to the pay pal logon page.
Could you please help me figure out what is going on.
Thank you,
treasurs

10 Sep 2006, 3:15 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: [fixed v1.3.0.1] error with checkout

try replacing the file
includes/templates/template_default/sideboxes/tpl_order_history.php
with a new one, from a new distro, ( same version as yours )
what changes did you make th the file
and can you copy and paste the top 30 or so lines?

Zen cart PCI compliant Hosting

10 Sep 2006, 3:24 AM
#3
treasurs avatar

treasurs

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: [fixed v1.3.0.1] error with checkout

I did not make any changes to the sidebox code. I've added sideboxes, but that has been through admin.

includes/templates/template_default/sideboxes/tpl_order_history.php
with a new one, from a new distro, ( same version as yours ) How do I do this?

<?php /** * Side Box Template * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_order_history.php 2975 2006-02-05 19:33:51Z birdbrain $ */ $content = ""; $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n" $content = '<ul class="orderHistList">' . "\n" ; for ($i=1; $i<=sizeof($customer_orders); $i++) { $content .= '<li><a href="' . zen_href_link(zen_get_info_page($customer_orders[$i]['id']), 'products_id=' . $customer_orders[$i]['id']) . '">' . $customer_orders[$i]['name'] . '</a>  <a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $customer_orders[$i]['id']) . '">' . zen_image($template->get_template_dir('cart.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cart.gif', ICON_CART) . '</a></li>' . "\n" ; } $content .= '</ul>' . "\n" ; $content .= '</div>'; ?>

This is the code
Thank you for helping me. I am way over my head here.

10 Sep 2006, 3:29 AM
#4
treasurs avatar

treasurs

New Zenner

Join Date:
Apr 2006
Posts:
10
Plugin Contributions:
0

Re: [fixed v1.3.0.1] error with checkout

i am using Zen Cart 1.3.0

10 Sep 2006, 3:40 AM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: [fixed v1.3.0.1] error with checkout

try replacing it with this
Just added a semi-colon at the end of line 12

<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_order_history.php 2975 2006-02-05 19:33:51Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content = '<ul class="orderHistList">' . "\n" ;

for ($i=1; $i<=sizeof($customer_orders); $i++) {

$content .= '<li><a href="' . zen_href_link(zen_get_info_page($customer_orders[$i]['id']), 'products_id=' . $customer_orders[$i]['id']) . '">' . $customer_orders[$i]['name'] . '</a>  <a href="' . zen_href_link(basename($PHP_SELF), zen_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $customer_orders[$i]['id']) . '">' . zen_image($template->get_template_dir('cart.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cart.gif', ICON_CART) . '</a></li>' . "\n" ;
}
$content .= '</ul>' . "\n" ;
$content .= '</div>';
?>

Zen cart PCI compliant Hosting

10 Sep 2006, 3:41 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [fixed v1.3.0.1] error with checkout

You are using code with a lot of bugs ...

The current version of Zen Cart is Zen Cart v1.3.5 ...

Upgrading to this version will correct the error you have plus numberous other errors, bugs, security fixes, etc. ... :smile:

NOTE: be sure to backup both your database and site and we recommend to always do a test upgrade on a test directory with a test database and not attempt to upgrade your Live Site ...

There are several threads on how to upgrade from 1 version to another safetly ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!