rescue_ranger
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Does not affect saleprice?Good day, @vitago
1) Select “Sale Price” in the “Value” column in the price line.
2) Enable the option “Calculation -> Calculate “On Sale” badge for variable products”
3) Enable the option “Product page -> Show On Sale badge if product price was modified”@frankberenstain
Or you can try adding the code below to the code snippets plugin<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Plugin Name: WooCommerce Custom Product Addons (Free) * Plugin URI: https://acowebs.com * Author: Acowebs */ class WDP_WCPA_Custom_Compatibility { const KEY = 'acowebs-woo-custom-product-addons'; const WDP_VERSION = '2.2.4'; const TARGET_VERSION = '4.3.10'; protected $tm_keys = array( 'wcpa_data', ); public function is_required() { return class_exists( 'WCPA_Front_End' ); } public function admin_install() { } public function remove_admin_hooks() { } /** * @param WDP_Price_Display $price_display */ public function install( $price_display ) { add_action( 'init', function () { add_filter( 'wdp_cart_item_data_before_apply', array( $this, 'wdp_cart_item_data_before_apply' ), 10, 2 ); add_filter( 'wdp_original_cart_item_data', array( $this, 'wdp_original_cart_item_data' ), 10, 1 ); add_filter( 'wdp_save_cart_item_keys', array( $this, 'wdp_save_cart_item_keys' ), 10, 1 ); } ); } public function remove_hooks() { if ( did_action( 'init' ) ) { remove_filter( 'wdp_cart_item_data_before_apply', array( $this, 'wdp_cart_item_data_before_apply' ), 10 ); remove_filter( 'wdp_original_cart_item_data', array( $this, 'wdp_original_cart_item_data' ), 10 ); remove_filter( 'wdp_save_cart_item_keys', array( $this, 'wdp_save_cart_item_keys' ), 10 ); } } public function wdp_cart_item_data_before_apply( $cart_item_data, $original_cart_item_data ) { foreach ( $this->tm_keys as $key ) { if ( isset( $original_cart_item_data[ $key ] ) ) { $cart_item_data[ $key ] = $original_cart_item_data[ $key ]; } } return $cart_item_data; } public function wdp_original_cart_item_data( $original_cart_item_data ) { foreach ( $this->tm_keys as $key ) { if ( isset( $original_cart_item_data[ $key ] ) ) { unset( $original_cart_item_data[ $key ] ); } } return $original_cart_item_data; } public function wdp_save_cart_item_keys( $keys ) { return array_merge( $keys, $this->tm_keys ); } } $cmp = WDP_WCPA_Compatibility(); if ( $cmp->is_required() ) { $cmp->install( null ); }
@frankberenstain
Could you submit a ticket to https://algolplus.freshdesk.com?Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] How to customize the tags?Good day, @santidrone
Have you enabled the option “product page” -> “Show On Sale badge if product price was modified”?
What theme are you using?Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] How to customize the tags?Good day, @santidrone
There is a theme responsibility. We adjust sale/regular price filters so theme can calculate sale value
Good day, @elito-1
You are welcome ??Good day, @elito-1
Use “Code snippets” plugin, please. functions.php runs too late
Good day, @elito-1
1. To rewrite cart totals amount saved template, copy file from
“wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/templates/amount-saved/cart-totals.php”
to
“wp-content/themes/{YOUR_CURRENT_THEME}/advanced-dynamic-pricing-for-woocommerce/amount-saved/cart-totals.php”
and edit it.2. There is only two options ‘Before order total’ or ‘After order total’.
I can add new locations using filter “wdp_cart_discount_message_places”add_filter( "wdp_cart_discount_message_places", function ( $places ) { // example $places['woocommerce_cart_totals_before_order_total'] = __( 'Before order total', 'advanced-dynamic-pricing-for-woocommerce' ); $places["YOUR ACTION OR FILTER"] = "LABEL"; return $places; } );
@sprzedawczyk
1. disable option “Product page” -> “Don’t modify product price on product page”
2. enable option “Product page” -> “Show On Sale badge if product price was modified”
3. now we are replacing WC sale price. Call $product->get_sale_price() or catch it with filter “woocommerce_product_get_sale_price” (our priority is 100).The calling calculation classes directly gives you more flexibility, but most of them will be deprecated soon.
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Цена товаров изменяется@ermakover
1. How should a customer see a discount? Highlight the cart item? Custom text?
2. You can create three rules with conditions as in our example here
3. Copy one of the rule from 2nd point and adjust condition
4. Do you want this?If you are interested, could you submit ticket to helpdesk?
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Onsale badgeForum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Onsale badgeGood day, @zyggmunt! Have you activated the option “Show On Sale badge if product price was modified”?
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Conflict with Paypal Plus PluginGood day, @patchekohoss!
try this
add_filter('wdp_exclude_hooks_when_add_to_cart_calculated_items', function($hooks){ return array_merge(array('woocommerce_add_to_cart', 'woocommerce_after_cart_item_quantity_update'), $hooks); });
Sincerely, Edward
Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Add discount price in order detail@09tan05smi
(although I don’t quite understand why to use a fixed discount of 6, when I want to show the discount per bottle…)
The fixed discount is applying to full amount of the wine caseDo you know for what situation the limit is used?
Limit is the count of orders which items were discounted by the rule
If you need to prohibit to sell more than N cases, use the “Can be applied” rule optionis there a possibility to change the style of how discounts are displayed
Unfortunately, only using hooks.Forum: Plugins
In reply to: [Advanced Dynamic Pricing for WooCommerce] Add discount price in order detail@09tan05smi if i understand you right, you can try
–> Filter by products
–> 6 Products in list “Chardonnay”
–> Product Discounts
–> Fixed Discount –> 6no max discount sum
add limit if needed