turnover2
Forum Replies Created
-
Thanks alot it was always great support from Webtoffee.
Forum: Plugins
In reply to: [WooCommerce] Add to cart button is not working on mobileThanks alot for your efforts its resolved
Forum: Plugins
In reply to: [YITH WooCommerce Subscription] Compatibility with currecy exchange ?Thanks
Until now there is no log error, I will write if any seen later – Thanks Hitendra
Forum: Themes and Templates
In reply to: [Storefront] side bar widgets in mobile viewThanks alot Saif would for sure rate the support here with 5 stars.
Please help me resolve this issue when Woo payments plugin is active receiving util.js:72 Google Maps JavaScript API warning: NoApiKeys
and so unable to save the page having shortcode related to API .
please advise
Hi again ,
Thanks for the brief explanation and support but unfortunately there was no effect with the below code.
add_action('wp_head', function() { ?> <script type="text/javascript"> jQuery(‘.single_add_to_cart_button.button.alt’).prev(‘.ajax_add_to_cart’).remove(); jQuery(‘.custom-checkout-btn’).prev(‘.button’).remove(); </script> <?php
I have also tried the code with JS snippet plugin individually, but there was no change on shop page or product page. Please advise.
Forum: Themes and Templates
In reply to: [Storefront] side bar widgets in mobile viewThanks for the reply, I understand the dislocated burger menu is not seen when mobile view opended from the browser but when same mobile view is seen from the mobile the dislocated menu has slided down. if in anycase you could position it back to the original position I would appreciate:)
https://sab1000.com/wp-content/uploads/2023/05/IMG_CB9E77545C63-1-scaled.jpeg
Forum: Plugins
In reply to: [WooCommerce] Mobile view delivery charges area showing codeThis was issue from other plugin and will be resolved this week after the plugin update Thanks anyway
<div id="payment" class="woocommerce-checkout-payment <?php echo custom_does_checkout_have_shipping_options() ? 'no-shipping' : ''?>"> <?php if ( WC()->cart->needs_payment() ) : ?>
Line 24 is in edited accordingly still the calling function is not accepted and after checking on staging site the plugin paypal payments doesnot need extra coding to hide the paypal button. Is there anyway you could further help me to hide the paypal button in your plugin Please advice how to proceed ?
Thanks one error is resolved , I can edited the page now no error shown when saving the page .
please suggest how to insert the JS in function.php of child theme to hide the button .
thanks but unfortunately the paypal button is not hidden on the condition, i would be grateful if you have a look on the steps below from my backend
child theme >> fun.php >> code added
//Hide checkout button if no shipping is available add_filter(‘woocommerce_order_button_html’, ‘hide_checkout_button__no_shipping_html’ ); function hide_checkout_button__no_shipping_html( $button ) { $package_counts = array(); $packages = WC()->shipping->get_packages(); foreach( $packages as $key => $pkg ) { $package_counts[ $key ] = count( $pkg[ ‘rates’ ] ); } if( in_array( 0, $package_counts ) ) { //no available shipping method $button = ”; } return $button; }
step 2. copied the file from path woocommerce/templates/checkoutpayment.php pasted to child theme/ woocommerce /payment.php – added the div class in child theme/ woocommerce /payment.php line 62
<div id="payment" class="woocommerce-checkout-payment <?php echo custom_does_checkout_have_shipping_options() ? 'no-shipping' : ''?>"> </div>
added css
.no-shipping .wc-ppcp-checkout-container{ display: none; }
please help me resolve this.
please suggest
I am using this code in fun.php
//Hide checkout button if no shipping is available add_filter('woocommerce_order_button_html', 'hide_checkout_button__no_shipping_html' ); function hide_checkout_button__no_shipping_html( $button ) { $package_counts = array(); $packages = WC()->shipping->get_packages(); foreach( $packages as $key => $pkg ) { $package_counts[ $key ] = count( $pkg[ 'rates' ] ); } if( in_array( 0, $package_counts ) ) { //no available shipping method $button = ''; } return $button; }
After your reply I could copy the payment.php fiel to Childtheme >>woocommerce >> payment.php and have added the css code in the custom css area in Dashboard >> Design >> Customiser >> CSS Please share the documentation how to add a custom CSS class to the html element with class?
woocommerce-checkout-payment
?when there are no shipping options.Do i need to paste the same above code in the payment.php also ?please advise
Hi thanks for the reply ,
Please have a look at checkout page , the paypal button is there itself at place order button but it needs to hide with the code as other buttons are hiding.
Please visit https://sab1000.com select a physical product in the cart >> select state berlin at checkout >> and have a look at order place buttons . From other payment options buttons hide except Payment plugins Paypal button ( also WPS paypal button hides ) please suggest how to hide Paypal button when no shipping is available.