Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Shopify Buy Button won’t show on custom phone layout

Shopify Buy Button won’t show on custom phone layout

Scheduled Pinned Locked Moved Bug Reports
8 Posts 6 Posters 329 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    leczkowskaya
    wrote on last edited by
    #1

    Hi! I’ve managed to implement the Shopify Buy Button to several products on a site (one product aka one button per page). While it works perfectly fine for the desktop version, the button won’t show up on the mobile layout when custom phone layout is activated:

    Button visible on desktop, not showing on mobile (custom layout activated):
    http://weyhe.karolinaleczkowski.de/02-dress

    When adding the HTML button code in the custom mobile layout as well, I get two buttons on desktop and still none on mobile:
    http://weyhe.karolinaleczkowski.de/03-top

    Any ideas on how to solve this problem are veeery much appreciated!
    Thanks a lot!!

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @leczkowskaya

      Yes, there might be a problem with the Shopify button.
      We will have a look!

      Do you have any other third-party plugins installed or CUSTOM JS code? Is it possible to deactivate it for a moment to see if the problem remains?
      Is Wordpress and LayTheme up to date?
      Many wishes!
      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        hey, i have seen this issue before.

        unfortunately it seems that shopify buttons don't work if they are both on the desktop and custom phone layout.

        you would need to delete the custom phone layouts for these pages and then it should work on phones too :/

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mw
          wrote on last edited by
          #4

          Hello Armin and Marius,

          I ran into the same problem with the newest Lay Theme Version.

          With another website running Lay Theme Version: 2.9.5 everything worked fine with custom phone layouts. After updating the Theme the same issue occurred here.

          Any further Tips?

          Maybe it's because the Shopify code is an #ID that is called 2 times (with custom phone layout) and that's causing the problems?! Maybe the new lay theme version is more strict dealing with that issue?

          Would be very thankful for any advice on how to solve this!

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5

            @mw said in Shopify Buy Button won’t show on custom phone layout:

            Maybe it's because the Shopify code is an #ID that is called 2 times (with custom phone layout) and that's causing the problems?! Maybe the new lay theme version is more strict dealing with that issue?

            yea probably

            That earlier version of lay theme had a javascript frontend where the custom phone layout markup and the desktop markup did not co-exist on one page.

            However, now with the new lay theme versions the desktop and custom phone layout both exist at the same time on a page.

            I had to re-code the frontend to be a php frontend for faster loading times and for WooCommerce compatibility so people will be able to have a shop on Lay Theme websites.

            I'm working on the WooCommerce integration everyday, however I'm not sure when exactly it will be done!

            One solution would be to not use custom phone layouts on pages where you use a shopify button.

            1 Reply Last reply
            0
            • arminunruhA Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              You could also ask shopify support to make it possible to have the same shopify button on a page twice and still have it work.

              Maybe they can fix this on their side.

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kalamakumaran
                wrote on last edited by
                #7

                Hej,
                I maybe found a little workaround to avoid that problem. Every Shopify Shortcode for a single product or collection has a specific id. You'll find it in twice in the code. Once in the beginning and a little bit further down. Just change the is in both lines on the mobile phone layout by replacing a number at the end.
                I noticed that it's not duplicating anymore, but I' not sure if it's possible to still buy the article with the modified id because my store isn't set up right now.
                Maybe somebody can try that and report if it solved the problem.
                Hope that helps,
                B

                1 Reply Last reply
                0
                • RichardR Offline
                  RichardR Offline
                  Richard
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear @kalamakumaran

                  Cool! :)
                  Really valuable input

                  Best
                  Richard

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  I also code custom websites or custom Lay features.
                  💿 Email me here: 💿
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  P
                  pheim
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                  laytheme.com
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search