-
AuthorPosts
-
grigores Friend
grigores
- Join date:
- February 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 2 times in 1 posts
February 9, 2010 at 12:36 pm #148531Checkout
Parse error: syntax error, unexpected T_EXIT in /home/realest4/public_html/components/com_virtuemart/themes/ja-zeolite/templates/checkout/checkout_bar.tpl.php on line 1
PLEASE !!! Can anyone explain wthat that means?
I’ve installed the quickstart temp 2 times allready. It works fine until you try to finnish the order by checking out. I’ve not modified any files , just installed and tested , and I got that error.The code in that file is :
<?phpif( !defined( ‘_VALID_MOS’ ) && !defined( ‘_JEXEC’ ) ) die( ‘Direct Access to ‘.basename(__FILE__).’ is not allowed.’ ); /**** @version $Id: checkout_bar.tpl.php 1574 2008-11-26 21:00:02Z Aravot $* @package VirtueMart* @subpackage templates* @copyright Copyright (C) 2007 Soeren Eberhardt. All rights reserved.* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php* VirtueMart is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.** http://virtuemart.net*/?><?php// CSS style for the <td> tag of the cell which is actually highlighted$highlighted_style = ‘style=”font-weight: bold;”‘;$i = 1;foreach ($steps_to_do as $step ) { if( $highlighted_step==$step[0][‘step_order’] ) { $current_step = $i; break; } $i++;}echo ‘<table style=”background: url( ”. VM_THEMEURL .’images/checkout/checkout’. $step_count.’_’.$current_step .’.png’ ) top right; background-repeat: no-repeat; height:115px;text-align:center;” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”> <tr>’;foreach ($steps_to_do as $step ) { echo ‘<td ‘.(($highlighted_step==$step[0][‘step_order’]) ? $highlighted_style : ”) .’ width=”119″ align=”center” valign=”bottom”>’; if ($highlighted_step > $step[0][‘step_order’] ) { echo ‘<a href=”‘. $sess->url(SECUREURL.”index.php?page=checkout.index&option=com_virtuemart&ship_to_info_id=$ship_to_info_id&shipping_rate_id=”.@$shipping_rate_id.”&checkout_stage=”.$step[0][‘step_order’] ).'”>’; foreach( $step as $substep ) { echo $substep[‘step_msg’].'<br />’; } echo ‘</a>’; } else { foreach( $step as $substep ) { if( $substep[‘step_order’] > $highlighted_step ) { echo $substep[‘step_msg’]; } else { echo ‘<a href=”#’.$substep[‘step_name’].'”>’.$substep[‘step_msg’].'</a>’; } echo ‘<br />’; } } echo ‘</td>’;}echo ‘ </tr></table><br />’;
What sould I do?
Thank You.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 10, 2010 at 7:42 am #332262Hello guy!
All files or some are corrupt after you uploaded the project.
You should zip your project ( or use the quick start package ) and up it to the server, and then you access the Control Panel of Host to unzip project. that’s a best.
Or you try to use other FTP Software such as http://filezilla-project.org/
1 user says Thank You to Saguaros for this useful post
grigores Friendgrigores
- Join date:
- February 2008
- Posts:
- 3
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 2 times in 1 posts
February 10, 2010 at 9:49 am #332278<?php
if( !defined( ‘_VALID_MOS’ ) && !defined( ‘_JEXEC’ ) ) die( ‘Direct Access to ‘.basename(__FILE__).’ is not allowed.’ ); /**** @version $Id: checkout_bar.tpl.php 1574 2008-11-26 21:00:02Z Aravot $* @package VirtueMart* @subpackage templates* @copyright Copyright (C) 2007 Soeren Eberhardt. All rights reserved.* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php* VirtueMart is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.** http://virtuemart.net*/?><?php// CSS style for the <td> tag of the cell which is actually highlighted$highlighted_style = ‘style=”font-weight: bold;”‘;$i = 1;foreach ($steps_to_do as $step ) { if( $highlighted_step==$step[0][‘step_order’] ) { $current_step = $i; break; } $i++;}echo ‘<table style=”background: url( ”. VM_THEMEURL .’images/checkout/checkout’. $step_count.’_’.$current_step .’.png’ ) top right; background-repeat: no-repeat; height:115px;text-align:center;” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”> <tr>’;foreach ($steps_to_do as $step ) { echo ‘<td ‘.(($highlighted_step==$step[0][‘step_order’]) ? $highlighted_style : ”) .’ width=”119″ align=”center” valign=”bottom”>’; if ($highlighted_step > $step[0][‘step_order’] ) { echo ‘<a href=”‘. $sess->url(SECUREURL.”index.php?page=checkout.index& option=com_virtuemart&ship_to_info_id=$ship_to _info_id&shipping_rate_id=”.@$shipping_rate_id .”&checkout_stage=”.$step[0][‘step_order’] ).'”>’; foreach( $step as $substep ) { echo $substep[‘step_msg’].'<br />’; } echo ‘</a>’; } else { foreach( $step as $substep ) { if( $substep[‘step_order’] > $highlighted_step ) { echo $substep[‘step_msg’]; } else { echo ‘<a href=”#’.$substep[‘step_name’].'”>’.$substep[‘step_msg’].'</a>’; } echo ‘<br />’; } } echo ‘</td>’;}echo ‘ </tr></table><br />’;
?>2 users say Thank You to grigores for this useful post
ar2solutions Friendar2solutions
- Join date:
- August 2009
- Posts:
- 74
- Downloads:
- 5
- Uploads:
- 5
- Thanks:
- 26
- Thanked:
- 5 times in 1 posts
February 28, 2010 at 8:41 pm #334149I’m having the same problem!!
Will try to upload again and see what happens.
UPDATE: That was indeed the problem! I uploaded the complete zip file then extracted using cpanel
Worked like a charm and saved over 30mins too!!
THANKS
-
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by shikabwe 14 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum