haidermaa
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to disable COD Payment Method on a Particular User?Worked Perfectly!
Thank you so much!
Forum: Plugins
In reply to: [WooCommerce] How to disable COD Payment Method on a Particular User?Okay, i’m trying to disable one user with your code but i’m seeing this upon testing it.
This is code i used below.
add_filter( 'woocommerce_available_payment_gateways', 'custom_available_payment_gateways' ); function custom_available_payment_gateways( $gateways ) { $current_user_id = get_current_user_id(); if ( 24 == $current_user_id ) { unset( $gateways['cod'] ); } }
Am i doing it right?
Forum: Plugins
In reply to: [WooCommerce] How to disable COD Payment Method on a Particular User?So the complete code would be like this?
add_filter( 'woocommerce_available_payment_gateways', 'custom_available_payment_gateways' ); function custom_available_payment_gateways( $gateways ) { $current_user_id = get_current_user_id(); $bad_lad_id = 1; // user id for the customer who can't have COD if ( $bad_lad_id == $current_user_id ) { unset( $gateways['cod'] ); } if ( 7 == $current_user_id ) { unset( $gateways['cod'] ); } if ( 42 == $current_user_id ) { unset( $gateways['cod'] ); } if ( 80 == $current_user_id ) { unset( $gateways['cod'] ); } return $gateways; }
Correct?
Forum: Plugins
In reply to: [WooCommerce] How to disable COD Payment Method on a Particular User?That worked perfectly! Thank you so much!
But lets say i have multiple users whom i need to disable COD payment method for them. How can i do that?
Forum: Plugins
In reply to: [WooCommerce] How can i make the Product Image Sizes & Dimensions consistent?Thank you so much for your help! It works like a charm!
Forum: Plugins
In reply to: [WooCommerce] How can i make the Product Image Sizes & Dimensions consistent?Okay, unfortunately that CSS code wasn’t working well on mobile view. However, it worked perfectly on desktop view.
How can I make the CSS code to work only on Desktop View?
Forum: Plugins
In reply to: [WooCommerce] How can i make the Product Image Sizes & Dimensions consistent?Regarding to the other queries.
I have checked with the theme developer & they have this document here.
https://docs.drfuri.com/martfury/define-woocommerce-image-sizes/
I have changed the settings according to their recommendations but now some images are getting cropped.
Please see screenshots for your reference.
https://ibb.co/JdjyNfB
https://ibb.co/vHD0SH0How can i fix that?
Looking forward to your reply!
Sincerely,
Hayder
Forum: Plugins
In reply to: [WooCommerce] How can i make the Product Image Sizes & Dimensions consistent?Worked like a charm!
Thank you so much for your assistance!
Hello Rashed,
Thank you for your reply!
I will look into this.
Thank you so much for your assistance.
Sincerely,
Hayder
Works like a charm!
Thank you so much!
Hello!
Thank you for your reply!
I have managed to get this code using the guidelines on the link with your CSS code & i got this.
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 ); function wpo_wcpdf_custom_styles ( $document_type, $document ) { ?> .invoice td.header img { display: none !important; } } <?php }
Could please let me know if my code is correct?
Looking forward to your reply!
Sincerely,
Forum: Plugins
In reply to: [WooCommerce] Cannot Save VariationsHello @riaanknoetze
Thanks for your reply!
I have already opened a ticket & looking forward to a solution of this.
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Cannot Save VariationsHi!
Actually after several hours of debugging it was found that a plugin developed by WooCommerce called “Return & Warranty Requests” is causing this issue.
Even smaller number of variations didn’t work out either so I figured this could be caused by a plugin.
By deactivating the plug-in it seems that issue is resolved during which I understood that it’s caused by this plugin.
- This reply was modified 4 years, 2 months ago by haidermaa.
Lovely!
Thank you so much!
Forum: Plugins
In reply to: [SVG Support] My SVG Payment Logo doesn’t display correctlyWow!
Thank you so much! Really appreciate it.