How do you access the Product Short Description in a WooCommerce email template?

I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. I think I know where to place code inside the email template file, but I don’t know how to access the description of an item. I don’t see any mechanism to retrieve it. What … Read more

Programmatically change Payment Methods WooCommerce

I am trying to programmatically manipulate the selection of Payment Method between BACS and a No Payment required option. My client wants the ability to Request for Quote only, so I’ve extended woocommerce actions and filters, and provided a method to request quote through the cart system. If the user has requested a quote only, on the checkout page I am trying to auto select the Cash on Delivery option, which I’ve renamed to “Request for Quote Only – No payment required”. Any advice would be helpful.

Create product category and keyword search form in woocommerce?

i want to build category and keyword based search form. so i got this following form <form role="search" method="get" id="searchform_special" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <div> <label class="screen-reader-text" for="s"><?php _e( 'Search for:', 'woocommerce' ); ?></label> <input type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" placeholder="<?php _e( 'Search for products', 'woocommerce' ); ?>" /> … Read more

Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out

I need, somehow, to enable that when you logout, that ‘My Account’ item is getting hidden from the navbar, and instead it displays a ‘Log in’ link. The item ‘My Account’ also have submenus with the items ‘Log out’ and ‘Track your order’. This should be hidden as well (I guess it gets hidden when you hide the parent ‘My Account’).

Permalinks for WooCommerce Categories and Subcategories

Setup Desired permalink structure (only these structures exist for products) Product 1: /shop/category/subcategory/product1/ Product 2: /shop/category/product2/ Woocommerce Product View Settings View for shopbase: Show categories View for categories: Show products Products Products are only checked for one category OR subcategory Permalink Settings Normal settings: /%category%/%postname%/ Base for categories: shop For products: /shop/%product_cat%/ Archives Since there … Read more