Title: turnover2's Replies | WordPress.org

---

# turnover2

  [  ](https://wordpress.org/support/users/turnover2/)

 *   [Profile](https://wordpress.org/support/users/turnover2/)
 *   [Topics Started](https://wordpress.org/support/users/turnover2/topics/)
 *   [Replies Created](https://wordpress.org/support/users/turnover2/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/turnover2/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/turnover2/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/turnover2/engagements/)
 *   [Favorites](https://wordpress.org/support/users/turnover2/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/users/turnover2/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/turnover2/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebToffee WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels] error on thank you page](https://wordpress.org/support/topic/error-on-thank-you-page-3/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/error-on-thank-you-page-3/#post-16778892)
 * Thanks alot it was always great support from Webtoffee.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Add to cart button is not working on mobile](https://wordpress.org/support/topic/add-to-cart-button-is-not-working-on-mobile/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/add-to-cart-button-is-not-working-on-mobile/#post-16775106)
 * Thanks alot for your efforts its resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Subscription] Compatibility with currecy exchange ?](https://wordpress.org/support/topic/compatibility-with-currecy-exchange/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/compatibility-with-currecy-exchange/#post-16775103)
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Digital Goods for WooCommerce Checkout] No need of two buttons on products page](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/#post-16772611)
 * Until now there is no log error, I will write if any seen later – Thanks Hitendra
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] side bar widgets in mobile view](https://wordpress.org/support/topic/side-bar-widgets-in-mobile-view/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/side-bar-widgets-in-mobile-view/#post-16772222)
 * Thanks alot Saif would for sure rate the support here with 5 stars.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooPayments: Integrated WooCommerce Payments] Problem saving APIs with plugin](https://wordpress.org/support/topic/problem-saving-apis-with-plugin/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/problem-saving-apis-with-plugin/#post-16769248)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Digital Goods for WooCommerce Checkout] No need of two buttons on products page](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/#post-16766398)
 * Hi again ,
 * Thanks for the brief explanation and support but unfortunately there was no effect
   with the below code.
 *     ```wp-block-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](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] side bar widgets in mobile view](https://wordpress.org/support/topic/side-bar-widgets-in-mobile-view/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/side-bar-widgets-in-mobile-view/#post-16765431)
 * Thanks 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](https://sab1000.com/wp-content/uploads/2023/05/IMG_CB9E77545C63-1-scaled.jpeg)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Mobile view delivery charges area showing code](https://wordpress.org/support/topic/mobile-view-delivery-charges-area-showing-code/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/mobile-view-delivery-charges-area-showing-code/#post-16759262)
 * This was issue from other plugin and will be resolved this week after the plugin
   update Thanks anyway
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Plugins for PayPal WooCommerce] hide paypal button when no shipping available](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/#post-16758563)
 *     ```wp-block-code
       <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 ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Digital Goods for WooCommerce Checkout] No need of two buttons on products page](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/#post-16757917)
 * 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 .
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Plugins for PayPal WooCommerce] hide paypal button when no shipping available](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/#post-16757659)
 * 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
 *     ```wp-block-code
       <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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Digital Goods for WooCommerce Checkout] No need of two buttons on products page](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/no-need-of-two-buttons-on-products-page/#post-16756070)
 * please suggest
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Plugins for PayPal WooCommerce] hide paypal button when no shipping available](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/#post-16756061)
 * I am using this code in fun.php
 *     ```wp-block-code
       //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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Plugins for PayPal WooCommerce] hide paypal button when no shipping available](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/)
 *  Thread Starter [turnover2](https://wordpress.org/support/users/turnover2/)
 * (@turnover2)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/hide-paypal-button-when-no-shipping-available/#post-16756022)
 * 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](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.

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/users/turnover2/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/turnover2/replies/page/2/?output_format=md)