Jump to content

Intégration Calculette KWIXO dans la fiche produit


leste

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...