Ciao a tutti ragazzi ho un problema con VM, mi compare questo errore appena accedo al sito come potete vedere al sito
www.balatoshop.altervista.org - NovitÃ
- I più votati
- Offerte
Parse error: syntax error, unexpected T_ELSE in
/membri/balatoshop/components/com_virtuemart/helpers/shopfunctionsf.php on line
296
nel file shopfunctionsf.php alla riga 296 trovo questo blocco di codice:
else {
$orderstatusForShopperEmail = VmConfig::get('email_os_s',array('U','C','S','R','X'));
if(!is_array($orderstatusForShopperEmail)) $orderstatusForShopperEmail = array($orderstatusForShopperEmail);
if ( in_array((string) $vars['orderDetails']['details']['BT']->order_status,$orderstatusForShopperEmail) ){
//START_VM_EMAILS_HERE
$user = true;
include_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_vmemails'.DS.'models'.DS.'vmemails.php';
$vmemails_args = array('recipient' => $recipient);
$vmemails_type = array();
switch ($viewName){
//order confirmation, order change status, order download ID
case 'invoice':
$vmemails_args['virtuemart_order_id'] = $vars['orderDetails']['details']['BT']->virtuemart_order_id;
$vmemails_args['order_number'] = $vars['orderDetails']['details']['BT']->order_number;
if( isset($vars['newOrderData']['order_status']) &&
isset($vars['newOrderData']['current_order_status']) &&
count( $vars['orderDetails']['history']) > 2){
//indication that this is status changed
$vmemails_type[] = array('type'=>vmemailsModelVmemails::$TYPE_ORDER_SATAUS_CHANGED);
}
else{
//new order
$vmemails_type[] = array('type'=>vmemailsModelVmemails::$TYPE_ORDER_CONFIRM);
if (isset($view->doVendor) && !$noVendorMail) {
$vmemails_type[] = array('type'=>vmemailsModelVmemails::$TYPE_ADMIN_ORDER_CONFIRM);
$vmemails_args['shopper_name'] = $vars['orderDetails']['details']['BT']->first_name.' '.$vars['orderDetails']['details']['BT']->last_name;
}
}
break;
//user registration
case 'user':
$vmemails_args['user'] = $vars['user'];
$vmemails_args['password'] = $vars['password'];
$vmemails_type[] = array('type'=>vmemailsModelVmemails::$TYPE_REGISTRATION);
break;
default:
break;
}
Come mai?