snakefd99cb Posted November 13, 2012 Share Posted November 13, 2012 Hola, Quisiera saber si alguien sabe la forma de que al poner una img con url en la descripción corta, aparezca en el product_list. Esa imagen contiene un link que va a parar a un html donde explica que es esos cuadrados, dado que hay distintas opciones. En el Product.tpl se ve, pero en product-list es como si no existiera. Aunque eso es una chapuza, saldría del paso, lo suyo realmente es que el product-list interpre el semaforo que hay puesto en la ficha del producto. <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> {if $product->available_now != 0 && ($product->available_now >= -2 && $product->available_now <= 4)}<span id="availability_value" onclick="window.open('http://www.XXXXX.com/disponibilidad.html','','width=600, height=400, top=140, left=140, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no')" title="{if $product->available_now == -2}{if $product->available_now|substr:3}{/if}{elseif $product->available_now == 1}En stock España/In stock Spain{elseif $product->available_now == 1}En stock ultimas unidades/low in stock{elseif $product->available_now == -1}24/72H{elseif $product->available_now == 4}Almacén Europa/Warehouse Europe{/if}"> <span class="availability_color" style="background:{if $product->available_now == -2}black{elseif $product->available_now == -1}orange{elseif $product->quantity == 0 || $product->available_now == -1}#f1f2f4{elseif $product->available_now == 1}green{elseif $product->available_now == 2}green{elseif $product->available_now == 20}oragne{elseif $product->available_now == 4}green{/if};"> </span> <span class="availability_color" style="background:{if $product->available_now == -2}black{elseif $product->available_now == -1}orange{elseif $product->quantity == 0 || $product->available_now == 3}#f1f2f4{elseif $product->available_now == 1}green{elseif $product->available_now == 2}green{elseif $product->available_now == 4}green{/if};"> </span> <span class="availability_color" style="background:{if $product->available_now == -2}black{elseif $product->available_now == -1}orange{elseif $product->quantity == 0 || $product->quantity == 2 || $product->quantity == 3}#f1f2f4{elseif $product->available_now == 1}green{elseif $product->available_now == 4}orange{/if};"> </span> </span> {if $product->available_now == -2 && $product->available_now|substr:3}<br/><br/><span><br/>{$product->available_now|substr:3}</span>{elseif $product->available_now == 4 && $product->available_now|substr:2}<br/><br/><span><br/>{$product->available_now|substr:2}</span>{/if}{else}<span id="availability_value">{if $product->quantity == 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span>{/if} <br/> </p> Esto equivale a que se ve así en la ficha del producto Si bien es cierto que existe un mod en prestashop: http://www.prestasho...k-availability/ es viejo y no funciona, pero a lo mejor alguien sabe adaptarlo o algo. Si me podéis ayudar, os estare eternamente agradecido. Link to comment Share on other sites More sharing options...
snakefd99cb Posted November 14, 2012 Author Share Posted November 14, 2012 Solucionado lo del img, a la espera de lo otro Link to comment Share on other sites More sharing options...
Recommended Posts