create a new folder in src
named mixins
Then add titleMixin.js
to src/mixins
in titleMixin.js
add:
function getTitle (vm) {
const { title } = vm.$options
<?php | |
/* | |
Hides flat rate on checkout page. Tested and working on Woocommerce V6.2.0 | |
Change the the $product_category to be your selected category. | |
*/ | |
add_filter( 'woocommerce_package_rates', 'conditional_hide_shipping_methods', 100, 2 ); | |
function conditional_hide_shipping_methods( $rates, $package ){ |
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources |