Kaavya Iyer (woo-hc)
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] bug?Hi @uebes,
I am able to edit the date created in the admin order page on my test website which is running WooCommerce 7.8.0
Please follow these steps to determine if there is a theme/plugin conflict:
1. Switch your theme to Storefront.
2. Disable all plugins except WooCommerce.
3. Test if you are able to edit the date created field in the Admin order page.If the issue persists despite following the above steps, kindly share the following information for further investigation:
1. System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
2. Fatal Error Log: A copy of any fatal error log found under WooCommerce > System Status > Logs (if available).I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] Issues with Cart Display in WooCommerce 7.8.0@orbitaclick and @nandel,
Elementor/Astra theme users are facing issues with mini cart. Issues have been reported with respect to missing content in the mini cart. https://github.com/woocommerce/woocommerce/issues/38735
They have also mentioned a fix here: https://github.com/woocommerce/woocommerce/pull/38736
You can try adding the following code to the theme’s functions.php file:
function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); } add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
You can create a child theme and then add the above snippet of code to the active child theme’s functions.php file and activate the child theme.
Please make sure you don’t edit the theme files directly as they will be overwritten when the theme is updated. To protect your changes from updates, create a Child Theme in which to keep all your changes.
I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] Issues with Cart Display in WooCommerce 7.8.0Hi @orbitaclick,
Can you please describe the issue you are facing with the cart? It would be great if you can share a screenshot of what the cart looks like. You can upload the screenshot on?https://snipboard.io?tool and share the URL here.
Forum: Plugins
In reply to: [WooCommerce] Keeps showing out of stockHi @moederenik,
Have you also tried performing a conflict test to make sure there is no plugin conflict?
1. Switch your theme to Storefront.
2. Disable all plugins except WooCommerce.
3. Test to confirm if out of stock products are hidden.If the issue persists despite following the above steps, kindly share the following information for further investigation:
1. System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
2. Fatal Error Log: A copy of any fatal error log found under WooCommerce > System Status > Logs (if available).Also, let me know if that code works for you.
Forum: Plugins
In reply to: [WooCommerce] Keeps showing out of stockHi @moederenik,
Please make sure that the?Hide out of stock items from the catalog?box is checked under WooCommerce > Settings > Products > Inventory.
This should hide the out of stock items. If?this doesn’t work as expected on your site, you’ll need to do a conflict test to investigate if the issue is coming from a plugin/theme conflict.
You can find a detailed explanation on how to do a conflict test here:?https://docs.woocommerce.com/document/how-to-test-for-conflicts/
The following snippet of code will hide out-of-stock products from the catalog:
function hide_out_of_stock_products( $q ) { $meta_query = $q->get( 'meta_query' ); $meta_query[] = array( 'key' => '_stock_status', 'value' => 'outofstock', 'compare' => '!=' ); $q->set( 'meta_query', $meta_query ); } add_action( 'woocommerce_product_query', 'hide_out_of_stock_products' );
You can add this snippet of code to your active child theme’s functions.php file.
Please make sure you don’t edit the theme files directly as they will be overwritten when the theme is updated. To protect your changes from updates, create a?Child Theme?in which to keep all your changes.
I hope this helps! Good luck!
Forum: Plugins
In reply to: [WooCommerce] Shipping is not shown correctIt looks like you have 2 shipping zones set up – Denmark and Czech Republic.
When I choose Denmark as my address, I see a flat shipping rate of 48.75?kr applied to my cart. However, when I choose Czech Republic, it says that there are no shipping options available (screenshot for reference). To fix this, you will need to set up a shipping method for Czech as each zone should have one or more shipping methods. You can read more about setting up a shipping method for a shipping zone here.
If you have also set up shipping classes, please note that each product can have one shipping class. So, for a product added to cart, you will only see the shipping rate associated with the shipping class that is assigned to that product. You can read more about shipping classes here.
Please share a screenshot of your shipping class setup under Admin screen > WooCommerce > Settings > Shipping > Shipping Classes so that I can take a look at it.
I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] Shipping is not shown correctDo you mean shipping costs are being added incorrectly during checkout?
Please describe and share a screenshot of the issue you are facing so that we can understand it better. You can upload the screenshot on?https://snipboard.io?tool and share the URL here.
Forum: Plugins
In reply to: [WooCommerce] User automatic get subscriber role after sign inHi @rizalmasan
By default, WooCommerce creates a new user with the
customer
role only.As you mentioned, there could be other factors causing this.
If you have development experience, I would suggest you to investigate the following in all the active plugins:
- Use of the the function
wc_create_new_customer
where the argumentrole
is set to besubscriber
. - Any use of the
woocommerce_new_customer_data
filter hook where therole
is set to besubscriber
.
Let me know if that helps!
Forum: Plugins
In reply to: [WooCommerce] How to change “add to cart” To “Contact seller”Hi @snnafrica
This will require certain level of custom development.
To change just the Add to cart text, you can use the following filters:
woocommerce_product_single_add_to_cart_text
woocommerce_product_add_to_cart_text
function prefix_change_add_to_cart_text( $text ) { return esc_html__( 'Contact Seller', 'text-domain' ); } add_filter( 'woocommerce_product_single_add_to_cart_text', 'prefix_change_add_to_cart_text' ); add_filter( 'woocommerce_product_add_to_cart_text', 'prefix_change_add_to_cart_text' );
To change the Add to cart button HTML on the shop page, use the following filter:
woocommerce_loop_add_to_cart_link
/** * This function will change the 'Add to cart' button HTML * on the shop page. */ function prefix_change_add_to_cart_text( $button_html, $product, $args ) { return sprintf( '<button>%s</button>', esc_html__( 'Contact Seller', 'text-domain' ) ); } add_filter( 'woocommerce_loop_add_to_cart_link', 'prefix_change_add_to_cart_text', 10, 3 );
This will at least help you get started.
Using JavaScript, you will have to change the functionality of clicking the button and showing the seller’s contact information instead.
You may need to hire a developer for this as this is related to customising WooCommerce core functionality.
Forum: Plugins
In reply to: [WooCommerce] Change Price Color and Regular price color HomepageHi @steppin,
Thanks for providing the link to your site. It looks like you are using the WooCommerce Blocks plugin where some of the class names are different from WooCommerce core, which is why the onsale CSS is not reflecting.
You can replace the onsale CSS from my previous reply with the following:
wc-block-grid__product-onsale { background-color: blue; color: white; }
We have already made the red price text bold with the
font-weight
property. To make the red brighter, we have used thebrightness
filter function. You can refer to this documentation to customise the brightness using percentages.I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] Change Price Color and Regular price color HomepageHi @steppin,
You are right. It looks like the CSS I added today to make the regular prices white also applied to the prices with a line-through.
Here is the updated CSS:
.onsale { background-color: blue; color: white; } del span.woocommerce-Price-amount { color: red; font-weight: 700; filter: brightness(1.50); text-decoration: line-through; } ins span.woocommerce-Price-amount { color: white; } span.woocommerce-Price-amount { color: white }
Here are the screenshots of my shop page, category page and product page.
I see that the sale color (blue) is not reflecting in your shop page, but showing in the product and category page. Do you have any other settings in place that may be overriding the additional CSS?
Forum: Plugins
In reply to: [WooCommerce] Change Price Color and Regular price color HomepageHi @steppin,
Can you please remove the CSS you have in place currently and then add the above CSS?
It seems to be working fine for me with Storefront theme. Here is a screenshot for reference.
I have also added this CSS to make all the regular prices white:
.amount bdi { color: white; }
Let me know if this works.
Forum: Plugins
In reply to: [WooCommerce] Change Price Color and Regular price color HomepageHi @steppin,
Please add the following CSS in Appearance -> Customize -> Additional CSS and let me know how that works out for you:
.onsale { background-color: blue; color: white; } del span.woocommerce-Price-amount { color: red; font-weight: 700; text-decoration: line-through; } ins span.woocommerce-Price-amount { color: white; }
I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] “Woocommerce>setting>shipping” not openingHi @marysgarden,
Please follow these steps to determine if there is a theme/plugin conflict:
1. Switch your theme to Storefront.
2. Disable all plugins except WooCommerce.
3. Test if you are able to open the shipping page in the Admin screen.If the issue persists despite following the above steps, kindly share the following information for further investigation:
1. System Status: You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
2. Fatal Error Log: A copy of any fatal error log found under WooCommerce > System Status > Logs (if available).I hope this helps!
Forum: Plugins
In reply to: [WooCommerce] redundHi @joannaritsoni,
Please follow this documentation to refund an order in WooCommerce.
I hope this helps! Let us know if you have any questions.
- Use of the the function