Questions tagged «billing»

5
如何检查账单和送货地址是否相等?
我正在尝试在创建发票PDF时检查账单和收货地址是否相等。 到目前为止,我尝试过的是: $order = $invoice->getOrder(); if( $order->getBillingAddress()->getData() != $order->getShippingAddress()->getData() ) 要么 $order = $invoice->getOrder(); if( $order->getShippingAddress()->getData('same_as_billing')!='1' ) 但都行不通。我也试图通过使用来获取报价,$order->getQuote()但这也不起作用。 有什么方法可以检查账单地址和送货地址是否相等?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.