Jump to content

Error in order-detail.tpl presatshop 1.6.0.6


Recommended Posts

when i click on the button details i get this error message :
 

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/www.farmacialberino.it_ng/themes/theme716/order-detail.tpl" on line 266 "<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}")}" title="{l s='Scaricare prodotto'}">" - Unexpected "get", expected one of: "}" , " " , ATTR' in /var/www/www.farmacialberino.it_ng/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /var/www/www.farmacialberino.it_ng/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /var/www/www.farmacialberino.it_ng/tools/smarty/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(19, 'get') #2 /var/www/www.farmacialberino.it_ng/tools/smarty/sysplugins/smart in /var/www/www.farmacialberino.it_ng/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 667

Can any body help , thank you .

Link to comment
Share on other sites

i searched for the missing , but i dident find it 

 

source tpl :

{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2013 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
 
<form action="{if isset($opc) && $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" class="submit">
<div class="titled_box">
<input type="hidden" value="{$order->id}" name="id_order"/>
<h2 style=" margin-bottom:15px;">
        <span>
{l s='Ordine di riferimento %s - immessi sul' sprintf=$order->getUniqReference()} {dateFormat date=$order->date_add full=0}
</span></h2>
        <input  type="submit" value="{l s='Riordina'}" name="submitReorder" class="btn btn-success" />
</div>
</form>
 
<div class="info-order">
{if $carrier->id}<p class="tit-ord"><strong>{l s='Trasportatore'}</strong> {if $carrier->name == "0"}{$shop_name|escape:'htmlall':'UTF-8'}{else}{$carrier->name|escape:'htmlall':'UTF-8'}{/if}</p>{/if}
<p class="tit-ord"><strong>{l s='Metodo di pagamento'}</strong> <span class="color-myaccount">{$order->payment|escape:'htmlall':'UTF-8'}</span></p>
{if $invoice AND $invoiceAllowed}
<p>
<a class="btn btn-success" target="_blank" href="{$link->getPageLink('pdf-invoice', true)}?id_order={$order->id|intval}{if $is_guest}&secure_key={$order->secure_key}{/if}">{l s='Scarica la fattura in formato PDF.'}</a>
</p>
{/if}
{if $order->recyclable}
<p  class="tit-ord"><img src="{$img_dir}icon/recyclable.png" alt="" class="icon" /> {l s='Hai dato il permesso di ricevere il vostro ordine in imballaggi riciclati.'}</p>
{/if}
{if $order->gift}
<p><i class="icon-gift"></i> {l s='Hai richiesto da regalo per questo ordine.'}</p>
<p>{l s='Messaggio'} {$order->gift_message|nl2br}</p>
{/if}
</div>
 
{if count($order_history)}
<div class="titled_box"> 
<h2><span>{l s='Seguite lo stato del vostro ordine  '}</span></h2>
</div>
<div class="table_block">
<table class="detail_step_by_step std">
<thead>
<tr>
<th class="first_item">{l s='Data'}</th>
<th class="last_item">{l s='Stato'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order_history item=state name="orderStates"}
<tr class="{if $smarty.foreach.orderStates.first}first_item{elseif $smarty.foreach.orderStates.last}last_item{/if} {if $smarty.foreach.orderStates.index % 2}alternate_item{else}item{/if}">
<td>{dateFormat date=$state.date_add full=1}</td>
<td>{$state.ostate_name|escape:'htmlall':'UTF-8'}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
 
{if isset($followup)}
<p class="bold">{l s='Fai clic sul seguente link per seguire la consegna del vostro ordine'}</p>
<a href="{$followup|escape:'htmlall':'UTF-8'}">{$followup|escape:'htmlall':'UTF-8'}</a>
{/if}
 
<div class="adresses_bloc clearfix">
<ul class="address item {if $order->isVirtual()}full_width{/if}">
<li class="address_title">{l s='Fatturazione'}</li>
{foreach from=$inv_adr_fields name=inv_loop item=field_item}
{if $field_item eq "company" && isset($address_invoice->company)}<li class="address_company">{$address_invoice->company|escape:'htmlall':'UTF-8'}</li>
{elseif $field_item eq "address2" && $address_invoice->address2}<li class="address_address2">{$address_invoice->address2|escape:'htmlall':'UTF-8'}</li>
{elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}<li class="address_phone_mobile">{$address_invoice->phone_mobile|escape:'htmlall':'UTF-8'}</li>
{else}
{assign var=address_words value=" "|explode:$field_item}
<li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li>
{/if}
 
{/foreach}
</ul>
<ul class="address alternate_item" {if $order->isVirtual()}style="display:none;"{/if}>
<li class="address_title">{l s='Consegna'}</li>
{foreach from=$dlv_adr_fields name=dlv_loop item=field_item}
{if $field_item eq "company" && isset($address_delivery->company)}<li class="address_company">{$address_delivery->company|escape:'htmlall':'UTF-8'}</li>
{elseif $field_item eq "address2" && $address_delivery->address2}<li class="address_address2">{$address_delivery->address2|escape:'htmlall':'UTF-8'}</li>
{elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}<li class="address_phone_mobile">{$address_delivery->phone_mobile|escape:'htmlall':'UTF-8'}</li>
{else}
{assign var=address_words value=" "|explode:$field_item} 
<li>{foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}<span class="address_{$word_item|replace:',':''}">{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'htmlall':'UTF-8'}</span>{/foreach}</li>
{/if}
{/foreach}
</ul>
</div>
{$HOOK_ORDERDETAILDISPLAYED}
{if !$is_guest}<form action="{$link->getPageLink('order-follow', true)}" method="post">{/if}
 <script type="text/javascript">
    $(function() {
      $('#order-detail-content-table').footable();
 breakpoints: {
   phone:751
 tablet:1170
}
    });
  </script>
<div id="order-detail-content" class="table_block">
<table id="order-detail-content-table" class="std shop_table footable">
<thead>
<tr>
            {if $return_allowed}<th data-hide="phone,tablet"  class="first_item "><input type="checkbox" /></th>{/if}
                <th data-hide="phone,tablet" class="{if $return_allowed}item{else}first_item{/if}">{l s='Reference'}</th>
            <th  data-class="expand" class="item">{l s='Prodotto'}</th>
<th data-hide="phone,tablet" class="item">{l s='Quantità'}</th>
{if $order->hasProductReturned()}
<th data-hide="phone,tablet" class="item">{l s='Restituito'}</th>
{/if}
<th data-hide="phone,tablet" class="item">{l s='Prezzo unitario'}</th>
<th data-hide="phone,tablet" class="last_item">{l s='Prezzo totale'}</th>
</tr>
</thead>
<tfoot>
{if $priceDisplay && $use_tax}
<tr class="item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Totale prodotti (tasse excl.)'} </strong><span class="price">{displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency}</span>
</td>
</tr>
{/if}
<tr class="item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Totale prodotti '} {if $use_tax}{l s='(tasse incl.)'}{/if}: </strong> <span class="price">{displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency}</span>
</td>
</tr>
{if $order->total_discounts > 0}
<tr class="item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Totale buoni:'} </strong> <span class="price-discount">{displayWtPriceWithCurrency price=$order->total_discounts currency=$currency convert=1}</span>
</td>
</tr>
{/if}
{if $order->total_wrapping > 0}
<tr class="item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Costo totale confezioni regalo:'} </strong> <span class="price-wrapping">{displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency}</span>
</td>
</tr>
{/if}
<tr class="item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Trasporto totale'} {if $use_tax}{l s='(tasse incl.)'}{/if}: </strong> <span class="price">{displayWtPriceWithCurrency price=$order->total_shipping currency=$currency}</span>
</td>
</tr>
<tr class="totalprice item">
<td  colspan="{if $return_allowed || $order->hasProductReturned()}{if $order->hasProductReturned() && $return_allowed}7{else}6{/if}{else}5{/if}">
<strong>{l s='Totale'}</strong> <span class="price">{displayWtPriceWithCurrency price=$order->total_paid currency=$currency}</span>
</td>
</tr>
</tfoot>
<tbody>
{foreach from=$products item=product name=products}
{if !isset($product.deleted)}
{assign var='productId' value=$product.product_id}
{assign var='productAttributeId' value=$product.product_attribute_id}
{if isset($product.customizedDatas)}
{assign var='productQuantity' value=$product.product_quantity-$product.customizationQuantityTotal}
{else}
{assign var='productQuantity' value=$product.product_quantity}
{/if}
<!-- Customized products -->
{if isset($product.customizedDatas)}
<tr class="item">
{if $return_allowed}<td class="order_cb"></td>{/if}
<td><label for="cb_{$product.id_order_detail|intval}">{if $product.product_reference}{$product.product_reference|escape:'htmlall':'UTF-8'}{else}--{/if}</label></td>
<td class="bold">
<label for="cb_{$product.id_order_detail|intval}">{$product.product_name|escape:'htmlall':'UTF-8'}</label>
</td>
<td><input class="order_qte_input"  name="order_qte_input[{$smarty.foreach.products.index}]" type="text" size="2" value="{$product.customizationQuantityTotal|intval}" /><label for="cb_{$product.id_order_detail|intval}"><span class="order_qte_span editable">{$product.customizationQuantityTotal|intval}</span></label></td>
{if $order->hasProductReturned()}
<td>
{$product['qty_returned']}
</td>
{/if}
<td>
<label for="cb_{$product.id_order_detail|intval}">
{if $group_use_tax}
{convertPriceWithCurrency price=$product.unit_price_tax_incl currency=$currency}
{else}
{convertPriceWithCurrency price=$product.unit_price_tax_excl currency=$currency}
{/if}
</label>
</td>
<td>
<label for="cb_{$product.id_order_detail|intval}">
{if isset($customizedDatas.$productId.$productAttributeId)}
{if $group_use_tax}
{convertPriceWithCurrency price=$product.total_customization_wt currency=$currency}
{else}
{convertPriceWithCurrency price=$product.total_customization currency=$currency}
{/if}
{else}
{if $group_use_tax}
{convertPriceWithCurrency price=$product.total_price_tax_incl currency=$currency}
{else}
{convertPriceWithCurrency price=$product.total_price_tax_excl currency=$currency}
{/if}
{/if}
</label>
</td>
</tr>
{foreach $product.customizedDatas  as $customizationPerAddress}
{foreach $customizationPerAddress as $customizationId => $customization}
<tr class="alternate_item">
{if $return_allowed}<td class="order_cb"><input type="checkbox" id="cb_{$product.id_order_detail|intval}" name="customization_ids[{$product.id_order_detail|intval}][]" value="{$customizationId|intval}" /></td>{/if}
<td colspan="2">
{foreach from=$customization.datas key='type' item='datas'}
{if $type == $CUSTOMIZE_FILE}
<ul class="customizationUploaded">
{foreach from=$datas item='data'}
<li><img src="{$pic_dir}{$data.value}_small" alt="" class="customizationUploaded" /></li>
{/foreach}
</ul>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">{counter start=0 print=false}
{foreach from=$datas item='data'}
{assign var='customizationFieldName' value="Text #"|cat:$data.id_customization_field}
<li>{$data.name|default:$customizationFieldName} : {$data.value}</li>
{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td>
<input class="order_qte_input" name="customization_qty_input[{$customizationId|intval}]" type="text" size="2" value="{$customization.quantity|intval}" /><label for="cb_{$product.id_order_detail|intval}"><span class="order_qte_span editable">{$customization.quantity|intval}</span></label>
</td>
<td colspan="2"></td>
</tr>
{/foreach}
{/foreach}
{/if}
<!-- Classic products -->
{if $product.product_quantity > $product.customizationQuantityTotal}
<tr class="item">
{if $return_allowed}<td class="order_cb"><input type="checkbox" id="cb_{$product.id_order_detail|intval}" name="ids_order_detail[{$product.id_order_detail|intval}]" value="{$product.id_order_detail|intval}" /></td>{/if}
<td><label for="cb_{$product.id_order_detail|intval}">{if $product.product_reference}{$product.product_reference|escape:'htmlall':'UTF-8'}{else}--{/if}</label></td>
<td class="bold">
<label for="cb_{$product.id_order_detail|intval}">
{if $product.download_hash && $invoice && $product.display_filename != '' && $product.product_quantity_refunded == 0 && $product.product_quantity_return == 0}
{if isset($is_guest) && $is_guest}
<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}&id_order={$order->id}&secure_key={$order->secure_key}")}" title="{l s='Scarica prodotto}">
{else}
<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}")}" title="{l s='Scarica prodotto'}">
{/if}
<img src="{$img_dir}icon/download_product.gif" class="icon" alt="{l s='Scarica prodotto'}" />
</a>
{if isset($is_guest) && $is_guest}
<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}&id_order={$order->id}&secure_key={$order->secure_key}")}" title="{l s='Scarica prodotto'}"> {$product.product_name|escape:'htmlall':'UTF-8'} </a>
{else}
<a href="{$link->getPageLink('get-file', true, NULL, "key={$product.filename|escape:'htmlall':'UTF-8'}-{$product.download_hash|escape:'htmlall':'UTF-8'}")}" title="{l s='Scarica prodotto'}"> {$product.product_name|escape:'htmlall':'UTF-8'} </a>
{/if}
{else}
{$product.product_name|escape:'htmlall':'UTF-8'}
{/if}
</label>
</td>
<td><input class="order_qte_input" name="order_qte_input[{$product.id_order_detail|intval}]" type="text" size="2" value="{$productQuantity|intval}" /><label for="cb_{$product.id_order_detail|intval}"><span class="order_qte_span editable">{$productQuantity|intval}</span></label></td>
{if $order->hasProductReturned()}
<td>
{$product['qty_returned']}
</td>
{/if}
<td>
<label for="cb_{$product.id_order_detail|intval}">
{if $group_use_tax}
{convertPriceWithCurrency price=$product.unit_price_tax_incl currency=$currency}
{else}
{convertPriceWithCurrency price=$product.unit_price_tax_excl currency=$currency}
{/if}
</label>
</td>
<td>
<label for="cb_{$product.id_order_detail|intval}">
{if $group_use_tax}
{convertPriceWithCurrency price=$product.total_price_tax_incl currency=$currency}
{else}
{convertPriceWithCurrency price=$product.total_price_tax_excl currency=$currency}
{/if}
</label>
</td>
</tr>
{/if}
{/if}
{/foreach}
{foreach from=$discounts item=discount}
<tr class="item">
<td>{$discount.name|escape:'htmlall':'UTF-8'}</td>
<td>{l s='Buono'} {$discount.name|escape:'htmlall':'UTF-8'}</td>
<td><span class="order_qte_span editable">1</span></td>
<td> </td>
<td>{if $discount.value != 0.00}-{/if}{convertPriceWithCurrency price=$discount.value currency=$currency}</td>
{if $return_allowed}
<td> </td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="table_block">
 <script type="text/javascript">
    $(function() {
      $('#shipping-table').footable();
 breakpoints: {
   phone:851
 tablet:1170
}
    });
  </script>
{if $order->getShipping()|count > 0}
<table id="shipping-table" class="std shop_table footable">
<thead>
<tr>
<th data-class="expand"  class="first_item">{l s='Data'}</th>
<th data-hide="phone,tablet" class="item">{l s='Vettore'}</th>
<th data-hide="phone,tablet" class="item">{l s='Peso'}</th>
<th data-hide="phone,tablet" class="item">{l s='Spese di Spedizione'}</th>
<th data-hide="phone,tablet" class="last_item">{l s='Il numero di inseguimento'}</th>
</tr>
</thead>
<tbody>
{foreach from=$order->getShipping() item=line}
<tr class="item">
<td>{$line.date_add}</td>
<td>{$line.carrier_name}</td>
<td>{if $line.weight > 0}{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}{else}-{/if}</td>
<td>{if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}{else}{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}{/if}</td>
<td>
<span id="shipping_number_show">{if $line.tracking_number}{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}{else}-{/if}</span>
</td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
{if !$is_guest}
{if $return_allowed}
<div id="returnOrderMessage" class="titled_box">
<h2><span>{l s='Ritorno Merchandise'}</span></h2>
<p>{l s='Se si desidera restituire uno o più prodotti, si prega di contrassegnare le caselle corrispondenti e di fornire una spiegazione per il ritorno. Quindi fare clic sul pulsante qui sotto.'}</p>
<p class="textarea">
<textarea cols="67" rows="3" name="returnText"></textarea>
</p>
<p class="submit">
<input type="submit" value="{l s='Effettuare una polizza RMA'}" name="submitReturnMerchandise" class="button_large" />
<input type="hidden" class="hidden" value="{$order->id|intval}" name="id_order" />
</p>
</div>
{/if}
</form>
 
