t1m0b
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Hide payment methods for local pick upHi,
Cash on delivery is active and set as enabled for shipping method “on local pickup”. So thats fine. What still the problem is, is that I want to hide the other payment gateways like paypal from local pickup.
The above Code was wrong, btw. It should not be cod, it should be paypal in it, like this:
add_filter( 'woocommerce_available_payment_gateways', 'bbloomer_gateway_disable_for_shipping_rate' ); function bbloomer_gateway_disable_for_shipping_rate( $available_gateways ) { if ( ! is_admin() ) { $chosen_methods = WC()->session->get( 'chosen_shipping_methods' ); $chosen_shipping = $chosen_methods[0]; if ( isset( $available_gateways['paypal'] ) && 0 === strpos( $chosen_shipping, 'local_pickup' ) ) { unset( $available_gateways['paypal'] ); } } return $available_gateways; }- This reply was modified 4 years, 4 months ago by t1m0b.
Forum: Plugins
In reply to: [WooCommerce] Hide payment methods for local pick upHi,
here is the screenshot (it’s german btw):
https://snipboard.io/fadV8g.jpg### WordPress Environment ### WordPress address (URL): https://shop.weinhaus-rieg.de Site address (URL): https://shop.weinhaus-rieg.de WC Version: 6.2.0 REST API Version: ✔ 6.2.0 WC Blocks Version: ✔ 6.7.3 Action Scheduler Version: ✔ 3.4.0 WC Admin Version: ✔ 3.1.0 Log Directory Writable: ✔ WP Version: 5.9 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: de_DE_formal External object cache: – ### Server Environment ### Server Info: nginx/1.21.3 PHP Version: 7.4.25 PHP Post Max Size: 128 MB PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 7.68.0 OpenSSL/1.1.1j SUHOSIN Installed: – MySQL Version: 5.5.5-10.5.12-MariaDB-1:10.5.12+maria~focal Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.2.0 WC Database Prefix: wp_ Datenbank-Gesamtgröße: 95.87MB Datenbank-Datengröße: 74.04MB Datenbank-Indexgröße: 21.83MB wp_woocommerce_sessions: Daten: 3.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.17MB + Engine InnoDB wp_woocommerce_order_items: Daten: 0.25MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_order_itemmeta: Daten: 2.52MB + Index: 3.03MB + Engine InnoDB wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Daten: 1.03MB + Index: 0.70MB + Engine InnoDB wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Daten: 0.41MB + Index: 0.33MB + Engine InnoDB wp_aepc_custom_audiences: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aepc_logs: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_berocket_termmeta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_braapf_product_stock_status_parent: Daten: 0.06MB + Index: 0.02MB + Engine InnoDB wp_braapf_product_variation_attributes: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_braapf_term_taxonomy_hierarchical: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_braapf_variable_attributes: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_braapf_variation_attributes: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cmplz_cookiebanners: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cmplz_cookies: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cmplz_services: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cmplz_statistics: Daten: 0.20MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Daten: 0.45MB + Index: 0.41MB + Engine InnoDB wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ms_snippets: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_image_storage: Daten: 0.09MB + Index: 0.02MB + Engine InnoDB wp_nextend2_section_storage: Daten: 0.02MB + Index: 0.25MB + Engine InnoDB wp_nextend2_smartslider3_generators: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nextend2_smartslider3_sliders: Daten: 1.52MB + Index: 0.03MB + Engine InnoDB wp_nextend2_smartslider3_sliders_xref: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nextend2_smartslider3_slides: Daten: 1.52MB + Index: 0.30MB + Engine InnoDB wp_options: Daten: 6.27MB + Index: 0.25MB + Engine InnoDB wp_postmeta: Daten: 23.52MB + Index: 8.84MB + Engine InnoDB wp_posts: Daten: 23.30MB + Index: 0.72MB + Engine InnoDB wp_sbi_instagram_feeds_posts: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_feed_locator: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_posts: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sib_model_forms: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_sib_model_users: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_smush_dir_images: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_snippets: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB wp_storeabill_documentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_documents: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_storeabill_document_itemmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_document_items: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_storeabill_document_noticemeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_storeabill_document_notices: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_storeabill_journals: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_termmeta: Daten: 0.19MB + Index: 0.23MB + Engine InnoDB wp_terms: Daten: 0.16MB + Index: 0.19MB + Engine InnoDB wp_term_relationships: Daten: 1.45MB + Index: 0.30MB + Engine InnoDB wp_term_taxonomy: Daten: 0.09MB + Index: 0.11MB + Engine InnoDB wp_tm_taskmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_tasks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_usermeta: Daten: 1.31MB + Index: 0.39MB + Engine InnoDB wp_users: Daten: 0.05MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Daten: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Daten: 0.09MB + Index: 0.06MB + Engine InnoDB wp_wc_download_log: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Daten: 0.22MB + Index: 0.27MB + Engine InnoDB wp_wc_order_stats: Daten: 0.11MB + Index: 0.08MB + Engine InnoDB wp_wc_order_tax_lookup: Daten: 0.06MB + Index: 0.06MB + Engine InnoDB wp_wc_product_meta_lookup: Daten: 0.14MB + Index: 0.28MB + Engine InnoDB wp_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_products: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_dhl_im_product_services: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gzd_packaging: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_packagingmeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipmentmeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_gzd_shipment_itemmeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipment_items: Daten: 0.02MB + Index: 0.13MB + Engine InnoDB wp_woocommerce_gzd_shipment_labelmeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_gzd_shipment_labels: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpmm_subscribers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wps_hit: Daten: 0.06MB + Index: 0.14MB + Engine InnoDB wp_wps_index: Daten: 1.52MB + Index: 0.98MB + Engine InnoDB wp_wps_key: Daten: 0.09MB + Index: 0.06MB + Engine InnoDB wp_wps_object_type: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wps_query: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wps_uri: Daten: 0.16MB + Index: 0.05MB + Engine InnoDB wp_wps_user_agent: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Daten: 2.52MB + Index: 1.20MB + Engine InnoDB wp_yoast_indexable_hierarchy: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 1422 bbfb_content: 1 br_filters_group: 1 br_labels: 4 br_product_filter: 8 cmplz-processing: 1 customize_changeset: 5 custom_css: 1 document_template: 8 gtw_custom_fields: 3 nav_menu_item: 46 oembed_cache: 1 page: 64 popup: 2 popup_theme: 8 post: 3 product: 918 product_variation: 17 revision: 976 shop_coupon: 8 shop_order: 725 sp_wps_shortcodes: 2 templatera: 3 vc4_templates: 22 wapl: 1 wcsf: 1 wcsf_inquiry: 70 wcsf_question: 4 wc_whsm: 2 wphb_minify_group: 2 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (34) ### Classic Widgets: von WordPress-Mitwirkende – 0.3 Code Snippets: von Code Snippets Pro – 2.14.3 Premium der Complianz Privacy Suite (GDPR / CCPA): von Really Simple Plugins – 6.1.0.1 Yoast Duplicate Post: von Enrico Battocchi & Team Yoast – 4.4 Enable Media Replace: von ShortPixel – 3.6.3 Envato Market: von Envato – 2.0.7 Facebook for WooCommerce: von Facebook – 2.6.9 GA Google Analytics: von Jeff Starr – 20220124 GetBowtied Tools: von GetBowtied – 2.3.2 HookMeUp – Additional Content for WooCommerce: von GetBowtied – 1.3.5 OMGF Pro: von Daan from FFW.Press – 3.2.2 OMGF: von Daan from FFW.Press – 4.6.0 WPBakery Page Builder: von Michael M - WPBakery.com – 6.4.1 Loco Translate: von Tim Whitlock – 2.5.8 Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: von Sendinblue – 3.1.34 Minimum Age for WooCommerce: von WebAware – 1.0.16 PixelYourSite: von PixelYourSite – 8.2.16 Popup Maker: von Popup Maker – 1.16.4 Shopkeeper Extender: von GetBowtied – 1.6.9 Shopkeeper Portfolio Addon: von GetBowtied – 1.3.5 Templatera: von WPBakery – 2.0.4 Vendidero Helper: von Vendidero – 2.1.3 Product Slider Pro for WooCommerce: von ShapedPlugin – 2.7.4 WooCommerce Advanced Product Labels: von BeRocket – 3.2.4.9 WooCommerce AJAX Products Filter: von BeRocket – 3.1.1.5 WooCommerce Checkout Add-Ons: von SkyVerge – 2.5.6 Sofort payment gateway: von Sven Wagener – 1.4.9 Germanized für WooCommerce Pro: von vendidero – 3.4.1 Germanized für WooCommerce: von vendidero – 3.8.3 WooCommerce: von Automattic – 6.2.0 WordPress Importer: von wordpressdotorg – 0.7 WP Maintenance Mode & Coming Soon: von Themeisle – 2.4.4 WPS Hide Login: von WPServeur NicolasKulka wpformation – 1.9.3 Custom Product Tabs for WooCommerce: von YIKES Inc. – 1.7.7 ### Inactive Plugins (5) ### Hide Shipping Method For WooCommerce Pro: von theDotstore – 1.2.0 Smart Slider 3: von Nextend – 3.5.1.3 Smash Balloon Instagram Feed: von Smash Balloon – 6.0.3 WooCommerce Step Filter: von [email protected] – 7.10.0 Woo Payment Discounts: von WPCodelibrary – 1.3.0 ### Must Use Plugins (1) ### Kinsta Must-use Plugins: von Kinsta Team – 2.3.4 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ ### WC Pages ### Shop-Basis: #34 - /shop/ Warenkorb: #1722 - /warenkorb/ Kasse: #1723 - /kasse/ Mein Konto: #1724 - /mein-konto/ Allgemeine Geschäftsbedingungen: #1218 - /agb/ ### Theme ### Name: Shopkeeper Version: 2.9.40 Author URL: https://www.getbowtied.com/ Child Theme: ❌ – Wenn Sie WooCommerce mit einem Theme das Sie nicht selbst entwickelt haben an eigene Bedürfnisse anpassen dann empfehlen wir die Verwendung eines Child-Themes. Siehe Wie Sie ein Child-Theme erstellen (engl.) WooCommerce Support: ✔ ### Templates ### Overrides: shopkeeper/woocommerce/archive-product.php shopkeeper/woocommerce/checkout/form-coupon.php shopkeeper/woocommerce/checkout/form-login.php shopkeeper/woocommerce/content-product.php shopkeeper/woocommerce/content-single-product.php shopkeeper/woocommerce/global/quantity-input.php shopkeeper/woocommerce/global/sidebar.php shopkeeper/woocommerce/global/wrapper-end.php shopkeeper/woocommerce/global/wrapper-start.php shopkeeper/woocommerce/myaccount/form-login.php shopkeeper/woocommerce/single-product/add-to-cart/simple.php shopkeeper/woocommerce/single-product/product-image.php shopkeeper/woocommerce/single-product/product-thumbnails.php shopkeeper/woocommerce/single-product/tabs/tabs.php shopkeeper/woocommerce/single-product.php ### Action Scheduler ### Abgeschlossen: 1.664 Oldest: 2022-01-17 15:07:33 +0000 Newest: 2022-02-17 13:15:14 +0000 Fehlgeschlagen: 21 Oldest: 2020-12-05 11:38:57 +0000 Newest: 2020-12-10 09:30:16 +0000 Ausstehend: 5 Oldest: 2022-02-18 04:09:42 +0000 Newest: 2022-02-18 13:15:14 +0000 ### Status report information ### Generated at: 2022-02-17 14:30:16 +01:00Forum: Plugins
In reply to: [Hide Shipping Method For WooCommerce] Shipping is missing after voucherOK, thanks. That answered my questions.
Forum: Plugins
In reply to: [Hide Shipping Method For WooCommerce] Shipping is missing after voucherHi Hitendra,
so for the “Cart Subtotal(After Discount)” rule I need the PRO version, right?
Regards,
TimoThanks, looks good!
Great! It works. Thank you.
But I have one more thing. Is it possible to position the image in the center? Now its position is on the left side.Hi.
Unfortunately this option doesnt make any difference (and I already used this option). Thumbnails with 3:4 (portrait) or 4:4 (square) dimensions are still cut at the bottom.
But I need to show the complete height of the images. Do you know what I mean?
Regards
Timo