Category : eCommerce

More Complex integrations of WorldPay within an HTML Page.





http://www.worldpay.com/support/content.php?page=technical&sub=junior&subsub=examples#basic

How to see what version of osCommerce your store is running.




Dowload your version of the application-top.php file located in catalog/includes.
Look for the following line:-

// define the project version
define(’PROJECT_VERSION’, ‘version-seen-here’);


Simple Integration of Worldpay Button within an HTML Page.




<!– The first line of code creates a form, which has the POST method and its action is to send the form to WorldPay.–>

<form action="https://select.worldpay.com/wcc/purchase" method="post"><!– Place your WorldPay Installation ID inside the quotes after value= –>
<input name="instId" type="hidden" value="Your installation ID" />

<!– Create a reference identifier for the item purchased inside the quotes after value= –>
<input name="cartId" type="hidden" value="Your ID for the product" />

<!– Place the cost of the item inside the quotes after value= –>
<input name="amount" type="hidden" value="The cost of the product " />

<!– Place the code for the purchase currency inside the quotes after value= –>
<input name="currency" type="hidden" value="currency code e.g. GBP, USD" />

<!– This line creates the WorlPay button. You can name it as you wish. –>
<input type="submit" value=" Buy This " />

</form>


Javascript Code for scrolling text in Page Title!




<head>
<script language="javascript">
var msg = " bla bla bla bla ";
var pos = 0;
var spacer = " … ";
var time_length = 100;
function ScrollTitle()
{
document.title = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
pos++;
if (pos > msg.length) pos=0;
window.setTimeout("ScrollTitle()",time_length);
}
ScrollTitle();
</script>

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>