Skip to content

Commit

Permalink
added tax line on cart item
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipsesrl committed Apr 21, 2020
1 parent 6068a14 commit 56c8ecc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.udesly.com/
Tags: webflow to wordpress, editor, page builder, layout design, udesly, webflow
Requires at least: 5.0
Tested up to: 5.2.3
Stable tag: 2.0.3
Stable tag: 2.0.4
License: GPLv3 or later
License URI: https://www.udesly.com/terms-conditions-of-use/#udesly-wordpress-plugin
Requires PHP: 5.6.0
Expand Down Expand Up @@ -82,6 +82,9 @@ Absolutely! You can use the Udesly Adapter to create more than one website.

== Changelog ==

= 2.0.4 =
* Added line tax to the mini cart item

= 2.0.3 =
* Added metabox to choose taxonomies inside custom post type

Expand Down
2 changes: 1 addition & 1 deletion includes/misc/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function udesly_woocommerce_get_cart_items()
$current_product['quantity'] = $cart_item['quantity'];
$current_product['class'] = '';
$current_product['price'] = $product_price;
$current_product['total'] = wc_price($cart_item['line_total']);
$current_product['total'] = wc_price($cart_item['line_total'] + $cart_item['line_tax']);
$current_product['key'] = $cart_item_key;
$cart_items[] = (object)$current_product;
}
Expand Down
4 changes: 2 additions & 2 deletions udesly-adapter-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Udesly Adapter
* Plugin URI: https://www.udesly.com
* Description: This is a support plugin for Udesly (Webflow to WordPress converter) that allows you to enable additional features for your theme.
* Version: 2.0.3
* Version: 2.0.4
* Author: Udesly
* Author URI: https://www.udesly.com
* License: GPL-2.0+
Expand All @@ -29,7 +29,7 @@
// Constants
defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH', plugin_dir_path(__FILE__));
defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL', plugin_dir_url(__FILE__));
defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.3");
defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.4");
defined('UDESLY_TEXT_DOMAIN') ?: define('UDESLY_TEXT_DOMAIN', "udesly-adapter-plugin");

defined('UDESLY_ADAPTER_PLUGIN_MISC_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_MISC_PATH', plugin_dir_path(__FILE__) . 'includes/misc/');
Expand Down

0 comments on commit 56c8ecc

Please sign in to comment.