News:

Looking for documentation? Take a look on our wiki

Main Menu

Trusted Shops on thank you page - VM3

Started by ksfbjoern, December 11, 2014, 17:45:20 PM

Previous topic - Next topic

ksfbjoern

Hello,

i have got some problems to integrate trusted shops into the thank you page.

The old code for virtuemart 2 doesn't works in virtuemart 3:

<table width=400 border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="90">
<form name="formSiegel" method="post" action="https://www.trustedshops.com/shop/certificate.php" target="_blank">
<input type="image" border="0" src="http://www.xxxxxxx.de/images/TrustedShops-rgb-Siegel_70Hpx.png" title="Trusted Shops G&uuml;tesiegel - Bitte hier G&uuml;ltigkeit pr&uuml;fen!" />
<input name="shop_id" type="hidden" value="xxxxxxxxxxxxxxxxxx" />
</form>
</td>
<td align="justify">
<form id="formTShops" name="formTShops" method="post" action="https://www.trustedshops.com/shop/protection.php" target="_blank">
<input type="hidden" name="_charset_" />
<input name="shop_id" type="hidden" value="xxxxxxxxxxxxxxxxx" />
<input name="email" type="hidden" value="<?php echo $cart->BT['email'?>" />
<input name="amount" type="hidden" value="<?php echo $cart->pricesUnformatted['billTotal'?>" />
<input name="curr" type="hidden" value="EUR" />
<input name="payment" type="hidden" value="" />
<input name="KDNR" type="hidden" value="<?php echo $cart->customer_number ?>" />
<input name="ORDERNR" type="hidden" value="<?php echo $cart->virtuemart_order_id ?>" />
<font face="Verdana, Arial, Helvetica, Geneva, sans-serif" size="1" color="#000000">
Als zus&auml;tzlichen Service bieten wir Ihnen den Trusted Shops K&auml;uferschutz an. Wir &uuml;bernehmen alle Kosten dieser Garantie, Sie m&uuml;ssen sich lediglich anmelden.<br><br>
<input type="submit" id="btnProtect" name="btnProtect" value="Anmeldung zum Trusted Shops K&auml;uferschutz" />
</font>
</form>
</td>
</tr>
</table>


Has anyone an idea how i have to modify the code to get the correct price, order id, customer number and total?

Thanks a lot?

Greetings

baggiesmad

Also looking to integrate Trusted Shops with the latest version of VM. Is this possible as they dont offer an integration guide for VM on the website.