Woocommerce Problems

How to add custom text below user id in my account page?


Disable Variation on Guest Checkout ?

Hello, I wonder if anyone could help? I’ve been doing a lot of searching and can’t find what I’m after at the moment.

I have the following as a custom function, which allows me to set certain products for guest checkout.

/*————————————–
Woocommerce – Allow Guest Checkout on Certain products
—————————————-*/

// Display Guest Checkout Field
add_action( ‘woocommerce_product_options_general_product_data’, ‘woo_add_custom_general_fields’ );
function woo_add_custom_general_fields() {
  global $woocommerce, $post;

  echo ‘<div class=”options_group”>’;

  // Checkbox
  woocommerce_wp_checkbox( 
  array( 
        ‘id’            => ‘_allow_guest_checkout’, 
        ‘wrapper_class’ => ‘show_if_simple’, 
        ‘label’         => __(‘Checkout’, ‘woocommerce’ ), 
        ‘description’   => __(‘Allow Guest Checkout’, ‘woocommerce’ ) 
        )
   );

  echo ‘</div>’;
}

// Save Guest Checkout Field
add_action( ‘woocommerce_process_product_meta’, ‘woo_add_custom_general_fields_save’ );
function woo_add_custom_general_fields_save( $post_id ){
        $woocommerce_checkbox = isset( $_POST[‘_allow_guest_checkout’] ) ? ‘yes’ : ‘no’;
        update_post_meta( $post_id, ‘_allow_guest_checkout’, $woocommerce_checkbox );
}

// Enable Guest Checkout on Certain products
add_filter( ‘pre_option_woocommerce_enable_guest_checkout’, ‘enable_guest_checkout_based_on_product’ );
function enable_guest_checkout_based_on_product( $value ) {

  if ( WC()->cart ) {
    $cart = WC()->cart->get_cart();
    foreach ( $cart as $item ) {
      if ( get_post_meta( $item[‘product_id’], ‘_allow_guest_checkout’, true ) == ‘yes’ ) {
        $value = “yes”;
      } else {
        $value = “no”;
        break;
      }
    }
  }

  return $value;
}

This works fine, however, I would now like to add two variations to a product. But I would like to make one variation unavailable for guest checkout. Is this possible?

Topic Link: https://wordpress.org/support/topic/disable-variation-on-guest-checkout/

I know I am replying quite late but that CSS snippet worked!! I tried dozens of snippets I found on other support topics and none of them worked but this did work! I just wanted to say thank you! You are a life saver, I was trying to get this figured out for like 3 weeks!

Reply Link: https://wordpress.org/support/topic/unwanted-related-products-section-above-product-template/#post-11425510

Thank you as soon as I disabled WooCommerce Services the annoying ‘connect’ message disappeared. 

Reply Link: https://wordpress.org/support/topic/how-to-disable-the-connect-your-store-to-activate-woocommerce-shipping/page/2/#post-11425713

We’re launching a webinar product soon and I’m running into a debacle. I don’t want modify my current Woocommerce checkout page becaue I have other products and plugisns that require our users to crewat an account at checking BUT but we’ve added a webinar product in our Woocommerce store and we’re using Zapier to send them access on Kajabi (where the videos are hosted). The problem is Kajabi is sending people an autogenerated username and password to log in as well when it gets the Zap. Kajabi says there is no way to stop their platform from autosending these credentials. As you can imagine that’s going to be pretty confusing with people creating a user/pass on our site to checkout AND then getting another email with a username/pass from Kajabi. To circumnavigate we tried purchasing a Woocommerce One page Checkout plugin thinking we could modify the form and remove the account creation part – but apparently we can’t. Any ideas on how to accomplish what we need to have happen: 2 Woocommerce checkout pages, 1 with account creation and 1 without? Thanks!

Topic Link: https://wordpress.org/support/topic/2-woocommerce-checkout-pages/

Hello.

