Bernat Torras (a11n)
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Adding Custom Field to Additional InformationHi there,
Can you please confirm us if the custom field that you want to add to your product page is a field that your customers need to fill or if it’s just some text that you want to display there?
If it’s just a text, I’d suggest you to check this article to learn how to create a new product tab and add some content there: https://welaunch.io/en/2018/11/custom-woocommerce-product-tabs/
If you want an easier approach, you can also use the WooCommerce Tab Manager plugin to add custom tabs and informative fields there.
On the other hand, if you want to add a custom field that your customers need to use to add more details to the product when purchasing it (like adding a message to the product), the approach will be more complicated, as, apart from displaying this field, you’ll also need to add the required functionality to add it to the customer session when they add the product to the cart and to the order once it is generated (and you’ll probably want to display it on the backend too in the order editor page).
The easiest way to achieve all of this would be to use a plugin like Product Add-ons.
If you want to add these fields programmatically, I suggest you to take a look at articles like this one to get started.
Thanks,
Forum: Plugins
In reply to: [WooCommerce] Remove states from woocommerce shipping address onlyHi there,
As you say, the “woocommerce_states” filter is applied to both the billing and shipping states, as they’re all generated from the same function (WC()->countries->get_states( $country )).
Right now, there’s no way to change the shipping states without altering the billing ones or without changing WooCommerce’s core code.
If you think that this would be a good feature to add to our plugin, I’d suggest you to request it in our [suggestions area](http://ideas.woocommerce.com). We’re always interested in ways to make Subscriptions better, and the suggestions area is where you can submit ideas and vote on features you’d like to see added. We implement new features from this list based on popularity, so your input helps us tailor our development efforts to better serve you and all of our users. We greatly appreciate it!
Alternative, you could use a workaround like this to enable the shipping methods only for a specific states. All the states will still appear in the selector, but your customers will only be able to place the order when the specified ones are selected.
You can also add a note to the Checkout page to tell your customers that you only deliver your orders to these states.
I hope it helps!
Hi there!
If you have purchased a subscription (using WooCommerce Subscriptions) with PayPal Checkout with Reference Transactions enabled, you can certainly edit the billing agreement for this subscription. You just need to edit the subscription in WooCommerce>Subscriptions and click the edit (pencil) icon next to the customer billing details. There you’ll see PayPal Checkout as the chosen payment gateway and a field with the billing agreement just below. If you change this field, the subscription will use this new billing agreement for the next renewals.
Here you can find more details about how to edit an existing subscription: https://docs.woocommerce.com/document/subscriptions/add-or-modify-a-subscription/#section-10
I hope it helps!
Forum: Plugins
In reply to: [WooCommerce] Pages won’t open when woocommerce is active css doesn’t workHi there!
That is pretty odd, as by default, the WP_Tracker class should be included in WooCommerce and embedded when this file is being executed.
Can you please check if you’re using the latest version of WooCommerce?
Also, can you please try to deactivate and delete it from your Plugins page and install it again? I suspect that your current version of WooCommerce could be a bit corrupted (it could happen if the update or download process breaks) and some files could be missing…
If you download the latest version of the plugin and the issue persists, this will likely be caused by a conflict with your theme or with another plugin.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerce. Finally, test to see if the issue is resolved by checking if your site is displayed correctly.
To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
—–
Tools to help you troubleshoot:
– Meks Quick Plugin Disabler is a plugin you can install which will remember what plugins you currently have active so it’s easy to switch them back on. Link: https://wordpress.org/plugins/meks-quick-plugin-disabler/
– Health Check is a plugin that allows you to temporarily disable other plugins and switch themes for that session without impacting your users. Link: https://wordpress.org/plugins/health-check/
– You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Makes sidebar disappearHi Alex,
That’s pretty odd!
I understand that you’re using a multilingual plugin to add these languages to your site? If so, is English your primary site language or a secondary one? Maybe the problem is related to a bug in the multilingual plugin… Have you reached their support team to check it?
If not, I suspect that the issue could likely be caused by a conflict with your theme or with another plugin.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerce. Finally, test to see if the issue is resolved by browsing your site in English again.
To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
—–
Tools to help you troubleshoot:
– Meks Quick Plugin Disabler is a plugin you can install which will remember what plugins you currently have active so it’s easy to switch them back on. Link: https://wordpress.org/plugins/meks-quick-plugin-disabler/
– Health Check is a plugin that allows you to temporarily disable other plugins and switch themes for that session without impacting your users. Link: https://wordpress.org/plugins/health-check/
– You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/
Forum: Plugins
In reply to: [WooCommerce] woocommerce order gets updated for obvious reasonHi there!
That’s pretty odd! I suspect that some other plugin can be generating a compatibility conflict here, causing this unexpected automatic update.
Read more about plugin and theme conflicts in our [Self-Service Guide](https://docs.woocommerce.com/document/woocommerce-self-service-guide/).
This is likely caused by a conflict with your theme or with another plugin.
The best way to determine if the issue is being caused by a theme and/or plugin is to temporarily switch your theme to Storefront (https://woocommerce.com/storefront/?aff=10486&cid=1131038) and disable all plugins except for WooCommerce. Finally, test to see if the issue is resolved by opening an order from the backend again.
To figure out which plugin is causing the problem, continue to the next step – reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
Here’s a more extensive explanation in our docs: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
—–
Tools to help you troubleshoot:
– Meks Quick Plugin Disabler is a plugin you can install which will remember what plugins you currently have active so it’s easy to switch them back on. Link: https://wordpress.org/plugins/meks-quick-plugin-disabler/
– Health Check is a plugin that allows you to temporarily disable other plugins and switch themes for that session without impacting your users. Link: https://wordpress.org/plugins/health-check/
– You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/
Please give it a try and let us know if the issue is related to any of your other active plugins.
Hi there,
Is there an easy way to activate this so that the page that is displayed to customers is based on the attributes of the product they bought, rather than the product itself?
Can you please clarify to us what will happen if the customer purchases multiple products with different planting areas? Will they see all the related content in their My Account page as well?
In any case, I think that the best way to achieve it would be by using custom code. For examples, you could use a workaround like this one to create a custom tab/page in My Account and display the content that you want there.
In order to check the attributes that the customer selected when purchasing these products, you’ll need to get all the customer orders first (you can use wc_get_orders() function for this) and loop through all the order’s items to check the selected attribute/variation.
I hope it helps!
Forum: Plugins
In reply to: [WooCommerce] Attach PDF to confirmation email for specific productHi there!
I think that you could use a simpler approach using the “woocommerce_email_attachments” filter to add your PDF attachments to the default WooCommerce notification emails.
Here’s a tutorial and a Stackoverflow thread with more details:
– http://www.mbcreation.com/adding-email-attachments-in-woocommerce/
– https://stackoverflow.com/questions/41632921/woocommerce-email-attachmentAlso, please mind that there’s an official WooCommerce plugin designed for this same purpose: https://woocommerce.com/products/email-attachments/
I hope it helps!
Forum: Plugins
In reply to: [WooCommerce] set amountHi there!
Can you please provide us more details about what you want to achieve exactly? I tried to purchase 1000 units of that product in your site and I get them all added to the cart.
If what you’re asking for is to force your customers to select a min/max number of units or to increase the units by a multiplier (for example to only allow them to pucrhase 1000, 2000, 3000, etc units), you’ll need to use a customization or an additional plugin to achieve it.
For example, I’d suggest you to take a look at WooCommerce Min/Max Quantities plugin or to search for any alternatives in the official WordPress.org plugins repository.
I hope it helps!
Hi there!
That’s pretty odd! Especially if it only happens when placing the order with Stripe…
Have you tried to disable all your plugins (except WooCommerce and Stripe) to see if the issue persists? If it’s solved, it means that one of these deactivated plugins was generating a conflict with WooCommerce/Stripe. Enabling them one by one again and repeat the test will help you find the culprit!
Of course, check as well that you’re using the latest version of WooCommerce and Stripe plugins!
Let us know if the issue persists!
Thanks
Hi there,
In fact, it’s expected that the payment buttons are displayed in the Cart and Checkout pages even if the order total is $0, as otherwise, there wouldn’t be a way to complete the order.
Also, in some cases, like when using WooCommerce Subscriptions, Stripe needs to generate some required payment tokens (even if it’s for a free purchase) to identify the customer and its credit card in Stripe’s end and allow WooCommerce to request further payments for them automatically.
If I misunderstood the problem here, please provide us more details (and some screenshots) of the problem to make sure we’re all on the same page.
Thanks!
Hi Jin,
That’s pretty odd and I still suspect that some plugin or customization in your site is generating this conflict, as by default, the “payment_method” parameter shouldn’t be empty.
Can you also try to switch to a default WordPress theme to see if the issue persists? If it’s solved, I’d suggest you to check your theme’s functions.php file as there will be likely some customizations that alter the cart there.
Also, can you please check if you’re using the latest version of WooCommerce and Stripe?
Finally, if the issue persists, I’d suggest you to enable WordPress debug log functionality and check if any errors are logged in wp-content/debug.log file when replicating this issue.
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);Thanks so much!
Hi there,
Can’t you use the “Have a coupon” (https://cld.wthms.co/IGdlgV) functionality to apply a coupon to your cart?
If you need a different functionality to add your coupon or to discount your products directly, please provide us more details about your requirements and we’ll try to confirm you which are the alternatives.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Tax and Shipping based on multi currencyHi there,
By default, WooCommerce doesn’t support multicurrency and therefore, it isn’t possible to assign different taxes or shipping methods to products based on these currencies.
As far as I see it, the only way to achieve it would be to create some custom PHP code to apply different shipping methods or taxes to the products based on the current currency.
Another thing that you could check is Multilingualpress plugin. As it works on a multi-site approach, maybe you would be able to specify different product settings (taxes, shipping class, etc) for each site/currency.
I hope it helps!
Forum: Plugins
In reply to: [WooCommerce] E-mailed invoice ‘Pay for Order’ page: wrong payment methodHi there!
By default, when customers try to pay for an order from the Checkout page, they get all the available payment methods there.
The fact that you’ve selected a specific payment method when creating the order from the backend doesn’t exclude the rest of the payment methods to appear available in the Checkout page.
If you want to hide or show the payment gateways based on the customer or the order, you’ll need to use custom code or a plugin like “Conditional Shipping and Payments” to achieve it.
I hope it helps!