deltahel Posted May 11, 2016 Share Posted May 11, 2016 Hola a todos! He estado probando algunos métodos que muestran en otros foros, como este: http://capys.es/como-mostrar-rangos-de-precios-en-las-listas-de-productos-y-paginas-de-producto-de-prestashop/ Ya logré mostrar los rangos de precios en la lista de productos de las categorías, pero no me hace la conversión de monedas. Cambia el símbolo, pero con la misma cifra. (Ej.: $ 20.000 -> USD 20,000) Agradezco cualquier ayuda. Estos son los ajustes realizados en product-list.tpl {assign var="canValores" value=$product.pricesByQuantity|@count} {assign var="indInicial" value=0} <div id="listPrices"> {foreach from=$product.pricesByQuantity item=priceQuantity} {assign var="indInicial" value=$indInicial+1} <div class="iteratePrice"> {if ($indInicial < $canValores)} <div class="iterateRangePrice"> {$priceQuantity.from_quantity} {l s='to'} {$product.pricesByQuantity[$indInicial].from_quantity-1} </div> <div class="iterateValuePrice"> {convertPrice price=$priceQuantity.price*$product.rate/100+$priceQuantity.price} </div> {else} <div class="iterateRangePrice"> + {l s='than'} {$priceQuantity.from_quantity} </div> <div class="iterateValuePrice"> {convertPrice price=$priceQuantity.price*$product.rate/100+$priceQuantity.price} </div> {/if} </div> {/foreach} </div> Link to comment Share on other sites More sharing options...
ventura Posted May 11, 2016 Share Posted May 11, 2016 Deberías explicar algo más lo que necesitas mostrar, si te refieres al impacto en el precio de las combinaciones. Link to comment Share on other sites More sharing options...
deltahel Posted May 11, 2016 Author Share Posted May 11, 2016 No exactamente ventura. Lo que quiero es mostrar los rangos de PRECIOS ESPECÍFICOS. Por ejemplo: De 1 a 6 => $100, De 7 a 11 => $90 y De 12 en adelante => $80 Eso ya lo puedo mostrar, pero no funciona el convertPrice para convertir la divisa. Espero haber hecho entender. Link to comment Share on other sites More sharing options...
ventura Posted May 11, 2016 Share Posted May 11, 2016 Como accedes a las variables, has sobreescrito el controlador ? Link to comment Share on other sites More sharing options...
deltahel Posted May 13, 2016 Author Share Posted May 13, 2016 Me he dado cuenta que es por el theme, al cambiar a cualquiera que no sea default-boostrap, pero aún no se a que se debe. 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