richo Posted February 15, 2014 Share Posted February 15, 2014 (edited) Bonjour, j'aimerai afficher le prix unique dans un module prestashop, cependant je n'arrives pas a voir où est la valeur dans la base de données Prestashop. Dans la table "ps_product" j'ai un champ "unit_price_ratio" mais celui-ci est a 0.000 alors que j'ai bien une valeur rentré dans ma fiche produit. Est ce que quelqu'un sait où se cache le prix unique ? Pour info, dans la page prduct.tpl nous avons : {convertPrice price=$unit_price}</span> {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'} et dans la page product-list, j'ai utilisé ce script : {if $product.unit_price_ratio} <span class="modif">{math equation="b/a" a=$product.unit_price_ratio b=$product.price_without_reduction assign=realunit} {convertPrice price=$realunit}</span> <span style="font-size:12px">par {$product.unity}</span> {/if} Merci de votre aide Edited February 15, 2014 by richo (see edit history) 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