[Aporte] Mostrar im...
 
Avisos
Vaciar todo

[Aporte] Mostrar importe restante para obtener en envio Gratuito.

1 Respuestas
1 Usuarios
0 Reactions
3,083 Visitas
Josraso
(@josraso)
Respuestas: 831
Prominent Member Moderator
Topic starter
 

Para que esta modificacion funcione es necesario tener en transporte>preferencias el importe a partir del cual se efectuaran los portes Gratis.

Para ello localizamos y editamos el archivo shopping-cart.tpl de nuestro theme y buscamos:

<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}<>

Justo encima colocamos el siguiente codigo:


{assign var='freeshipping_price' value=Configuration::get('PS_SHIPPING_FREE_PRICE')}

{if $freeshipping_price}
{assign var='freeshipping_price_converted' value={toolsConvertPrice price=$freeshipping_price}}


{math equation='a-b' a=$total_price b=$total_shipping assign='total_without_shipping'}
{math equation='a-b' a=$freeshipping_price_converted b=$total_without_shipping assign='remaining_to_spend'}

{if $remaining_to_spend > 0}
<p>{l s='Your total (without shipping) is'} {convertPrice price=$total_without_shipping}</p>
<p><strong>{l s='You will be eligible for free shipping if you spend another'} {convertPrice price=$remaining_to_spend}</strong></p>
{/if}


{/if}

Luego nos vamos a la traduccion de nuestro theme y buscamos:

Your total (without shipping) is

You will be eligible for free shipping if you spend another

Una vez localizado lo traducimos al gusto.

Visto en

 http://nemops.com/ 


 
Respondido : 21/11/2014 9:53 pm