mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Merge branch 'trunk' into PCP-1967-paylater
This commit is contained in:
commit
294e14d30b
1 changed files with 4 additions and 1 deletions
|
@ -249,9 +249,12 @@ class Item {
|
|||
'sku' => $this->sku(),
|
||||
'category' => $this->category(),
|
||||
'url' => $this->url(),
|
||||
'image_url' => $this->image_url(),
|
||||
);
|
||||
|
||||
if ( $this->image_url() ) {
|
||||
$item['image_url'] = $this->image_url();
|
||||
}
|
||||
|
||||
if ( $this->tax() ) {
|
||||
$item['tax'] = $this->tax()->to_array();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue