rescue_ranger
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Strange price for applied discount@simsim1986 i cannot reproduce the issue
Please, submit a new ticket to https://algolplus.freshdesk.com/About
$cart->freeItems
Use
the$cart->addToCart()
method, but you should provide FreeCartItem class object as a parameter
and
the$cart->getFreeItems()
method as a getterForum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Plugin issue@shovonboshak thank you for reporting. Please, send us a ticket in the helpdesk and attach the zip with the theme.
Forum: Plugins
In reply to: [Phone Orders for WooCommerce] It stopped workingForum: Plugins
In reply to: [Phone Orders for WooCommerce] It stopped working@perties update the “Advanced Dynamic Pricing for WooCommerce” plugin to the latest version
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Override decimal places in CartGood day, @ox173
You are welcome, but the last one is up to you. This is not a plugin issue.
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Override decimal places in CartGood day, @ox173
It does modify the subtotal in the cart as well. Is there a way to only modify the price and not subtotal?
Try this
add_filter('woocommerce_cart_item_price', function ($price, $cart_item, $cart_item_key) { $product = apply_filters('woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key); $adpSetDecimals = function () { return 3; }; add_filter("wc_get_price_decimals", $adpSetDecimals, 10); $price = WC()->cart->get_product_price($product); remove_filter("wc_get_price_decimals", $adpSetDecimals, 10); return $price; }, 10, 3);
In the backend, Woocommerce/orders once the order is clicked on there is the sub headings
Item-Cost-qty-total-taxThe part that is cost, I would like only to have 5 decimal places.
It makes no sense because the price in the order has already been rounded
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Override decimal places in CartGood day, @ox173!
is there a way to only apply the decimals for the per piece only in the cart.
Could you try this?
function adp_set_decimals(){ return 3; } add_action("woocommerce_before_cart", function(){ add_filter("wc_get_price_decimals","adp_set_decimals",123); }); add_action("woocommerce_cart_contents", function(){ remove_filter("wc_get_price_decimals","adp_set_decimals",123); });
is there a way to only apply the decimal places in the order area, only per piece.
Which ‘order area’ do you need exactly? And where? Checkout? Order details? Order edit page?
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Dequeue cssreplace my last reply with this
add_action( 'wp_print_styles', function () { if ( ! is_product() ) { wp_dequeue_style( 'wdp_pricing-table' ); wp_dequeue_style( 'wdp_deals-table' ); } }, 11 );
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Dequeue css@martindeknuyt
try thisadd_action( 'wp_print_styles', function () { wp_dequeue_style( 'wdp_pricing-table' ); wp_dequeue_style( 'wdp_deals-table' ); }, 11 );
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] slows website@nizar2020 Could you submit a ticket?
Forum: Plugins
In reply to: [Phone Orders for WooCommerce] Latest Woocommerce Compatiblity issueGood day, @ashu0406
Could you submit a ticket? We will provide you an updated version.
Sincerely, Edward
Forum: Plugins
In reply to: [Phone Orders for WooCommerce] Tax not calculating for Guest ordersForum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Double change currency