This file contains hidden or 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
| add_action( 'woocommerce_thankyou', 'my_custom_code' ); | |
| function my_custom_code() { | |
| ?> | |
| <!-- My Custom Code --> | |
| <script src ="https://research.pricerunner.com/cgi-bin/quest/cssi.js?quest=102&client=CID"></script><a href="#" onclick="launchCSS()">Skriv in den text ni vill visa för länken här</a> | |
| <?php | |
| } |
This file contains hidden or 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
| add_action( 'woocommerce_google_badge', 'my_google_badge' ); | |
| function my_google_badge() { | |
| ?> | |
| <!-- BEGIN: Google Trusted Store --> | |
| <script type="text/javascript"> | |
| var gts = gts || []; |
This file contains hidden or 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
| // uncomment the tabs you don't want hidden | |
| function remove_tab($tabs){ | |
| unset($tabs['shipping']); // it is to remove shipping tab | |
| unset($tabs['inventory']); // it is to remove inventory tab | |
| unset($tabs['advanced']); // it is to remove advanced tab | |
| unset($tabs['linked_product']); // it is to remove linked_product tab | |
| unset($tabs['attribute']); // it is to remove attribute tab | |
| unset($tabs['variations']); // it is to remove variations tab | |
| return($tabs); | |
| } |
This file contains hidden or 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
| add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_stock', 10 ); | |
| function woocommerce_template_loop_stock() { | |
| global $product; | |
| if ( ! $product->managing_stock() && ! $product->is_in_stock() ) | |
| echo '<p class="stock out-of-stock">SOLD</p>'; | |
| } |
This file contains hidden or 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
| add_filter( 'get_product_search_form' , 'woo_custom_product_searchform' ); | |
| function woo_custom_product_searchform( $form ) { | |
| $form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '"> | |
| <div> | |
| <label class="screen-reader-text" for="s">' . __( 'Search for:', 'woocommerce' ) . '</label> | |
| <input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="' . __( 'Zoek opleidingen', 'woocommerce' ) . '" /> | |
| <input type="submit" id="searchsubmit" value="'. esc_attr__( 'Search', 'woocommerce' ) .'" /> | |
| <input type="hidden" name="post_type" value="product" /> |
This file contains hidden or 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
| // WordPress | |
| add_action( 'wp_enqueue_scripts', 'my_strength_meter_localize_script' ); | |
| function my_strength_meter_localize_script() { | |
| wp_localize_script( 'password-strength-meter', 'pwsL10n', array( | |
| 'empty' => __( 'But... it\'s empty!', 'theme-domain' ), | |
| 'short' => __( 'Too short!', 'theme-domain' ), | |
| 'bad' => __( 'Not even close!', 'theme-domain' ), | |
| 'good' => __( 'You are getting closer...', 'theme-domain' ), | |
| 'strong' => __( 'Now, that\'s a password!', 'theme-domain' ), |
This file contains hidden or 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
| add_filter( 'woocommerce_billing_fields', 'woo_filter_state_billing', 10, 1 ); | |
| add_filter( 'woocommerce_shipping_fields', 'woo_filter_state_shipping', 10, 1 ); | |
| function woo_filter_state_billing( $address_fields ) { | |
| $address_fields['billing_state']['required'] = false; | |
| return $address_fields; | |
| } | |
| function woo_filter_state_shipping( $address_fields ) { | |
| $address_fields['shipping_state']['required'] = false; | |
| return $address_fields; | |
| } |
This file contains hidden or 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
| function wc_ninja_remove_password_strength() { | |
| if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { | |
| wp_dequeue_script( 'wc-password-strength-meter' ); | |
| } | |
| } | |
| add_action( 'wp_print_scripts', 'wc_ninja_remove_password_strength', 100 ); |
This file contains hidden or 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
| .cart_totals tr.shipping td, | |
| #order_review tr.shipping td { | |
| visibility: hidden; | |
| float: left; | |
| } | |
| .cart_totals tr.shipping td span.amount, | |
| #order_review tr.shipping td span.amount { | |
| visibility: visible; | |
| float: left; |