bügelfrei
Forum Replies Created
-
Awesome, @annuman! Thank you!
I tested the workaround successfully.
Heads up anyone following in my footsteps to implement the workaround: When testing, don’t start from the Form #2 URL with the “+”; instead enter the plus-addressed email in Form #1. The fix works by encoding the “+” in the query string as “%2B”.
W3TC responded to a bug report I sent and they say that it should be fixed in a future release.
Hi @vmarko,
Versions 2.9.2 and 2.9.3 successfully authenticate with Cloudflare and successfully purge Cloudflare’s cache with my code modification in place.
I double-checked the installation on my live site just now by upgrading to 2.9.3 and testing the empty Cloudflare cache function (result: “Failed to purge Cloudflare cache: Improper API token / global key length”) and then I edited the code and retested and it worked (result: “Cloudflare cache successfully emptied.”).
FWIW, while I think the plugin code also needs to be fixed for General API Keys, my understanding is that it is preferable to create a use-specific API token in Cloudflare WordPress/W3TC (53 characters on both of my tests).
Thank you for your help!Thanks for responding, @vmarko.
I double-checked my Cloudflare account and re-confirmed that my global key is 52 characters, and then I created a second token just for W3TC and once again got a 53 character token.
So I went into Extension_CloudFlare_Api.php and changedif ( 40 === strlen( $this->_key ) ) { // CF API Token.to
if ( 53 === strlen( $this->_key ) ) { // CF API Token.and I was able to authorize Cloudflare. My subsequent tests confirmed that as long as I keep my modification in W3TC’s code, the plugin can purge Cloudflare’s cache for me.
Obviously this is going to break if the plugin is updated and no longer accepts 53 character CF API tokens.
Thanks for the speedy reply!
You can ignore the support request (same questions) that I sent via the 1 Team Software website. Obviously, it’s nicer to have the info here for anyone else wondering the same thing.
I’m eager to take the site I’m working on live, so thanks for your contribution!
Hi @mosesmedh,
Thanks for jumping in here.Could you please try clicking on the Shipping tax class setting and change it to “Based on cart items”? After saving the changes, let me know if the tax calculation at checkout updates correctly.
As long as this plugin (WooCommerce Tax) is enabled, the dropdown shows “Standard” and can’t be changed. Curiously, if I disable the plugin and reload the Tax tab in WC’s settings, the dropdown becomes editable and offers all the expected options, including “Based on cart items”. Unfortunately, even after saving the setting as “Based on cart items”, Shipping tax class will revert to standard once WooCommerce Tax is re-enabled.
This is unexpected, right?
I went through a cycle or two of disabling, deleting and reinstalling WooCommerce Tax to see if it made a difference, but it’s still the same. (The delete/reinstall cycle emptied the tax tables, so I assume it was a decent reset for the tax plugin.)
Also, I’d like to confirm whether your shipping methods are set as taxable. How were these shipping methods created, through WooCommerce’s default settings or using a third party shipping plugin?
Confirmed: my Media Mail shipping method (created via WC Settings > Shipping > Shipping zones > zone: “USA”) has Tax status = Taxable.
Additionally, I’m using a plugin (Multi-Carrier Shippo Shipping Rates & Address Validation for WooCommerce) to get other US and all international rates. I tested disabling this plugin just now with no effect on sales tax calculations.
Hi @ibrahimsharif,
Thanks for taking the time to write back. I did some testing and realized that the reason why configuring Fluent SMTP on the main site alone appeared to pass SMTP super powers to all subsites was that our multisite runs password reset requests via the main site. (Back when I initially configured the plugin, password reset emails were the only emails on my mind. I failed to notice that the “lost password” link always routed users to a URL at the main site.)
I tested per-site settings on a couple subsites, network-activated the plugin, and put together some PHP to distribute the subsite settings I had worked out to all subsites.
Along the way, I have come to appreciate the following features:- storing credentials in the config file (for easy distribution and password updates)
- the ability to configure multiple SMTP connections (use case: one email account for password resets, another account for forwarding contact form submissions, which may include spam)
- email logs!
All good now. Thanks!
I’m glad if I was able to help you find and fix an issue. Thank you for making the plugin!
PS. I’m pretty sure that I was also trying concatenate CSV columns in the WP core post_title field, e.g.,
{Date}: {City}: {Artist}from my CSV but the plugin would throw an alert to the effect of “Post Title is required”.I think your test is ambiguous because “post_title” and “ID” are both WP core fields as well as headers in your CSV. Without looking at your plugin’s code, my guess is that the core fields are getting “post_title” and “ID” values from the CSV and then header manipulation for the ACF field is manipulating the values from the WP core fields instead working directly with the values from the CSV.
Here’s a one-line sample from the data I was importing:
https://alexanderbailey.com/bb_use/gigpress-export-for-Ultimate-CSV-XML-Importer.csv
See if you can concatenate the address-related fields into a your ACF “text” field, for example:{Street}, {City} {State} {Postal code}Sorry if I’m being obtuse!
I did some more testing. Header manipulation works for me with WP Core Fields but doesn’t work with ACF fields. (If I recall correctly, ACF fields get saved after the post is saved and so content of the ACF fields might not be available in time for header manipulation?)
Hi @riswanasmack. Correct, I was using the free version.
It looks like you are using field names (e.g. “post_title”, “post_name”) when you do it in your screen recording rather instead of headers from the CSV.
In my scenario, I was importing a CSV which included “Street”, “City”, “State”, “Postal code”, “Country” headers, which I wanted to concatenate to a single ACF field “Address” when importing. I tried using things like “{Street}, {City} {State} {Postal code}, {Country}” but ended up with nothing in the ACF “Address” field after import.Maybe I could have made the address concatenation work during import if I had created extra ACF fields for each of the CSV columns and then used the field names for each field? I can see the value creating excess fields for a routine (repeating) import, however, I was just doing a one-time import to migrate data from an old (dead) plugin to an ACF-based solution.
Thanks @serafinnyc, but Variation Swatches (and the other swatch plugins I’ve looked at) still produce a single add-to-cart button with a selector to make it the button functional. The customer has a two-step process:
- click the desired variant (and maybe only then see its price)
- click “add to cart”
I’m looking for one add-to-cart button per variation, as in this screenshot from hand-coded shop that I’m replacing with a Woocommerce setup. All options are displayed with prices, eliminating step #1 above.

- This reply was modified 1 year, 1 month ago by bügelfrei.
In all fairness, I discovered FluentSMTP (and the trick) by way of this blog post: https://adityaarsharma.com/how-to-use-smtp-email-in-wordpress-multisite-globally/.
Of course, I skipped the network-activate and then network-deactivate steps (by accident, because following directions is not one of my strengths). So, now we know that there’s no need to network activate the plugin at all.Thanks again!
I found that the source of the problem is the standard WP function antispambot() which Complianz uses to encode emails.
I don’t blame you for (rightfully) expecting the function to provide useful obfuscation, but until WordPress overhauls the function it would be best to give users a way to skip antispambot().