Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能帮我把增值税/税号放在 Magento 的 pdf 发票上?
我尝试了这段代码,但没有奏效:
$taxvat = $order->getData('customer_taxvat'); $page->drawText('Tax/Vat: '.$taxvat, 35, 567);
你可以通过这样做来检索它; $order->getCustomerTaxvat()
$order->getCustomerTaxvat()
如果这个值为空,你可以试试这个;
$customer = Mage::getModel('customer/customer')->load($order->getData('customer_id')); $taxVat = $customer->getData('taxvat');