{if count($messages)}
<h3>{l s='Messaggi'}</h3>
<div class="table_block">
    
<table class="detail_step_by_step std">
<thead>
<tr>
<th class="first_item" style="width:150px;">{l s='From'}</th>
<th class="last_item">{l s='Messaggio'}</th>
</tr>
</thead>
<tbody>
{foreach from=$messages item=message name="messageList"}
<tr class="{if $smarty.foreach.messageList.first}first_item{elseif $smarty.foreach.messageList.last}last_item{/if} {if $smarty.foreach.messageList.index % 2}alternate_item{else}item{/if}">
<td>
{if isset($message.elastname) && $message.elastname}
{$message.efirstname|escape:'htmlall':'UTF-8'} {$message.elastname|escape:'htmlall':'UTF-8'}
{elseif $message.clastname}
{$message.cfirstname|escape:'htmlall':'UTF-8'} {$message.clastname|escape:'htmlall':'UTF-8'}
{else}
<b>{$shop_name|escape:'htmlall':'UTF-8'}</b>
{/if}
<br />
{dateFormat date=$message.date_add full=1}
</td>
<td>{$message.message|escape:'htmlall':'UTF-8'|nl2br}</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{if isset($errors) && $errors}
<div class="error">
<p>{if $errors|@count > 1}{l s='Ci sono %d errori' sprintf=$errors|@count}{else}{l s='C\'è %d errore' sprintf=$errors|@count}{/if}</p>
<ol>
{foreach from=$errors key=k item=error}
<li>{$error}</li>
{/foreach}
</ol>
</div>
{/if}
<form action="{$link->getPageLink('order-detail', true)}" method="post" class="std titled_box" id="sendOrderMessage">
<h2><span>{l s='Aggiungere un messaggio'}</span></h2>
<p>{l s='Se volete aggiungere un commento sul tuo ordine, si prega di scrivere nel campo sottostante.'}</p>
<p>
<label for="id_product">{l s='Prodotto'}</label>
<select name="id_product" >
<option value="0">{l s='-- scegli --'}</option>
{foreach from=$products item=product name=products}
<option value="{$product.product_id}">{$product.product_name}</option>
{/foreach}
</select>
</p>
<p class="textarea">
<textarea cols="67" rows="3" name="msgText"></textarea>
</p>
<p class="submit">
<input type="hidden" name="id_order" value="{$order->id|intval}" />
<input type="submit" class="btn btn-inverse" name="submitMessage" value="{l s='invia'}"/>
</p>
</form>
{else}
<p><img src="{$img_dir}icon/infos.png" alt="" class="icon" /> {l s='Non è possibile restituire la merce con un account ospite'}</p>
{/if}
Link to comment
Share on other sites

