Adding placeholder text field to woocommerce checkout [closed]

Add the code in your themes functions.php. add_filter( ‘woocommerce_checkout_fields’ , ‘override_billing_checkout_fields’, 20, 1 ); function override_billing_checkout_fields( $fields ) { $fields[‘billing’][‘billing_first_name’][‘placeholder’] = ‘Enter First Name’; $fields[‘billing’][‘billing_last_name’][‘placeholder’] = ‘Enter Last Name’; return $fields; } Solved by adding the code in this way

How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions

I have found/made the code that works. Maybe it helps somebody else. /** * Remove the “Upgrade or Downgrade” button from the My Subscription table if user role is “subscriber_plus”. */ add_filter(‘woocommerce_subscriptions_switch_link’, ‘remove_switch_button’, 10, 4); function remove_switch_button($switch_link, $item_id, $item, $subscription) { $user = wp_get_current_user(); if ( in_array( ‘subscriber_plus’, (array) $user->roles ) ) { return ”; … Read more

Anchor link to every product

You can use the woocommerce_loop_product_link filter to modify the archive product urls. // Add to (child) theme functions.php function my_prefix_modify_woocommerce_loop_product_link( $url, $product ) { /** * Adds the id of the product wrap element from single product view * as an anchor parameter to the WooC archive loop product url * e.g. http://www.mystore.com/my-product#single-produt-wrap-id * update … Read more