0

On clicking "place order" in Magento, I want to capture some of its values and feed them to the following form:

<form method="post" action="https://www.jambopay.com/JPExpress.aspx" target="_blank">
<input type="hidden" name="jp_item_type" value="cart"/>
<input type="hidden" name="jp_item_name" value="test shop"/>
<input type="hidden" name="order_id" value="455879"/>
<input type="hidden" name="jp_business" value="business@yourdomain.com"/>
<input type="hidden" name="jp_amount_1" value="51"/>
<input type="hidden" name="jp_amount_2" value="0"/>
<input type="hidden" name="jp_amount_5" value="0"/>
<input type="hidden" name="jp_payee" value="email@yourcustomer.com"/>
<input type="hidden" name="jp_shipping" value="company name"/>
<input type="hidden" name="jp_rurl" value="http://www.yourwebsite.com/testpost/Result.aspx?ii=0"/>
<input type="hidden" name="jp_furl" value="http://www.yourwebsite.com/testpost/Result.aspx?ii=1"/>
<input type="hidden" name="jp_curl" value="http://www.yourwebsite.com/testpost/Result.aspx?ii=2"/>
<input type="image" src="https://www.jambopay.com/jambohelp/jambo/rsc/paymentsbyJamboPay.jpg"/>
</form>

The values include: Order Number, Total Amount, Customers Email Address,

How do i do this?

4

1 回答 1

0

您可以在调用保存订单后获取订单值,
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId(); 一旦您有订单 ID,您可以从此方法获取最后一个订单 ID,然后像这样加载订单 $order = Mage::getModel('sales/order')->load($orderId); ,您可以获得订单的所有详细信息

于 2012-07-10T11:08:48.457 回答