test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • grigores Friend
    #148531

    Checkout

    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*/?>&lt;?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 Moderator
    #332262

    Hello 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/

    grigores Friend
    #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*/?>&lt;?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 />’;
    ?>

    ar2solutions Friend
    #334149

    I’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

    shikabwe Friend
    #338705

    grigores

    Thank you for your fix. No one seems to explain this properly. They all keep guessing. I just copy and pasted your code. Voila ! it worked.

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 4 voices, and was last updated by  shikabwe 14 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum