Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter yuihongs

    (@yuihongs)

    after click these backend page,

    it shows whole white page

    Thread Starter yuihongs

    (@yuihongs)

    i fixed it
    i added below code at public function should_show_payment_request_button()

    $product_id   = isset( $_POST['product_id'] ) ? absint( $_POST['product_id'] ) : false;
    			$product      = wc_get_product( $product_id );
    			$variationsstock=0;
    			if ( 'variable' === $product->get_type() || 'variable-subscription' === $product->get_type()) {
    				$variations = $product->get_available_variations();
    
        foreach($variations as $variation){
             $variation_id = $variation['variation_id'];
             $variation_obj = new WC_Product_variation($variation_id);
             $variationsstock = $variationsstock + $variation_obj->get_stock_quantity();}
    				if ( $this->is_product() &&  $variationsstock==0 ) {
    					return false;
    				}
    			
    			}
    Thread Starter yuihongs

    (@yuihongs)

    any other way?

    the server is default 8

    Thread Starter yuihongs

    (@yuihongs)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://sicbee.com
    Site address (URL): https://sicbee.com
    WC Version: 6.8.0
    REST API Version: ✔ 6.8.0
    WC Blocks Version: ✔ 8.0.0
    Action Scheduler Version: ✔ 3.4.0
    Log Directory Writable: ✔
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.21.5
    PHP Version: 8.0.22
    PHP Post Max Size: 128 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.68.0
    OpenSSL/1.1.1f
    
    SUHOSIN Installed: –
    MySQL Version: 10.5.17-MariaDB-1:10.5.17+maria~ubu2004
    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.8.0
    WC Database Prefix: wp_
    Total Database Size: 27.14MB
    Database Data Size: 16.78MB
    Database Index Size: 10.36MB
    wp_woocommerce_sessions: Data: 2.50MB + Index: 0.08MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_db7_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB
    wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 6.02MB + Index: 0.13MB + Engine InnoDB
    wp_postmeta: Data: 2.50MB + Index: 0.44MB + Engine InnoDB
    wp_posts: Data: 3.28MB + Index: 0.13MB + Engine InnoDB
    wp_rio_process_queue: Data: 0.08MB + Index: 0.08MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_viwec_clicked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpf_filters: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wpf_meta_data: Data: 0.05MB + Index: 0.08MB + Engine InnoDB
    wp_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpf_meta_values: Data: 0.02MB + Index: 7.22MB + Engine InnoDB
    wp_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpr_rucss_resources: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_wt_iew_action_history: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.33MB + Index: 0.27MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 262
    customize_changeset: 24
    elementor_library: 1
    mc4wp-form: 2
    nav_menu_item: 62
    page: 23
    post: 20
    product: 37
    product_variation: 27
    revision: 83
    shop_coupon: 1
    shop_order: 3
    shop_order_refund: 1
    staticblocks: 23
    vc_grid_item: 1
    viwec_template: 14
    wp_global_styles: 1
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (20) ###
    
    Contact Form 7: by Takayuki Miyoshi – 5.6.2
    Contact Form CFDB7: by Arshid – 1.2.6.4
    XStore Core: by 8theme – 4.3.1
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.9.0
    Robin image optimizer: by Creative Motion  – 1.5.6
    WooCommerce Estimated Shipping Date Per Product: by Magerips – 4.8
    WooCommerce Infinite Scroll and Ajax Pagination: by sbthemes – 1.6.2
    ShipAny: by ShipAny – 1.0.54
    Temporary Login Without Password: by StoreApps – 1.7.5
    YellowPencil Pro: by WaspThemes – 7.5.7
    Product Filter by WooBeWoo: by WooBeWoo – 2.1.7
    WooCommerce Payments: by Automattic – 4.6.0
    WooCommerce Product CSV Import Suite: by WooCommerce – 1.10.49
    WooCommerce: by Automattic – 6.8.1 (update to version 6.8.2 is available)
    Woo Product Filter PRO: by WooBeWoo – 2.1.1
    Yoast SEO: by Team Yoast – 19.5.1
    WP Rocket: by WP Media – 3.11.5
    WPS Hide Login: by WPServeur
    NicolasKulka
    wpformation – 1.9.6
    
    GMAPS for WPBakery Page Builder (Visual Composer): by WWP – 1.7
    YITH WooCommerce Wishlist: by YITH – 3.12.0
    
    ### Inactive Plugins (1) ###
    
    Akismet Anti-Spam: by Automattic – 4.2.5
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    Kinsta Must-use Plugins: by Kinsta Team – 2.4.8
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: HKD (HK$)
    Currency Position: left
    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: –
    Enforce Approved Product Download Directories: ✔
    
    ### WC Pages ###
    
    Shop base: #14 - /shop/
    Cart: #15 - /cart/
    Checkout: #16 - /checkout/
    My account: #17 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: SICBEE
    Version: 1.0
    Author URL: http://8theme.com
    Child Theme: ✔
    Parent Theme Name: XStore
    Parent Theme Version: 8.3.1
    Parent Theme Author URL: http://www.8theme.com
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: xstore/woocommerce/archive-product.php
    xstore/woocommerce/cart/cart-empty.php
    xstore/woocommerce/cart/cart-item-data.php
    xstore/woocommerce/cart/cart-shipping.php
    xstore/woocommerce/cart/cart.php
    xstore/woocommerce/cart/cross-sells.php
    xstore/woocommerce/cart/mini-cart.php
    xstore/woocommerce/cart/proceed-to-checkout-button.php
    xstore/woocommerce/checkout/form-billing.php
    xstore/woocommerce/checkout/form-checkout.php
    xstore/woocommerce/checkout/form-shipping.php
    xstore/woocommerce/checkout/review-order.php
    xstore/woocommerce/checkout/thankyou.php
    xstore/woocommerce/content-product-cat.php
    xstore/woocommerce/content-product.php
    xstore/woocommerce/content-single-product.php
    xstore/woocommerce/content-widget-product.php
    xstore/woocommerce/content-widget-reviews.php
    xstore/woocommerce/global/breadcrumb.php
    xstore/woocommerce/global/form-login.php
    xstore/woocommerce/global/wrapper-end.php
    xstore/woocommerce/global/wrapper-start.php
    xstore/woocommerce/loop/loop-end.php
    xstore/woocommerce/loop/loop-start.php
    xstore/woocommerce/loop/no-products-found.php
    xstore/woocommerce/loop/result-count.php
    xstore/woocommerce/myaccount/dashboard.php
    xstore/woocommerce/myaccount/form-login.php
    xstore/woocommerce/myaccount/navigation.php
    xstore/woocommerce/single-product/add-to-cart/simple.php
    xstore/woocommerce/single-product/meta.php
    xstore/woocommerce/single-product/product-image.php
    xstore/woocommerce/single-product/related.php
    xstore/woocommerce/single-product/tabs/tabs.php
    xstore/woocommerce/single-product/title.php
    xstore/woocommerce/single-product/up-sells.php
    xstore/woocommerce/single-product.php
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page
    
    Disabled Features: minified-js
    settings
    
    Daily Cron: ✔ Next scheduled: 2022-08-25 07:47:50 +00:00
    Options: ✔
    Notes: 50
    Onboarding: completed
    
    ### WooCommerce Payments ###
    
    Version: 4.6.0
    Connected to WPCOM: Yes
    Blog ID: 209882971
    Account ID: acct_1LZWVm2EEYBnJ7Us
    
    ### Action Scheduler ###
    
    Complete: 228
    Oldest: 2022-08-21 07:49:16 +0000
    Newest: 2022-08-25 06:43:50 +0000
    
    Pending: 1
    Oldest: 2022-08-25 07:48:13 +0000
    Newest: 2022-08-25 07:48:13 +0000
    
    ### Status report information ###
    
    Generated at: 2022-08-25 06:45:10 +00:00
    
    Thread Starter yuihongs

    (@yuihongs)

    it seems apple pay and google pay function, when i enabled at product page, it show error

Viewing 5 replies - 1 through 5 (of 5 total)