Hm, can you show us what you added? and how the string looks now? Pretty weird

Thank you for you request , i change only  title="{l s='Scarica prodotto}"> to  title="{l s='Scarica prodotto'}">

now when i click on button details . to see detail of un order i get whit page .

post-777949-0-99840300-1399888097_thumb.png

Link to comment
Share on other sites

really strange , can yo see the order details undet the table of history orders ??

 

Yeah, I see it now, when I click on Detagli a white blank page comes up,

<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: 190px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>

That's all that is in it. You need to turn on errors in prestashop\config\defines.inc.php

 

Line 28 set this to true,

define('_PS_MODE_DEV_', false);

Link to comment
Share on other sites

Yeah, I see it now, when I click on Detagli a white blank page comes up,

<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: 190px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>

That's all that is in it. You need to turn on errors in prestashop\config\defines.inc.php

 

Line 28 set this to true,

define('_PS_MODE_DEV_', false);

Hi

it already set to true .

 

Link to comment
Share on other sites

Ok if you look in your source code I see the link for "Detagli" is,
http://ovh.italiaonsite.com/www.farmacialberino.it_ng/index.php?controller=order-detail

 

That link gives this error,

Notice: Undefined index: order in /var/www/www.farmacialberino.it_ng/cache/smarty/compile/96/7c/7e/967c7ea2fd99d55441e89ea69ce0634338930fe0.file.order-detail.tpl.php on line 87 Notice: Trying to get property of non-object in /var/www/www.farmacialberino.it_ng/cache/smarty/compile/96/7c/7e/967c7ea2fd99d55441e89ea69ce0634338930fe0.file.order-detail.tpl.php on line 87 Fatal error: Call to a member function getUniqReference() on a non-object in /var/www/www.farmacialberino.it_ng/cache/smarty/compile/96/7c/7e/967c7ea2fd99d55441e89ea69ce0634338930fe0.file.order-detail.tpl.php on line 87 

