• tobiasz95

    (@tobiasz95)


    I have a problem with the price change and the drop down addon option on mobile devices. The situation is as follows: I have added to functions.php

    if ( ! function_exists( ‘yith_wapo_custom_product_price_class’ ) ) {
    add_filter( ‘yith_wapo_replace_product_price_class’, ‘yith_wapo_custom_product_price_class’, 20 );
    function yith_wapo_custom_product_price_class( $price_class ) {
    $price_class .= ‘ , .product .product-price-container .product-page-price’;
    return $price_class;
    }
    }

    on the desktop the price of the product changes as additional fields are selected and additional features are displayed when customize is selected. The problem is only on mobile devices i use Theme: Flatsome child. On default theme Twenty Twenty-Two mobile addon work good.

    ` WordPress Environment
    
    WordPress address (URL): https://canvascale.com
    Site address (URL): https://canvascale.com
    WC Version: 8.7.0
    REST API Version: ? 8.7.0
    Action Scheduler Version: ? 3.7.2
    Log Directory Writable: ?
    WP Version: 6.4.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: – Server Environment
    
    Server Info: Apache
    PHP Version: 8.2.10
    PHP Post Max Size: 130 MB
    PHP Time Limit: 165
    PHP Max Input Vars: 16000
    cURL Version: 7.64.0
    OpenSSL/1.1.1n
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.42-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ? Database
    
    WC Database Version: 8.7.0
    WC Database Prefix: mod434_
    Ca?kowity rozmiar bazy danych: 8.46MB
    Rozmiar bazy danych: 6.34MB
    Rozmiar indeksu bazy danych: 2.12MB
    mod434_woocommerce_sessions: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_woocommerce_api_keys: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_woocommerce_attribute_taxonomies: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_woocommerce_downloadable_product_permissions: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_woocommerce_order_items: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_woocommerce_order_itemmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_woocommerce_tax_rates: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_woocommerce_tax_rate_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_woocommerce_shipping_zones: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_woocommerce_shipping_zone_locations: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_woocommerce_shipping_zone_methods: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_woocommerce_payment_tokens: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_woocommerce_payment_tokenmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_woocommerce_log: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_actionscheduler_actions: Dane: 0.14MB + Indeks: 0.16MB + Silnik InnoDB
    mod434_actionscheduler_claims: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_actionscheduler_groups: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_actionscheduler_logs: Dane: 0.11MB + Indeks: 0.09MB + Silnik InnoDB
    mod434_commentmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_comments: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB
    mod434_jetpack_sync_queue: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_options: Dane: 4.30MB + Indeks: 0.09MB + Silnik InnoDB
    mod434_postmeta: Dane: 0.17MB + Indeks: 0.14MB + Silnik InnoDB
    mod434_posts: Dane: 0.45MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_rank_math_404_logs: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_rank_math_internal_links: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_rank_math_internal_meta: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_rank_math_redirections: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_rank_math_redirections_cache: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_termmeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_terms: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_term_relationships: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_term_taxonomy: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_usermeta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_users: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    mod434_wc_admin_notes: Dane: 0.05MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_wc_admin_note_actions: Dane: 0.06MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_wc_category_lookup: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_wc_customer_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_download_log: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_orders: Dane: 0.02MB + Indeks: 0.11MB + Silnik InnoDB
    mod434_wc_orders_meta: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_order_addresses: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_wc_order_coupon_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_order_operational_data: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_order_product_lookup: Dane: 0.02MB + Indeks: 0.06MB + Silnik InnoDB
    mod434_wc_order_stats: Dane: 0.02MB + Indeks: 0.05MB + Silnik InnoDB
    mod434_wc_order_tax_lookup: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_wc_product_attributes_lookup: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_wc_product_download_directories: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_wc_product_meta_lookup: Dane: 0.02MB + Indeks: 0.09MB + Silnik InnoDB
    mod434_wc_rate_limits: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_wc_reserved_stock: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_wc_tax_rate_classes: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_wc_webhooks: Dane: 0.02MB + Indeks: 0.02MB + Silnik InnoDB
    mod434_yith_wapo_addons: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_yith_wapo_blocks: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB
    mod434_yith_wapo_blocks_assoc: Dane: 0.02MB + Indeks: 0.03MB + Silnik InnoDB
    mod434_yith_wccl_meta: Dane: 0.02MB + Indeks: 0.00MB + Silnik InnoDB Post Type Counts
    
    attachment: 31
    blocks: 10
    custom_css: 3
    customize_changeset: 8
    featured_item: 8
    global_product_addon: 1
    nav_menu_item: 7
    oembed_cache: 3
    page: 11
    post: 3
    product: 4
    product_variation: 40
    revision: 5
    wp_global_styles: 4
    wp_navigation: 1
    wp_template: 2 Security
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ? Active Plugins (2)
    
    WooCommerce: przez Automattic – 8.7.0
    YITH WooCommerce Product Add-ons & Extra Options Premium: przez YITH – 4.10.1 Inactive Plugins (3)
    
    Contact Form 7: przez Takayuki Miyoshi – 5.9.3
    Rank Math SEO: przez Rank Math – 1.0.215.1
    WooPayments: przez Automattic – 7.3.0 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 Woo.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature screen enabled: ?
    HPOS feature enabled: ?
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: – Logging
    
    Enabled: ?
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 dni
    Level threshold: –
    Log directory size: 2 MB WC Pages
    
    Strona sklepu: #48 - /shop/
    Koszyk: #129 - /cart/
    Zamówienie: #124 - /checkout/
    Moje konto: #51 - /my-account/
    Regulamin: #385 - /terms/ Theme
    
    Name: Flatsome Child
    Version: 3.0
    Author URL:
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.18.6
    Parent Theme Author URL: https://uxthemes.com
    WooCommerce Support: ? Templates
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/cart/mini-cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/order-received.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/rating.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php Admin
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    product-virtual-downloadable
    product-external-affiliate
    product-grouped
    product-linked
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: customize-store
    minified-js
    new-product-management-experience
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2024-03-26 03:36:03 +01:00
    Options: ?
    Notes: 69
    Onboarding: completed Action Scheduler
    
    Anulowano: 1
    Oldest: 2024-03-19 00:44:54 +0100
    Newest: 2024-03-19 00:44:54 +0100
    
    Zakończ: 366
    Oldest: 2024-03-15 04:37:12 +0100
    Newest: 2024-03-25 05:35:18 +0100
    
    Niepowodzenie: 6
    Oldest: 2024-03-15 04:52:11 +0100
    Newest: 2024-03-22 04:52:04 +0100
    
    Oczekuj?ce: 1
    Oldest: 2024-03-26 05:35:18 +0100
    Newest: 2024-03-26 05:35:18 +0100 Status report information
    
    Generated at: 2024-03-25 13:51:02 +01:00
    `
    • This topic was modified 8 months ago by tobiasz95.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    the problem is that the selector used in your custom code is inside a container which is hided on mobile. You should add another selector for mobile too.

    Thread Starter tobiasz95

    (@tobiasz95)

    Could you show where to find this selector ?

    Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,

    I checked again the page and now the selector seems visible, see screenshot here.

    But the custom code seems disabled because I can’t see the price change, not even on desktop devices.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘YITH addons dont work on mobile’ is closed to new replies.