I’m rather new to this. I want a menu itam that will link to my store. But I want the page the menu is linked to to display only 3 categories (Men, ladies, kids) and when someone clicks on one of these there would be subcategories again. Only then I would like to display the actual products. I turned woocommerce inside out and I can’t find the answer.

Topic Link: https://wordpress.org/support/topic/category-tree-3/

Andrew wrote:

Hey there!

There is not anything like this out there for WooCommerce that I know of or can find in a search, so you would need to have it custom developed for you. 

We highly recommend contacting one of the services on our Customizations page (https://woocommerce.com/customizations/)

Reply Link: https://wordpress.org/support/topic/woocommerce-fast-management-of-the-status-of-the-products-from-the-control-panel/#post-11425880

bubu678 wrote:

Thanks for the reply.
What the issue is that Baby & Kids should display more than the 4 sub-categories when I click at the parent level see https://snag.gy/U7zhcZ.jpg

You can see the hierarchy when you click on SHOP and follow the categories on the right side.  They all show under Baby & Kids as shown on pic https://snag.gy/iVOyoT.jpg

Is this an issue with Woocommerce code for Product Category, or is it the way the categories are set in the database?

Cheers

Reply Link: https://wordpress.org/support/topic/product-category-not-showing-full-hierarchy/#post-11426020

raymond621 wrote:

I have a question regarding on the thumbnail gallery below featured image on single product page. Is there any way to remove these thumbnails from displaying? With css “display:none”, it works fine. Even though these thumbnails are not showing, the page still loads the thumbnails on the back end according to tests from pingdom and gtmetrix. It hurts page speed. If I don’t need this function, I don’t see the reason for any browser to load this content. I tried using the following actions to remove thumbnails hook but it is not working.

remove_action( ‘woocommerce_product_thumbnails’, ‘woocommerce_show_product_thumbnails’, 20 );

Can someone help?

Thank you

Topic Link: https://wordpress.org/support/topic/single-product-page-image-thumbnail-gallery/

malbasio wrote:

Hi Shane, thanks for your reply.
I have such a screen option selection possibility on the all products view.  What it does is to toggle whether the table with all the products shows categories.  (It was on, I tried toggling it on and off but it has no effect on the page edit settings)

I don’t have a page called edit product that looks like yours, when I want to update a product or create a new one it looks like the one here.  It does not have a screen options selection at the top.  If I click the three dots I see an option selection that opens a window but here there is no categories choice (see options pictures 1 and picture 2).

My woocommerce version is Version 3.4.5, and I have the latest version of wordpress.

Any other hints?
Thanks
Marco

Reply Link: https://wordpress.org/support/topic/im-not-able-to-edit-categories/#post-11426276

cheonmu wrote:

Hi.

when customer cliclk my account icon or link, move to dashboard in my account. 

but i want to change that when customer cliclk my account  icon or link, move to order page in my account.

Please let me know how do i that.

Thank you.

Topic Link: https://wordpress.org/support/topic/how-to-change-default-page-from-dashboard-page-to-order-page-in-my-account/

sunrosea wrote:

Hello!

I have seen that code and tried it. Peculiar how it works for you but not for me.
When I use that code, and go to an order and select Order Actions -> Email invoice / order details to customer, it breaks the page and immediately loads the email template in the browser window instead of actually doing the action.

Can you try doing that as I described and see if it works for you that way?

Thank you for your assistance!

Reply Link: https://wordpress.org/support/topic/removing-payment-instructions-from-certain-emails/#post-11426406

Hi,

I’m trying to change prices using the csv import function. I exported all products and changed the prices in the csv. Then imported the new csv in Woocommerce. After doing that my products loses their attributes and variations. Any ideas what could cause this problem?

Kind regards

Topic Link: https://wordpress.org/support/topic/import-products-5/

Jan Dembowski wrote:

@escapemaker I may have missed it: why did you report this topic?

Reply Link: https://wordpress.org/support/topic/2-woocommerce-checkout-pages/#post-11426886