jannis01
Forum Replies Created
-
Hello Peter,
thank you very much for your suggestions, i will enable the learning mode and see if that gives me any clues.
Best Regards
JT
Forum: Plugins
In reply to: [AVIF, WebP Converter] Excluded FoldersThank you & Regards
Forum: Plugins
In reply to: [AVIF, WebP Converter] Excluded FoldersRequested debug.zip sent
I’ve changed the code based on other online examples to:
/**
- ==================================================================================
- @snippet Disable Other Payment Gateways If Local Pickup Shipping Method Chosen
- ==================================================================================
*/
function gateway_disable_for_shipping_rate( $available_gateways ) {
if ( ! is_admin() && WC()->session ) {
$chosen_methods = WC()->session->get( ‘chosen_shipping_methods’ );
$chosen_shipping = $chosen_methods[0];
if ( isset( $available_gateways[‘cod’] ) && 0 === strpos( $chosen_shipping, ‘local_pickup’ ) ) {
unset( $available_gateways[‘cod’] );
}
if ( isset( $available_gateways[‘bacs’] ) && 0 === strpos( $chosen_shipping, ‘local_pickup’ ) ) {
unset( $available_gateways[‘bacs’] );
}
}
return $available_gateways;
}
add_filter( ‘woocommerce_available_payment_gateways’, ‘gateway_disable_for_shipping_rate’ );
and
/**
- ==================================================================================
- WooCommerce Disable Payment Gateway for a Specific Country
- ==================================================================================
*/
function ts_disable_payment_gateway_by_country($available_payment_gateways)
{
global $woocommerce;
if (is_admin()) return $available_payment_gateways;
if (WC()->customer && WC()->customer->get_billing_country() == ‘CY’) {
if (isset($available_payment_gateways[‘bacs’])) {
unset($available_payment_gateways[‘bacs’]);
}
if (isset($available_payment_gateways[‘cheque’])) {
unset($available_payment_gateways[‘cheque’]);
}
if (isset($available_payment_gateways[‘cod’])) {
unset($available_payment_gateways[‘cod’]);
}
}
return $available_payment_gateways;
}
add_filter(‘woocommerce_available_payment_gateways’, ‘ts_disable_payment_gateway_by_country’);
Hope that helps you out,
Cheers
Solved
Forum: Plugins
In reply to: [WP Fastest Cache] 403 ErrorAfter your hint about security entries, I’ve found the following lines in the .htaccess file that cause the issue.
# SOFTACULOUS Block .htaccess and .htpasswd <Files ~ "^.*\.([Hh][Tt])"> Require all denied </files> # SOFTACULOUS Block .htaccess and .htpasswd End
Not sure if it’s a good or bad thing to remove those
Forum: Plugins
In reply to: [WP Fastest Cache] 403 ErrorOk, will do, thank you very much for your time. We can close this for now.
Regards, JT
Forum: Plugins
In reply to: [WP Fastest Cache] 403 ErrorIndeed weird things happening. I’ve disabled the caching now for you to check again
Forum: Plugins
In reply to: [WP Fastest Cache] 403 ErrorYes, browsing works without an issue when cache is enabled. I can reproduce the same result as the tools mentioned above with:
curl -s -o /dev/null -I -w “%{http_code}” https://domain/
Gives back 403 when the cache is enabled and 200 when the cache is disabled. For today I’ll leave the cache enabled till either we can fix this or find a better caching solution.
Regards, JT
Hi & thanks for the reply,
the cause of this Product schema was the WP All Import – Rank Math SEO add-on, where “Product” and not “WooCommerce Product” as the schama type was selected.
https://snipboard.io/c5EMXB.jpg
I’ve selected the WooCommerce Product option now, but it seems that the previous inserted “Product” schema entries are not deleted during xml-import unless i delete them manually before the run, which is not an option for such an amount of products.
I suppose i’ll have to contact the WP All Import support to get a scripted solution on how to remove the “Product” schema entries in the description
Regards,
JTHi and thanks for the quick respond,
our products are being imported with an xml import from our wholesaler so not individual customizations are done to the product properties. We use the default RankMath schema settings, so that should be applied to all 5 thousand products automatically on import or not!?
https://snipboard.io/Qlm5Lo.jpg
https://snipboard.io/2GsZSM.jpgSo i’m little confused now..where do i find those options you pasted on the free plugin version?
Regards,
JTForum: Plugins
In reply to: [Optimize More! - CSS] CSS not appliedHi @aryadhiratara & tyvm for the update!
already installed and testing the plugin.
I’ve noticed that the article link in “Learn how to fully utilize this plugin in this article.” is a 404 ..no biggy..
Is there a way to configure a “if(!is_page(..))” in the Remove section? As an example i usually do a “don’t load contact-form7 if not the contact-us page-id”, or “do not load the stripe/paypal css/js if it’s not the checkout page”. This is more convenient than selectively putting in all page-IDs i want to remove the CSS/JS from.
I don’t really understand how to use of “Define Custom Pages ID” in the Extras section. One can already use custom page-IDs in all the other tabs.
Regards,
JTForum: Plugins
In reply to: [Optimize More! - CSS] CSS not appliedHi,
please count me in for the new plugin. Good job with this one sofar.
Regards,
JT- This reply was modified 2 years, 7 months ago by jannis01.
Forum: Plugins
In reply to: [Bulk remove posts from category] No longer working with WP 6.0I can verify this. Same issue here as well with WP v6.0
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Fatal errorHello,
thanks for the quick support, the new plugin version works and can be activated again.
Best Regards,
JT