Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $price = (float) $item['line_subtotal'] / (float) $item['quantity'];
- //$description = $this->prepare_description( $product->get_description() );
- $description = '';
- $data = new Item(
- mb_substr( $product->get_name(), 0, 127 ),
- new Money( $price, $this->currency ),
- $quantity,
- $description,
- null,
- $this->prepare_sku( $product->get_sku() ),
- ( $product->is_virtual() ) ? Item::DIGITAL_GOODS : Item::PHYSICAL_GOODS,
- $product->get_permalink(),
- $image[0] ?? '',
- 0,
- $cart_item_key
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement