Yukkaa Posted May 19, 2015 Share Posted May 19, 2015 (edited) Hola amigos!! Tengo un pequeño problema con el archivo de product.tpl Resulta que estaba intentado cambiar el orden de las partes de información y todo lo que sale cuando se entra al producto para leer la descripción y todo lo demás; y al no poder hacerlo borré una parte que había copiado, ya que se me duplicaban algunas cosas. Pero no entiendo porque ahora me aparece en blanco la pantalla, cada vez que se intenta entrar a la descripción detallada de cualquier producto! Os paso mi web: www.joyeriagus.com Ahora mismo el problema no lo tengo porque sustituí el archivo por uno que tenia de copia de seguridad; pero igual me gustaria saber donde está el error en el otro, ya que tenia ordenadas las partes de una forma que me iba bien. A mi me parecía que lo había dejado todo igual, pero no sé tanto de programación como para descubrir donde está el error. Espero que alguien pueda ayudarme!!! Estoy un poco desesperada. GRACIAS!!! Pongo la parte final de el archivo product.tpl que estaba modificando por si encontráis el error: </div><!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->{if $product->description}<section class="page_product_box toggle_frame more_info_inner"> <h3 class="toggle">{l s='More info'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> {if isset($product) && $product->description} <div class="toggle_content"> {$product->description} </div> {/if}</section> {/if}{if $features}<section class="page_product_box toggle_frame datasheet"> <h3 class="toggle">{l s='Data sheet'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="toggle_content"> {if isset($features) && $features} <ul class="bullet"> {foreach from=$features item=feature} {if isset($feature.value)} <li><i class="icon-angle-right"></i> <span>{$feature.name|escape:'htmlall':'UTF-8'} - </span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} </ul> {/if} </div></section>{/if}{if $attachments}<section class="page_product_box toggle_frame attachment_product"> <h3 class="toggle">{l s='Download'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="toggle_content"> {if isset($attachments) && $attachments} <ul class="bullet"> {foreach from=$attachments item=attachment} <li> <a href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")}"> <i class="icon-angle-right"></i> {$attachment.name|escape:'htmlall':'UTF-8'} </a> {$attachment.description|escape:'htmlall':'UTF-8'} </li> {/foreach} </ul> {/if} </div></section>{/if}{if isset($accessories) AND $accessories}<section class="page_product_box toggle_frame more_info_inner4"> <h3 class="toggle">{l s='Accessories'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> {if isset($accessories) AND $accessories} <ul id="idTab4" class="toggle_content"> {foreach from=$accessories item=accessory name=accessories_list} {if ($accessory.allow_oosp || (isset($accessory.quantity_all_versions) && $accessory.quantity_all_versions > 0) || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode)} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} <li class="ajax_block_product bordercolor {if $smarty.foreach.accessories_list.first}first_item{elseif $smarty.foreach.accessories_list.last}last_item{else}item{/if} product_accessories_description"> <div class="accessories_desc bordercolor"> <a href="{$accessoryLink|escape:'htmlall':'UTF-8'}" title="{$accessory.legend|escape:'htmlall':'UTF-8'}" class="accessory_image product_img_link bordercolor"> <img src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'medium_default')}" alt="{$accessory.legend|escape:'htmlall':'UTF-8'}" /></a> <h5><a class="product_link" href="{$accessoryLink|escape:'htmlall':'UTF-8'}">{$accessory.name|truncate:22:'...':true|escape:'htmlall':'UTF-8'}</a></h5> <p class="product_descr" class="product_description">{$accessory.description_short|strip_tags|truncate:170:'...'}</p> </div> <div class="accessories_price"> {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<span class="price">{if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}</span>{/if} {if !$PS_CATALOG_MODE && ($accessory.allow_oosp || $accessory.quantity > 0)} <a class="exclusive button ajax_add_to_cart_button btn_add_cart" href="{$link->getPageLink('cart', true, NULL, "qty=1&id_product={$accessory.id_product|intval}&token={$static_token}&add")}" rel="ajax_id_product_{$accessory.id_product|intval}" title="{l s='Add to cart'}"><span>{l s='Add to cart'}</span></a> {else} <span class="exclusive">{l s='Add to cart'}</span> <span class="availability"> {if (isset($accessory.quantity_all_versions) && $accessory.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if} </span> {/if} </div> </li> {/if} {/foreach} </ul> {/if}</section>{/if}{if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if}{if isset($product) && $product->customizable}<section class="page_product_box toggle_frame"> <h3>{l s='Product customization'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="customization_block toggle_content"> <form method="post" action="{$customizationFormTarget}" enctype="multipart/form-data" id="customizationForm" class="clearfix"> <p class="infoCustomizable"> {l s='After saving your customized product, remember to add it to your cart.'} {if $product->uploadable_files}<br />{l s='Allowed file formats are: GIF, JPG, PNG'}{/if} </p> {if $product->uploadable_files|intval} <div class="customizableProductsFile titled_box clearfix"> <h2><span>{l s='Pictures'}</span></h2> <ul id="uploadable_files" > {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 0} <li class="customizationUploadLine{if $field.required} required{/if}">{assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if isset($pictures.$key)} <div class="customizationUploadBrowse"> <img src="{$pic_dir}{$pictures.$key}_small" alt="" /> <a class="btn btn-danger" href="{$link->getProductDeletePictureLink($product, $field.id_customization_field)}" title="{l s='Delete'}" ><i class="icon-trash icon-large"></i>{l s='Delete'} </a> </div> {/if} <div class="customizationUploadBrowse"> <label class="customizationUploadBrowseDescription">{if !empty($field.name)}{$field.name}{else}{l s='Please select an image file from your computer'}{/if}{if $field.required}<sup>*</sup>{/if}</label> <input type="file" name="file{$field.id_customization_field}" id="img{$customizationField}" class="customization_block_input {if isset($pictures.$key)}filled{/if}" /> </div> </li> {counter} {/if} {/foreach} </ul> </div> {/if} {if $product->text_fields|intval} <div class="customizableProductsText titled_box clearfix"> <h2><span>{l s='Text'}</span></h2> <ul id="text_fields"> {counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1} <li class="customizationUploadLine{if $field.required} required{/if}"> <label for ="textField{$customizationField}">{assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if !empty($field.name)}{$field.name}{/if}{if $field.required}<sup>*</sup>{/if}</label> <textarea type="text" name="textField{$field.id_customization_field}" id="textField{$customizationField}" rows="1" cols="40" class="customization_block_input" >{if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}</textarea> </li> {counter} {/if} <div class="clear"></div><div class="extra-box-product">{if (isset($quantity_discounts) && count($quantity_discounts) > 0)} <script type="text/javascript"> $(function() { $('#quantityDiscount table').footable(); breakpoints: { phone: 480} }); </script><section id="quantityDiscount" class="page_product_box toggle_frame"> <h3 class="toggle">{l s='Sliding scale pricing'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="toggle_content"> <table class=" std shop_table footable "> <thead> <tr> <th data-class="expand">{l s='Product'}</th> <th data-hide="phone">{l s='From (qty)'}</th> <th data-hide="phone">{l s='Discount'}</th> </tr> </thead> <tbody> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <tr id="quantityDiscount_{$quantity_discount.id_product_attribute}"> <td> {if (isset($quantity_discount.attributes) && ($quantity_discount.attributes))} {$product->getProductName($quantity_discount.id_product, $quantity_discount.id_product_attribute)} {else} {$product->getProductName($quantity_discount.id_product)} {/if} </td> <td>{$quantity_discount.quantity|intval}</td> <td> {if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} -{convertPrice price=$quantity_discount.real_value|floatval} {else} -{$quantity_discount.real_value|floatval}% {/if} </td> </tr> {/foreach} </tbody> </table> </div></section>{/if}{if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments)}{if $attachments}<section class="page_product_box toggle_frame attachment_product"> <h3 class="toggle">{l s='Download'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="toggle_content"> {if isset($attachments) && $attachments} <ul class="bullet"> {foreach from=$attachments item=attachment} <li> <a href="{$link->getPageLink('attachment', true, NULL, "id_attachment={$attachment.id_attachment}")}"> <i class="icon-angle-right"></i> {$attachment.name|escape:'htmlall':'UTF-8'} </a> {$attachment.description|escape:'htmlall':'UTF-8'} </li> {/foreach} </ul> {/if} </div></section>{/if}{if isset($accessories) AND $accessories}{/if}<section id="last_page_product" class="page_product_box toggle_frame">{$HOOK_PRODUCT_TAB} <div id="more_info_sheets" class="toggle_content toggle_content_comment"> {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} </div> </section>{/if}</div> {if isset($packItems) && $packItems|@count > 0} <section id="blockpack" class="page_product_box toggle_frame"> <h3 class="toggle">{l s='Pack content'}<i class="icon-toggle icon-minus-sign-alt"></i></h3> <div class="toggle_content"> {include file="$tpl_dir./product-list.tpl" products=$packItems} </div> </section> {/if}{/if} Edited May 20, 2015 by Yukkaa (see edit history) Link to comment Share on other sites More sharing options...
ventura Posted May 19, 2015 Share Posted May 19, 2015 (edited) Habilita el modo de visualizacion de errores /config/defines.inc.php // En este archivo define(‘_PS_MODE_DEV_’,false); // Cambia esto define(‘_PS_MODE_DEV_’,true); // Por esto Edited May 19, 2015 by ventura (see edit history) Link to comment Share on other sites More sharing options...
Yukkaa Posted May 19, 2015 Author Share Posted May 19, 2015 Ya lo he solucionado!!! He modificado otra vez el archivo que tenia de la copia de seguridad y ahora me ha funcionado bien!! gracias!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now