Skip to content

Commit

Permalink
Merge pull request #62 from wirecard/TPWDCEE-1098
Browse files Browse the repository at this point in the history
Tpwdcee 1098
  • Loading branch information
jpy authored Apr 4, 2018
2 parents f86e0bb + 3f0502a commit 621aa56
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

define( 'WOOCOMMERCE_GATEWAY_WCS_NAME', 'WirecardCheckoutSeamless' );
define( 'WOOCOMMERCE_GATEWAY_WCS_VERSION', '1.0.13' );
define( 'WOOCOMMERCE_GATEWAY_WCS_VERSION', '1.0.14' );

/**
* Config class
Expand Down Expand Up @@ -366,7 +366,7 @@ public function get_shopping_basket() {
$item->setUnitGrossAmount( $item_unit_gross_amount )
->setUnitNetAmount( wc_format_decimal( $item_unit_net_amount, wc_get_price_decimals() ) )
->setUnitTaxAmount( wc_format_decimal( $item_unit_tax_amount, wc_get_price_decimals() ) )
->setUnitTaxRate( number_format( ( $item_unit_tax_amount / $item_unit_net_amount ), 2, '.', '' ) )
->setUnitTaxRate( number_format( ( $item_unit_tax_amount / $item_unit_net_amount ), 2, '.', '' ) * 100 )
->setDescription( substr( strip_tags( $cart_item['data']->get_short_description() ), 0, 127 ) )
->setName( substr( strip_tags( $cart_item['data']->get_name() ), 0, 127 ) )
->setImageUrl( isset( $image_url ) ? $image_url : '' );
Expand All @@ -381,7 +381,7 @@ public function get_shopping_basket() {
wc_get_price_decimals() ) )
->setUnitNetAmount( wc_format_decimal( $cart->shipping_total, wc_get_price_decimals() ) )
->setUnitTaxAmount( wc_format_decimal( $cart->shipping_tax_total, wc_get_price_decimals() ) )
->setUnitTaxRate( number_format( ( $cart->shipping_tax_total / $cart->shipping_total ), 2, '.', '' ) )
->setUnitTaxRate( number_format( ( $cart->shipping_tax_total / $cart->shipping_total ), 2, '.', '' ) * 100 )
->setName( 'Shipping' )
->setDescription( 'Shipping' );
$basket->addItem( $item );
Expand Down

0 comments on commit 621aa56

Please sign in to comment.