I am trying to display on product page child category name with link from specific parent cat ID. I am using it to redirect users to see all products for example from SONY brand. For example for: Black SONY TV 50′ I want to display link only to SONY category Brands Sony – This I ..
Category : woocommerce

I’m using the following code to create a new custom order status for Woocommerce. The problem I have is that in the admin, the status shows up as unstyled. How can I style the custom status in a similar way to how "Processing" is? /* Adding a new custom order status */ function register_manual_order_status() { ..
I write function: add_action( ‘woocommerce_order_status_completed’, ‘order_completed’); function order_completed($order_id) { $user_id = $order->get_user_id(); // or $order->get_customer_id(); $order = wc_get_order( $order_id ); $items = $order->get_items(); foreach ( $items as $item ) { $product_name = $item->get_name(); } switch ($product_name) { case ‘FREE’: update_user_meta($user_id, ‘ads-available’, get_user_meta( $user_id, ‘ads-available’, true ) +1 ); break; case ‘VIP’: update_user_meta($user_id, ‘ads-available’, get_user_meta( $user_id, ..
I have edited the wp_query on the product category page in woocommerce. I want to display pagination manually. But when clicking on next, it redirects to the 2nd page, but instead of products, it goes to the page not found. URL is formed as https:/mysite-name/product-category/category-name/page/2/. I have tried with this format also https:/mysite-name/product-category/category-name/?product-page=2. But it ..
I have a custom plugin and at some point I use the code below to send an email $mailMessage = "Hello {display_name}, <br /><br /> "; $mailMessage .= ‘some text..’; $mailMessage .= sprintf(‘<br/><a href="%s">text..’,$checkrInvitationURL); $mailMessage = str_replace( ‘{display_name}’, $user_info->display_name, $mailMessage ); self::send_email_to_admin($mailMessage,$candidateEmail); I want to use the same template from Woocommerce and to make this ..
i want to add a file who was uploaded by a user on his my-account download page. To upload the file i use the Plugin Checkout Files Upload for Woocommerce. I know that i have do add custom Code. Investoren tried with this code: add_filter( ‘woocommerce_customer_get_downloadable_products’, ‘my_function’, 9999, 1 ); but it dont work realy ..
From my previous question I am using Adding prefix to WooCommerce order number if order has items from a specific product category anwser code. Now I want to extend this function for more categories, but I cant seem to find it out. Now I want to add more if statements for the other categories, but ..
Hey I wondered if there is custom code that would display the booking date and time (not the order date and time) in the woocommerce order preview I found several codes mostly by LoicTheAztec that let you insert product and customer information in certain columns. If you click on the customer the actual booking information ..
On checkout page, I am trying to disable the shipping method option according to my area postcode. You can find image here . I am working on WordPress and PHP as a backend. If the postcode doesnot match the area, the shipping method will be disable and the text "" will be shown here. I ..

I am able to verify by viewing the "Application" tab in the dev tools that my session variable has carried over to the checkout page; and I have the WC hook setup that allows me to change the "default"/value of the field I want to insert data into. However, I am unable to get them ..