Dat Hoang
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] non-numeric value encounteredHi,
Are you able to fix this issue?
I am not seeing any issue when adding a product/booking into your site cart:
Link to image: https://cld.wthms.co/uXo67s—-
If the issue is still there, we suggest running a conflict test to narrow down the possible problematic plugin/theme.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Forum: Plugins
In reply to: [WooCommerce] Product Import as CSV file Error, WHY?Hello,
The Sorry, this file type is not permitted for security reasons error message is in WordPress core https://github.com/WordPress/WordPress/search?q=this+file+type+is+not+permitted+for+security+reasons&unscoped_q=this+file+type+is+not+permitted+for+security+reasons, so this sounds like a conflict.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
—
Also, the similar issue exists on WP 5.0.1. Please make sure you’re using the latest versions of both WP and WooCommerce:
* https://core.trac.wordpress.org/ticket/45615
* https://github.com/woocommerce/woocommerce/issues/22208- This reply was modified 7 years, 1 month ago by Dat Hoang.
Forum: Plugins
In reply to: [WooCommerce] Cart vs mini-cart thumbnail filter problemHello,
Thanks for your suggestion. This is a reasonable request under my eyes.
It would be great to have you add your ideas to the [Ideas Board](http://ideas.woocommerce.com/forums/133476-woocommerce), which is where developers go to look for future plugin features and improvements.
—-
Reference for
woocommerce_cart_item_thumbnailin cart.php and mini-cart.php:- https://github.com/woocommerce/woocommerce/blob/e97204a483d8a58b29d9e3214eb9024975e0dd58/templates/cart/cart.php#L64
- https://github.com/woocommerce/woocommerce/blob/e97204a483d8a58b29d9e3214eb9024975e0dd58/templates/cart/mini-cart.php#L37
- This reply was modified 7 years, 1 month ago by Dat Hoang.
Hello,
I think you can try this code:
if ( is_product() && has_term( 'your_category', 'cable' ) ) { //do code }This is taken from https://docs.woocommerce.com/document/remov-product-content-based-on-category/
Forum: Plugins
In reply to: [WooCommerce] Error on new order emailThis kind of problem may be caused by either a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
—-
Could you please enable WP_Debug on your site and let us know if you see any errors?
You can read more about how to enable WP_Debug here:
http://codex.wordpress.org/Editing_wp-config.php#DebugHere are the basic steps:
1. Login to your site through FTP
2. Make a backup ofwp-config.php
3. Open this file and add the code below
4. Save and re-upload this fileFind this line of code:
define('WP_DEBUG', false);Change it be this:
// Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0);Once you’ve done that, try making that error happen again. You will find a
debug.logfile created in your/wp-content/folder – please send that to us so we can see what might be going on.—-
Similar errors (but got fixed in the latest version of WordPress core):
* https://github.com/wp-cli/wp-cli/issues/3374
* https://core.trac.wordpress.org/ticket/37736Forum: Plugins
In reply to: [WooCommerce] Remove status dropdownAh, using JavaScript is an interesting approach. If you do not mind, can you share the code for that?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce CSV ImporterHello,
The default WooCommerce Importer tool does not support variable products.
To import variable products, please consider using this premium plugin https://woocommerce.com/products/product-csv-import-suite/
Here is the guide https://docs.woocommerce.com/document/product-csv-import-suite-importing-product-variations/
Thanks for your additional info.
I can see the error by following the steps you mentioned:
Link to image: https://cld.wthms.co/YXg6TIThis kind of problem is usually caused by either a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Hello,
I’ve found a couple of snippets, which may help you:
https://wedevs.com/105501/disable-woocommerce-variable-product-price/
https://businessbloomer.com/disable-variable-product-price-range-woocommerce/
https://learnwoo.com/hide-price-range-woocommerce-variable-products/Please try it on your site. I hope that helps 🙂
Forum: Plugins
In reply to: [WooCommerce] How to change redirect link on Product PageHi,
You can try this snippet https://wordpress.org/support/topic/change-continue-shopping-redirect-not-working/
Forum: Plugins
In reply to: [WooCommerce] Google Console error ‘Missing field “price”‘Hi,
As far as I see, those pages are not really product pages. Therefore, you might not worry too much about that from Google Search Console.
But other people may have a better idea to help you 🙂
- This reply was modified 7 years, 1 month ago by Dat Hoang.
Forum: Plugins
In reply to: [WooCommerce] Shop Page – Page Attributes – Where are the Templates?Hi,
“Page Templates” are defined by your theme rather than WooCommerce itself.
We suggest checking out your theme documentation and support to get help regarding this issue.
Hello,
I think the issue you mentioned was really resolved here:
* https://github.com/woocommerce/woocommerce/issues/22896#issuecomment-477074896
Also, in the comment above, you can see that this may be an issue with your theme.
This kind of problem is usually caused by either a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Forum: Plugins
In reply to: [WooCommerce] Remove status dropdownHi,
I have found where the html for the dropdown is added in “class-wc-meta-box-order-data.php” but there doesn’t seem to be a hook to grab just that ouput.
You’re right. There is no hook or to change here:
If this is a hard requirement, you may work around by editing the core file directly (although this is recommended).
Forum: Plugins
In reply to: [WooCommerce] Problem with structured Data in WCHello Nico,
Thanks for your reply. I find the Excel file hard to interpret the information, so I am trying to use the tool provided by Google:
I am seeing like this:
Link to image: https://cld.wthms.co/zd5j0V1,
The brand field is recommended. Please provide a value if available. – this is recommended and it’s not a requirement. You can try using https://woocommerce.com/products/brands/ asbrandis not in the WooCommerce core by default.2,
This Product is missing a global identifier (e.g. isbn, mpn or gtin8). Please see documentation for valid identifiers. – this issue is being handled in
https://github.com/woocommerce/woocommerce/issues/22969