OnepageSaveOrder
2017-04-17 13:16:26 0 举报
为你推荐
查看更多
抱歉,暂无相关内容
OnepageSaveOrder是一个简单而高效的在线购物工具,旨在帮助用户快速完成订单并保存相关信息。通过这个功能,用户可以在一个页面上轻松选择商品、填写收货地址和支付方式,然后一键提交订单。这样不仅节省了用户在不同页面之间切换的时间,还避免了因操作繁琐而导致的误操作。此外,OnepageSaveOrder还提供了订单历史记录查询功能,方便用户随时查看和管理自己的购物记录。总之,OnepageSaveOrder是一个实用的在线购物助手,能够为用户带来更便捷的购物体验。
作者其他创作
大纲/内容
require Arg Check
quote
$payment=getPayment()
ajax Check
queue new order email or not
Mage_Checkout_Model_Type_Onepage
[$redirectUrl]
Opt
$orderItem=itemToOrderItem($quoteItem)
$onepage=getOnepage()
addItem($orderItem)
[$isVirtural]
Opt
$quote=getQuote()
add recurring profiles information to the session
$isVirturl=isVirturl()
add order information to the session(redirecturl .........)
$checkout=getCheckout()
Response
[$order]
$checkout (CHECKOUT/SESSION)
payment
[isNewCustomer]
saveOrder()
formkey Chek
setQuote($quote)
set payment for order if quote is not virtural
set last quote info & clear helper data
$order=addressToOrder($billingAddress/$shippingAddress) //depende s on $isVirtural
set customer address of shipping address
$quoteService(sales/service_quote)
reserveOrderId()
[$quote-getCustomerId()]
_validate()
$order=getOrder()
validate()
addObject($quote-getCustomer())
set shipping address for order virtural
submitAll()
$redirectUrl=getOrderPlaceRedirectUrl()
prepare customer depends on checkout type(guest/register/login)
importData($data)
set json of $result as body
add redirect url into r $result
$checkout(checkout/session)
save()
convertor(Sales/Convert_Quote)
$redirectUrl=getRedirectUrl()
set billing address for order
_deleteNominalItems()
saveOrderAction()
transaction(core/resource_transaction)
setShippingAddress($address)
set order data
_involveNewCustomer()
addObject($ordder)
[$quote-getAllItems() as $item]
Loop
onepage
as well a billing agreement can be created
[!$redirectUrl && $order-getCanSendNewEmailFlag()]
Mage_Checkout_OnepageController
[$profiles]
order
$profiles=getRecurringPaymentProfiles()
addObject($quote)
0 条评论
回复 删除
下一页