This usually means you have a bad cache file, you need to manually delete everything in,

prestashop\cache\smarty\compile

 

and also,

 

\prestashop\cache\smarty\cache

 

You may also need to turn error reporting to false after you clear the cache.

Edited by Bill Dalton (see edit history)
Link to comment
Share on other sites

history.js you can find in themes/theme716/js/history.js replace that with the version I attached (unzip before)

 

Also try to replace the order-detail.tpl as Bill Dalton advised you

 

In your theme, rename your order-detail.tpl to order-detail-old.tpl

 

Then try this copy (see attached zip) of order-detail.tpl

Thank you for your suport .

I did replace the hisoty.js and order-details but still the same problem .

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...

Hi,

 

I'm the developper of the PrestaForumGP module.

 

This issue does not appear in my local PrestaShop 1.6.0.9 with the PrestaForumGP 4.02 .

 

Try to activate the debug mode with the dev_mode = true in the ./config/defines.inc.php file.

Disable all cache process from PrestaShop configuration and web hoster configuration.

 

Reload your page.

 

Have you test with the default PrestaShop theme ?

 

The order-detail is animated with a javascript link : javascript:showOrder(1,%201,%20'http://www.domaine.tld/fr/index.php?controller=order-detail');

 

Precisions : the module prestaforumgp doesn't add anything in the history / oreder-detail process page. Just the current hook in the header or top. Nothing else.

 

