Moses M. (woo-hc)
Forum Replies Created
-
Hi @weblex,
Thank you for sharing the report. Could you also provide screenshots of the order notes for both the original and duplicate orders? You can upload the screenshots to your site, copy the link, and use the
/image
block here to add the images to this thread.In addition to this please enable debug mode by changing
define('WP_DEBUG', false);
todefine('WP_DEBUG', true);
in yourwp-config.php
and also add the codes below to wp-config.php to log the data.define('WP_DEBUG_LOG', true); // Logs errors to a debug.log file in wp-content
define('WP_DEBUG_DISPLAY', false); // Hides errors on the frontendOnce you share the screenshots, I’ll review them. We’ll also need to wait a few days for the debug log to collect data after the issue occurs again.
- This reply was modified 1 month, 3 weeks ago by Moses M. (woo-hc).
Forum: Plugins
In reply to: [WooCommerce] translation problem,Hi @jkriester ,
To clarify, the languages shown in the screenshot represent the available options, not necessarily the installed language packs. When you select or change a language, the corresponding WooCommerce language pack is usually made available for update under Dashboard > Updates > Translation.
To address the issue, try switching the language back to English, saving the settings, and then switching to Dutch again. Save the settings once more, then go to Dashboard > Updates, scroll down to the translation section, and check if a language pack update is available.
Forum: Plugins
In reply to: [WooCommerce] Problem with translation Shipping in Order pageHi @xavierdeysine ,
Thank you for sharing the image. To resolve the issue, can you try clearing your website and browser cache as I can see other instances of the word got translated.
If the issue persist, you can reference this guide on how to translate WooCommerce for further solution
Forum: Plugins
In reply to: [WooCommerce] Losing Units of the Products after Woocommerce UpdateHi @kaschwei ,
I don’t think I understand what you’re referring to. Can you share an image for better understanding or do a screen record using loom?
Forum: Plugins
In reply to: [WooCommerce] Problem with translation Shipping in Order pageHi @xavierdeysine ,
You can share an image directly in the thread by first taking the screenshot, uploading the screenshot to your sit, copy the link and then use /image to insert the link in the image block.
Alternatively you can use https://imgur.com/ or https://imgbb.com/ to share the image.
Forum: Plugins
In reply to: [WooCommerce] Losing Units of the Products after Woocommerce UpdateHi @kaschwei,
I understand it must have been frustrating having such experience after updating your Woocommerce plugin.
To further understand what you’re referring to, do you mean the ‘Weight(kg)’ field in the shipping tab of each product has been wiped like below?
Forum: Plugins
In reply to: [WooCommerce] translation problem,Hi @jkriester,
Thanks for providing more details about the issue.
When you change your dashboard language, you might need to prompt WordPress to install the WooCommerce language pack for the selected language.
To do this, go to Dashboard > Updates in your site’s admin area. Scroll to the bottom and update the translation pack.
This will install and update the WooCommerce language pack for the chosen language.
Forum: Plugins
In reply to: [WooCommerce] Function _load_textdomain_just_in_time was called incorrectlyHi @rankmarket,
I understand it must have been quite unpleasant seeing errors like this on your website and I understand how concerning this can be.
This was a known bug that was reported here and has since been solved. To make the error go away, please update your WordPress, Woocommerce, and all other plugins you have on your website.
Though the error is not a threat and you’re seeing it only because of you have debug mode enabled which is not advisable for a live site. In addition to updating WordPress, your theme and your plugins, you can set
define('WP_DEBUB', true); and define('WP_DEBUG_DISPLAY', true);
to false.Forum: Plugins
In reply to: [WooCommerce Square] Zip Code Field Not DisplayingHi @avagolf,
Thank you for providing the video that highlights the differences between the behavior on your live site and staging site.
Based on the video, the HTML you shared, and the discussion so far, this appears to be a plugin conflict on the live site.
To investigate further, try disabling WP Rocket on the live site and test again, as the issue doesn’t occur on your staging site where WP Rocket isn’t installed.
If the issue persists after disabling WP Rocket, you’ll need to check for conflicts with other plugins. You can do this by disabling each plugin one at a time and testing the zip code box after each deactivation to determine if a specific plugin is causing the issue.
Looking forward to hearing back from you with your findings.
- This reply was modified 1 month, 4 weeks ago by Moses M. (woo-hc).
Forum: Plugins
In reply to: [WooCommerce] $product populated new version different?Hi @harm10,
I’m glad you were able to find a solution by getting the product info yourself using
wc_get_product(get_the_ID());
.About wp_head working before WP 6.7.1 and WC 9.5.1 for populating $product, there are various ways on how to go about it and an update can alter different approach. Below is another approach which still makes use of wp_head with a combination of wc_get_product by ID.
// gets the product data in the header
add_action( 'wp_head', 'get_product_data' );
function get_product_data() {
// only on the product page
if ( ! is_product() ) {
return;
}
// gets the product object
$product = wc_get_product( get_the_ID() );
?>
HTML CODE HERE
<?phpIf you feel this is a bug, you can report it on github.
Forum: Plugins
In reply to: [WooCommerce] $product populated new version different?Hi @harm10,
The method explained above indeed fires after the product content is displayed on the page, while it ensures the $product object is fully populated, it may not be suitable for adding meta tags to the<head>
section if that is what you’re referring to as header, as it executes too late in the rendering process.By the time this hook runs, the
<head>
section is already rendered, so the meta tags will not appear where they need to be.An alternative to this is to use a combination of
wp and wp_head
. Below is an example:add_action( 'wp', 'populate_product_meta_for_header' );
function populate_product_meta_for_header() {
// Ensure we are on a single product page
if ( is_product() ) {
// Add the meta tag to the wp_head hook
add_action( 'wp_head', 'add_product_weight_meta' );
}
}
function add_product_weight_meta() {
global $product;
// Double-check if $product is available
if ( ! empty( $product ) ) {
echo '<meta itemprop="weight" content="' . esc_attr( $product->get_weight() ) . '" />';
}
}You can try both methods to see which one works for you. Please note that providing code support beyond this is outside support scope of the forum. If you’re still having this issue, it’ll be better to seek professional help from codeable.io or use https://jobs.wordpress.net/
I can see your website has a number of customizations. Could you please disable all the plugins on your site and switch to the Storefront theme so we can conduct further checks and conflict test?
Once you’ve done that, please let me know.
Forum: Plugins
In reply to: [WooCommerce] sell courses using offline voucher codes via WooCommerceHi @drmustafa1,
Thank you for explaining your goals in detail. To assist you better, could you share more about how your site and courses are set up?
- Which plugin are you using to manage and sell your courses?
- Is it integrated with WooCommerce, or does it have its own system?
- Does your checkout process use WooCommerce’s checkout, or does the LMS plugin have a custom checkout flow?
These details will help me recommend the best approach.
If you’re planning to sell courses directly through WooCommerce without using a third-party plugin (e.g., selling them as downloadable products), you can easily create various types of coupons within WooCommerce.
For instance, you can create a coupon that provides a 100% discount at checkout. You can then distribute this code offline as a voucher. You can find more details about this functionality here and here.
Forum: Plugins
In reply to: [Pinterest for WooCommerce] two feeds are createdHi @ducto333,
Thank you for sharing your site’s System Status Report. After reviewing it, I noticed that you have two Pinterest-related plugins installed: ‘Pinterest Automatic Pin Plugin‘ by Vavlepress and ‘Pinterest for WooCommerce.’
To rule out any potential conflicts between them, could you try deactivating the ‘Pinterest Automatic Pin Plugin’ and check if the issue is resolved?
Forum: Plugins
In reply to: [WooCommerce] downloadable productHi @vahid2451,
I’m glad you were able to get it done using a custom field and thank you for sharing the procedure here as it can help others in the future.
Kudos.