Jump to content

Product Page displaying in weird order on mobile

Go to solution Solved by paul2009,

Recommended Posts

Site URL: https://www.libbyashley.com/shopla/p/classic-crewneck

Hey there, i'd love any help or insight people can offer. I added the new accordion blocks to my product pages and now, on mobile only, they're displaying underneath the product image and not at the bottom of the page where they should be. I spoke with SS support and they said that it's conflicting with code that I've included in the site (I think the variant pricing code) and they can't help.

Can anyone help me figure out what to do? It's a very weird UX the way that it is now and I'd really like to change it.

Link to comment
  • Solution

Hi Elizabeth

I'm the author of the variant pricing extension and I can confirm this isn't causing the issue 🙂. However, if you're ever concerned about our products, do reach out to us (ideally via our support form) and we'll be very happy to guide you.

The issue appears to be caused by some code you added (to the Code Injection area of the site) to reposition the Additional Info section. If you try removing this section (see below) and then save and refresh, the issue should go away.

<script>
  $(window).bind("load", function() {
  $( ".product-price" ).prepend('From ');
      $( "section.ProductItem-additional" ).appendTo(".ProductItem-details-checkout");
});
</script>

Let me know how you get on.

Paul

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Edited by paul2009

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
30 minutes ago, paul2009 said:

 

Hi Elizabeth

I'm the author of the variant pricing extension and I can confirm this isn't causing the issue 🙂. However, if you're ever concerned about our products, do reach out to us (ideally via our support form) and we'll be very happy to guide you.

The issue appears to be caused by some code you added (to the Code Injection area of the site) to reposition the Additional Info section. If you try removing this section (see below) and then save and refresh, the issue should go away.

<script>
  $(window).bind("load", function() {
  $( ".product-price" ).prepend('From ');
      $( "section.ProductItem-additional" ).appendTo(".ProductItem-details-checkout");
});
</script>

Let me know how you get on.

Paul

  If this post has helped you, please click a 'Like' or 'Thanks' icon below  ⬇️

Thank you so much Paul! I love the variant model, it's literally the only way that I'm able to run my store on squarespace! Thank you for looking into the code, you've helped me immeasurably! 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.