Regards

Link to comment
Share on other sites

Hi,

 

I'm the developper of the PrestaForumGP module.

 

This issue does not appear in my local PrestaShop 1.6.0.9 with the PrestaForumGP 4.02 .

 

Try to activate the debug mode with the dev_mode = true in the ./config/defines.inc.php file.

Disable all cache process from PrestaShop configuration and web hoster configuration.

 

Reload your page.

 

Have you test with the default PrestaShop theme ?

 

The order-detail is animated with a javascript link : javascript:showOrder(1,%201,%20'http://www.domaine.tld/fr/index.php?controller=order-detail');

 

Precisions : the module prestaforumgp doesn't add anything in the history / oreder-detail process page. Just the current hook in the header or top. Nothing else.

 

Regards

not working. :(

Link to comment
Share on other sites

Ok,

 

I've got a fix for this issue.

The problem come from compatibility to an oldest Javascript from the module and an Javascript not fix from PrestaShop 1.6.0.5.

 

My javascript is deprecated, so i've delete this directly in the module script.

 

So I update a new 4.0.3 version of PrestaForumGP.

 

If you want to make fix now for PS 1.6.0.5 installation, contact me directly. Also the fix is unnecessary for PS 1.6.0.9 .

 

Regards

Edited by DevNet (see edit history)
  • Like 1
Link to comment
Share on other sites

Ok,

 

I've got a fix for this issue.

The problem become from compatibility to an oldest Javascript from the module and an Javascript not fix from PrestaShop 1.6.0.5.

 

My javascript is deprecated, so i've delete this directly in the module script.

 

So I update a new 4.0.3 version of PrestaForumGP.

 

If you want to make fix now for PS 1.6.0.5 installation, contact me directly. Also the fix is unnecessary for PS 1.6.0.9 .

 

Regards

 

100% Works!

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...