Jump to content

dsanguesalaparra

Members
  • Posts

    4
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    españa
  • Activity
    Other

dsanguesalaparra's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. He encontrado un problema con Prestashop 1.5.3, se solapan las tablas, en Clientes-Atención Al Cliente-Vista he estado buscando el problema y he tenido que modifical el archivo mitienda\admin\themes\default\template\controllers\customer_threads\helpers\view\ view.tpl para poder corregirlo. este es el codigo original: {* * 2007-2012 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: * http://opensource.org/licenses/afl-3.0.php * 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-2012 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"} <form action="{$current}&token={$token}&viewcustomer_thread&id_customer_thread={$id_customer_thread}" method="post" enctype="multipart/form-data"> <fieldset> <div id="ChangeStatus"> <select onchange="quickSelect(this);"> <option value="0">{l s='Change status of message:'}</option> {foreach $actions as $action} <option value="{$action.href}">> {$action.name}</option> {/foreach} </select> </div> <p> <img src="../img/admin/email_go.png" alt="" style="vertical-align: middle;" /> {l s='Forward this discussion to an employee:'} <select name="id_employee_forward" style="vertical-align: middle;"> <option value="-1">{l s='-- Choose --'}</option> {foreach $employees as $employee} <option value="{$employee.id_employee}"> {Tools::substr($employee.firstname, 0, 1)}. {$employee.lastname}</option> {/foreach} <option value="0">{l s='Someone else'}</option> </select> </p> <div id="message_forward_email" style="display:none"> <b>{l s='E-mail'}</b> <input type="text" name="email" /> </div> <div id="message_forward" style="display:none;margin-bottom:10px"> <textarea name="message_forward" style="width:500px;height:80px;margin-top:15px;">{l s='You can add a comment here.'}</textarea><br /> <input type="Submit" name="submitForward" class="button" value="{l s='Forward this discussion'}" style="margin-top: 10px;" /> </div> </fieldset> </form> <div class="clear"> </div> {if $thread->id_customer} <div style="float:right;margin-left:20px;"> {if $orders && count($orders)} {if $count_ok} <div> <h2>{l s='Orders'}</h2> <table cellspacing="0" cellpadding="0" class="table float"> <tr> <th class="center">{l s='ID'}</th> <th class="center">{l s='Date'}</th> <th class="center">{l s='Products'}</th> <th class="center">{l s='Total paid'}</th> <th class="center">{l s='Payment'}</th> <th class="center">{l s='State'}</th> <th class="center">{l s='Actions'}</th> </tr> {assign var=irow value=0} {foreach $orders_ok as $order} <tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer" onclick="document.location='?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <td class="center">{$order.id_order}</td> <td>{$order.date_add}</td> <td align="right">{$order.nb_products}</td> <td align="right">{$order.total_paid_real}</td> <td>{$order.payment}</td> <td>{$order.order_state}</td> <td align="center"> <a href="?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <img src="../img/admin/details.gif" /> </a> </td> </tr> {/foreach} </table> <h3 style="color:green;font-weight:700;margin-top:10px"> {l s='Validated Orders:'} {$count_ok} {l s='for'} {$total_ok} </h3> </div> {/if} {/if} {if $products && count($products)} <div> <h2>{l s='Products'}</h2> <table cellspacing="0" cellpadding="0" class="table"> <tr> <th class="center">{l s='Date'}</th> <th class="center">{l s='ID'}</th> <th class="center">{l s='Name'}</th> <th class="center">{l s='Quantity'}</th> <th class="center">{l s='Actions'}</th> </tr> {assign var=irow value=0} {foreach $products as $product} <tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer" onclick="document.location = '?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}'"> <td>{$product.date_add}</td> <td>{$product.product_id}</td> <td>{$product.product_name}</td> <td align="right">{$product.product_quantity}</td> <td align="center"> <a href="?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <img src="../img/admin/details.gif" /> </a> </td> </tr> {/foreach} </table> </div> {/if} </div> {/if} <div style="margin-top:10px"> {foreach $messages as $message} {$message} {/foreach} </div> <script type="text/javascript"> var timer; $(document).ready(function(){ $('select[name=id_employee_forward]').change(function(){ if ($(this).val() >= 0) $('#message_forward').show(400); else $('#message_forward').hide(200); if ($(this).val() == 0) $('#message_forward_email').show(200); else $('#message_forward_email').hide(200); }); $('teaxtrea[name=message_forward]').click(function(){ if($(this).val() == '{l s='You can add a comment here.'}') { $(this).val(''); } }); timer = setInterval("markAsRead()", 3000); }); function markAsRead() { $.ajax({ type: 'POST', url: 'ajax-tab.php', async: true, dataType: 'json', data: { controller: 'AdminCustomerThreads', action: 'markAsRead', token : '{$token}', id_thread: {$id_customer_thread} } }); clearInterval(timer); timer = null; } </script> {/block} y lo he cambiado por este: {* * 2007-2012 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: * http://opensource.org/licenses/afl-3.0.php * 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-2012 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"} <form action="{$current}&token={$token}&viewcustomer_thread&id_customer_thread={$id_customer_thread}" method="post" enctype="multipart/form-data"> <fieldset> <div id="ChangeStatus"> <select onchange="quickSelect(this);"> <option value="0">{l s='Change status of message:'}</option> {foreach $actions as $action} <option value="{$action.href}">> {$action.name}</option> {/foreach} </select> </div> <p> <img src="../img/admin/email_go.png" alt="" style="vertical-align: middle;" /> {l s='Forward this discussion to an employee:'} <select name="id_employee_forward" style="vertical-align: middle;"> <option value="-1">{l s='-- Choose --'}</option> {foreach $employees as $employee} <option value="{$employee.id_employee}"> {Tools::substr($employee.firstname, 0, 1)}. {$employee.lastname}</option> {/foreach} <option value="0">{l s='Someone else'}</option> </select> </p> <div id="message_forward_email" style="display:none"> <b>{l s='E-mail'}</b> <input type="text" name="email" /> </div> <div id="message_forward" style="display:none;margin-bottom:10px"> <textarea name="message_forward" style="width:500px;height:80px;margin-top:15px;">{l s='You can add a comment here.'}</textarea><br /> <input type="Submit" name="submitForward" class="button" value="{l s='Forward this discussion'}" style="margin-top: 10px;" /> </div> </fieldset> </form> <div style="margin-top:10px"> {foreach $messages as $message} {$message} {/foreach} </div> <p> </p> <div class="clear"> </div> {if $thread->id_customer} <div style="float:right;margin-left:20px;"> {if $orders && count($orders)} {if $count_ok} <div> <h2>{l s='Orders'}</h2> <table cellspacing="0" cellpadding="0" class="table float"> <tr> <th class="center">{l s='ID'}</th> <th class="center">{l s='Date'}</th> <th class="center">{l s='Products'}</th> <th class="center">{l s='Total paid'}</th> <th class="center">{l s='Payment'}</th> <th class="center">{l s='State'}</th> <th class="center">{l s='Actions'}</th> </tr> {assign var=irow value=0} {foreach $orders_ok as $order} <tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer" onclick="document.location='?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <td class="center">{$order.id_order}</td> <td>{$order.date_add}</td> <td align="right">{$order.nb_products}</td> <td align="right">{$order.total_paid_real}</td> <td>{$order.payment}</td> <td>{$order.order_state}</td> <td align="center"> <a href="?tab=AdminOrders&id_order={$order.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <img src="../img/admin/details.gif" /> </a> </td> </tr> {/foreach} </table> <h3 style="color:green;font-weight:700;margin-top:10px"> </h3> <h3 style="color:green;font-weight:700;margin-top:10px"> </h3> <p style="color:green;font-weight:700;margin-top:10px"> </p> <h3 style="color:green;font-weight:700;margin-top:10px">{l s='Validated Orders:'} {$count_ok} {l s='for'} {$total_ok} </h3> </div> <p>{/if} {/if} {if $products && count($products)} </p> <p> </p> <div> <h2>{l s='Products'}</h2> <table cellspacing="0" cellpadding="0" class="table"> <tr> <th class="center">{l s='Date'}</th> <th class="center">{l s='ID'}</th> <th class="center">{l s='Name'}</th> <th class="center">{l s='Quantity'}</th> <th class="center">{l s='Actions'}</th> </tr> {assign var=irow value=0} {foreach $products as $product} <tr {if $irow++ % 2}class="alt_row"{/if} style="cursor: pointer" onclick="document.location = '?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}'"> <td>{$product.date_add}</td> <td>{$product.product_id}</td> <td>{$product.product_name}</td> <td align="right">{$product.product_quantity}</td> <td align="center"> <a href="?tab=AdminOrders&id_order={$product.id_order}&vieworder&token={getAdminToken tab='AdminOrders'}"> <img src="../img/admin/details.gif" /> </a> </td> </tr> {/foreach} </table> </div> {/if} </div> {/if} <script type="text/javascript"> var timer; $(document).ready(function(){ $('select[name=id_employee_forward]').change(function(){ if ($(this).val() >= 0) $('#message_forward').show(400); else $('#message_forward').hide(200); if ($(this).val() == 0) $('#message_forward_email').show(200); else $('#message_forward_email').hide(200); }); $('teaxtrea[name=message_forward]').click(function(){ if($(this).val() == '{l s='You can add a comment here.'}') { $(this).val(''); } }); timer = setInterval("markAsRead()", 3000); }); function markAsRead() { $.ajax({ type: 'POST', url: 'ajax-tab.php', async: true, dataType: 'json', data: { controller: 'AdminCustomerThreads', action: 'markAsRead', token : '{$token}', id_thread: {$id_customer_thread} } }); clearInterval(timer); timer = null; } </script> {/block} Acordaros de hacer una copia de seguridad del archivo. Clientes Atención al cliente Vista-antes.bmp Clientes Atención al cliente Vista-despues.bmp
  2. paso uno crear Atributo: Impresión paso dos crear dos valores para ese atributo uno de ellos es NO y el otro SI paso tres ir al producto darle el precio y luego ir a la pestaña de combinaciones y desde hay generar la combinación NO sin incremento de precio y SI con el incremento que hayas pensado para la impresión. Aquí tines una guia de Víctor Ródenas para crear combinaciones. Espero que te sirva. http://victor-rodenas.com/2012/09/27/guia-crear-combinaciones-en-prestashop-1-5/
  3. Pues en este caso solo tienes que crear: Atributo: Impresión Valor: Si, No Y ponerle en Si el precio para que lo incremente. acabo de probarlo en local y funciona el incremento solo del atribuoto mas la cantidad que le doy ejemplo: en la casila de cantidad le doy 15 con el tributo no y suma 15€ depues he probado en la casilla cantidad 15 con el tributo si y suma 35€ luego he probado con: en la casilla cantidad de doy 12 con el atributo vo y suma 12€ despues he probado en la casilla cantidad 12 con el tributo si y suma 32€ osea la cantidad es independiente del atributo suma la cantidad que le das mas el atributo. la cantidad del tributo se suma solo una vez
  4. Hola a todos ya hace tiempo que estoy en este foro pero es la primera vez que contesto a una de las cuestiones. Bueno mira, lo que puedes hacer es crear atributos por las cantidades e ir añadiéndole los precios a cada atributo. Por ejemplo: Atributo: Cantidad Valor: 20, 40, 60, 80, etc. A cada valor le incrementas el precio. Por ejemplo 20 es el precio del artículo que es de 1,30€, pues al de 40 le pones un incremento de 1, 30€ al de 60 le pones un incremento de 2,60€ y al de 80 le pones un incremento de 3,90€. sobre lo de la impresión solo tienes que crear: Atributo: Impresión Valor: Si, No Y ponerle en Si el precio para que lo incremente. en mi web tengo algo parecido ya que me dedico al diseño gráfico e impresión. Todavia estoy creandola y esto es un ejemplo: http://www.grafiquesdies.com/1-000-flyers-din-a8-52-x-74-cm.html
×
×
  • Create New...