Hi guys ) i have a little provblem i need to add a date picker and a free text zone to products for each costumer can pick delivery date ( or tour date for exemple) and i cant finde any opion for that in atributs and i have another qwerstion in payment method i have modifeied to suite my needs i need to call data form jshop
function showEndForm($params, $order){
$jshopConfig = JSFactory::getConfig();
$item_name = sprintf(_JSHOP_PAYMENT_NUMBER, $order->order_number);
$_country = JTable::getInstance('country', 'jshop');
$_country->load($order->d_country);
$country = $_country->country_code;
$data = array(
//MerchantSecurityKey + MerchantNumber + Amount);
$params['project_password'], // MerchantSecurityKey
$params['user_id'], // MerchantNumber
$order->order_total // Amount
);
$data_implode = implode('', $data); //implode('|', $data);
$hash = md5($data_implode);//need md5 instead of sha1
?>
<form id="paymentform" action="https://cpsbill.com/checkout" name = "paymentform" method = "post">
<input type='hidden' name='OrderCSum' value='<?php print $hash?>' />
<input type='hidden' name='MerchantNumber' value='<?php print $params['user_id']?>' />
<input type='hidden' name='ProductName' value='<?php print $item_name;?>' />
<input type='hidden' name='Currency' value='<?php print $order->currency_code_iso?>' />
<input type='hidden' name='Amount' value='<?php print $order->order_total?>' />
<input type='hidden' name='CS1' value='<?php print $params['user_id']?>' /> <!-- not required-->
<input type='hidden' name='CS2' value='<?php print $params['user_id']?>' />
<input type='hidden' name='CS3' value='<?php print $params['user_id']?>' />
$jshopConfig = JSFactory::getConfig();
$item_name = sprintf(_JSHOP_PAYMENT_NUMBER, $order->order_number);
$_country = JTable::getInstance('country', 'jshop');
$_country->load($order->d_country);
$country = $_country->country_code;
$data = array(
//MerchantSecurityKey + MerchantNumber + Amount);
$params['project_password'], // MerchantSecurityKey
$params['user_id'], // MerchantNumber
$order->order_total // Amount
);
$data_implode = implode('', $data); //implode('|', $data);
$hash = md5($data_implode);//need md5 instead of sha1
?>
<form id="paymentform" action="https://cpsbill.com/checkout" name = "paymentform" method = "post">
<input type='hidden' name='OrderCSum' value='<?php print $hash?>' />
<input type='hidden' name='MerchantNumber' value='<?php print $params['user_id']?>' />
<input type='hidden' name='ProductName' value='<?php print $item_name;?>' />
<input type='hidden' name='Currency' value='<?php print $order->currency_code_iso?>' />
<input type='hidden' name='Amount' value='<?php print $order->order_total?>' />
<input type='hidden' name='CS1' value='<?php print $params['user_id']?>' /> <!-- not required-->
<input type='hidden' name='CS2' value='<?php print $params['user_id']?>' />
<input type='hidden' name='CS3' value='<?php print $params['user_id']?>' />
in stead of order number( order_number ) i need the Product name can any1 tell me what value is for order name and how to call it ?
thx in advance.
Joomla: 2.5
JoomShopping: Version 3.14.3
PHP: 5.3
JoomShopping: Version 3.14.3
PHP: 5.3
Letzte Änderung: 04.07.2013 13:52