Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created August 10, 2023 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plugin-republic/8e73b060281934810cbd5086fca5dab3 to your computer and use it in GitHub Desktop.
Save plugin-republic/8e73b060281934810cbd5086fca5dab3 to your computer and use it in GitHub Desktop.
<?php
/**
* Prevent products with add-ons that don't add cost from updating the product price in the cart
* Fixes a compatibility issue with Aelia Currency Switcher with products with set prices in alt currencies
*/
add_filter( 'pewc_ignore_price_with_extras', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment