Created
August 14, 2023 10:06
-
-
Save webdados/175be5a7485ecf68dd6e0b862e8aae86 to your computer and use it in GitHub Desktop.
Increase all prices on the Kuanto Kusta WooCommerce feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Pro plugin: https://ptwooplugins.com/product/feed-kuantokusta-for-woocommerce-pro/ */ | |
add_filter( 'kuantokusta_product_node_default_regular_price', 'kk_increase_prices' ); | |
add_filter( 'kuantokusta_product_node_variation_regular_price', 'kk_increase_prices' ); | |
add_filter( 'kuantokusta_product_node_default_current_price', 'kk_increase_prices' ); | |
add_filter( 'kuantokusta_product_node_variation_current_price', 'kk_increase_prices' ); | |
function kk_increase_prices( $price ) { | |
return $price * 1.15; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment