bristolspider 0 Newbie Poster

i have a prestashop install for a new wed site and have edited a module for this so that i can get a payment system to work with it (secure hosting ill refer to SH). there is what seems a very simply document from SH

1. In the form on your server, change the form action to the following:
action=”https://www.secure-server-hosting.com/secutran/secuitems.php” method="POST"	
and add the hidden field :-
<input type="hidden" name="filename" value="sh....../template.html">
where "sh......" is your Secure Hosting client reference number.
2. If you need to pass across product data, for example if using a shopping cart, you need to include a single hidden field in the following format in your form :-
<input type="hidden" name="secuitems" value="[itemcode|itemskew|itemdesc|itempric|itemquan|itemtota][itemcode2|itemskew2|itemdesc2|itempric2|itemquan2|itemtota2]">
where the values will be inserted :-
itemcode = product code
itemskew = SKU code
itemdesc = product description
itempric = product price
itemquan = quantity
itemtota = line total

theres a little bit more but that has got it that when i click the check out which would have taken me to the other payment system it now takes ms to SH the problem is that none of the Variables like product info cost qty ect go to the payment page where they should be. ill post the TPL file that i have edited so you can see all code.

<p class="payment_module">
	<a href="javascript:$('#SH').submit();" title="{l s='Pay with card' mod='protx'}">
		<img src="{$module_template_dir}protx.gif" alt="{l s='Pay with Card' mod='card'}" />
		{l s='Pay with Card' mod='card'}
	</a>
</p>

<form action="https://www.secure-server-hosting.com/secutran/secuitems.php" method="POST" id="SH">
<input type="hidden" name="filename" value="sh216733/template2.html">
<input type="hidden" name="shreference" Value"sh216733" />
<input type="hidden" name="checkcode" value="907631" />
<input type="hidden" name="secuitems" value="[egl12345||$customer|50.00|{$product.cart_quantity}|{convertPrice price=$total}">
</form>

<input type="hidden" name="secuitems" value="[egl12345||$customer|50.00|{$product.cart_quantity}|{convertPrice price=$total}"> is the product info i know but the $total dose not pass that to check out have a missed something?

i will appreciate all help offered.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.