How to override woocommerce.css?

Your code actually looks good, according to the WooCommerce Documentation. It may simply be related to usage in a child theme, but I think that would still work. For reference, here is what I use to replace the default WooCommerce CSS files. This only disables the “general” styling (colors, buttons, etc) but keeps the structuring … Read more

woocommerce with custom post type

I don’t think you’ll be able to pull this off directly. All of the admin screens, objects and hooks are tied to the “product” post type. What you should probably do is add a new product type (a sister to the simple/variable product types). This new product type could be called “Custom_Type”. You can then … Read more

Woocommerce change prices for a certain country [closed]

You need to use the woocommerce_get_price filter: add_filter(‘woocommerce_get_price’, ‘return_custom_price’, $product, 2); function return_custom_price($price, $product) { global $post, $woocommerce; // Array containing country codes $county = array(‘CH’); // Amount to increase by $amount = 5; // If the custromers shipping country is in the array if ( in_array( $woocommerce->customer->get_shipping_country(), $county ) ){ // Return the price … Read more