leste Posted October 24, 2011 Share Posted October 24, 2011 Hello Avec la nouvelle version et la posibilité d'override, je pense que l'integration devrait être plus facile Le but et de récupérer le prix dans la fiche produit et de l'afficher dans la calculette KWIXO pour que le client test en 3x sans frais ou à Crédit le coup de son achat, donc intégrer la variable $product->getPrice à la place de "amont=xxxx" Lien sujet précédent Merci du coup de main... Script de base fourni par Kwixo <script> function popupcalc(montant){ var win2 = window.open("https://secure.kwixo.com/credit/calculator.htm?merchantId=xxxx&amount=xxxx" ,'popup','height=645,width=570,status=yes,scrollbars=yes,menubar=no,resizable=yes'); } </script> Link to comment Share on other sites More sharing options...
jeckyl Posted October 25, 2011 Share Posted October 25, 2011 Bonjour, voici mon code complet {literal}<script>function popupcalc(montant){var win2 = window.open("https://secure.kwixo.com/credit/calculator.htm?merchantId=7561&amount={/literal}{$product->getPrice(true, $smarty.const.NULL, 2)}{literal}",'popup','height=645,width=570,status=yes,scrollbars=yes,menubar=no,resizable=yes');}</script>{/literal} <a href="#" onclick="popupcalc(); return false;" title="{l s='3x times fee'}" class="tTip"><img src="{$img_dir}/3x-sansfrais.png"></a> Link to comment Share on other sites More sharing options...
leste Posted October 26, 2011 Author Share Posted October 26, 2011 OK, merci, j'avance ! mais dans qu'elle fichier et à qu'elle endroit ou ligne je doit balancer le code Product.php ou tpl ?? Faut que j'ajoute ça à la fiche produit... Link to comment Share on other sites More sharing options...
jeckyl Posted October 26, 2011 Share Posted October 26, 2011 Bonjour, cela se trouve dans product.tpl à la ligne correspondant à l'endroit où vous souhaitez intégrer cela. 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