Features

Mobile sticky add to cart button should be priced

7mo agoIn Review

Hello,

sticky add to cart or buy now button should appear on mobile with normal and discounted price. It is a bit strange that this feature is not available in 2022.

6 comments

  1. Anonymous7mo ago

    here is a good example. https://snipboard.io/v1ajVn.jpg

    1. Anonymous7mo ago

      Hello @Recep,

      It is available as an option in our Theme Options

      See example : https://gyazo.com/a732528c28ab1ff754aec2a56e4b65b8
      Demo : https://xstore.8theme.com/product/karpell/

      If you are using Single Product builder go to -> Theme Options -> WooCommerce -> Single Product Builder -> Add To Cart & Quantity -> Sticky Add To Cart Bar
      Otherwise if you are using default Single Product templates go to -> Theme Options -> WooCommerce -> Single Product Page -> Single Product page layout -> Sticky Add To Cart Bar

      Waiting for your reply !

      Regards, Jack Richardson

    2. Anonymous7mo ago

      Hi, This is different from the model I conveyed in the image above. There is no button where the regular price, the discounted price, or both appear.

      Is it possible for me to get an image similar to the image on mobile?

    3. Anonymous7mo ago

      Hello @Recep,

      1/ You may disable buy now button from options (https://prnt.sc/Wd_0ajdbNRO4) and you will get next results
      Simple product -> https://prnt.sc/Ari7xw3-Vv7r
      Variable product -> https://prnt.sc/Nro7_PWPwx1i
      2/ If you want to keep buy now button enabled you will get next results
      Simple product -> https://prnt.sc/vO9btSTAuBYJ
      Variable product -> https://prnt.sc/UUG9E6vsQkdo
      2.1/ but if you add next filters to your child-theme/functions.php

      add_filter('etheme_sticky_add_to_cart_buy_now_hide_mobile', '__return_true');
      add_filter('etheme_sticky_add_to_cart_price_hide_mobile', '__return_false');

      you will get the result very close to the one you wanted
      Simple product -> https://prnt.sc/FUhnj-FvphZ2
      Variable product -> https://prnt.sc/1-E4dPNT84ev

      If you still need any assistance, please, submit a topic on our forum -> https://www.8theme.com/forums/xstore-wordpress-support-forum/ and our support managers will help you (mostly you already have the code which makes just what you want to in my opinion but if you need more, please go to our support)

      Regards, Jack Richardson

    4. Anonymous7mo ago

      Hello Jack,

      none of this happens on the mobile phone but appears when you say inspect browser.

      For example https://prnt.sc/vO9btSTAuBYJ Can you post a picture/video of what you see on the real phone screen?

      Thanks for your help.

    5. Anonymous7mo ago

      Hello @Recep,
      Agreed that I had to add few css fixes to get the results better viewing on mobile (buttons were shown inlined but should be wrapped)

      Desktop responsive mode: https://prnt.sc/WeZ7UTOynh8Y
      Mobile origin mode: https://prnt.sc/kvya4Gf76sWZ

      PHP code that was added to child-theme/functions.php
      Code: add_filter('etheme_sticky_add_to_cart_buy_now_hide_mobile', '__return_false');

      Custom CSS which was added (XStore-child/style.css):
      .single-product .etheme-sticky-cart .cart {
      flex-wrap: wrap;
      justify-content: center;
      margin-bottom: 10px;
      }
      .etheme-sticky-cart .quantity,
      .etheme-sticky-cart button {
      margin-top: 10px;
      }

      Regards, Jack Richardson