sticky cart offset pixel from top

WPPizza – A Restaurant Plugin for WordPress Support General Support sticky cart offset pixel from top

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6916
    danielz
    Participant

      Hi olly,

      I have a one (scroll) page layout and it starts with a video, where I obviously don’t want to have the sticky cart floating around.
      Only after around approx.1000px scrolled down it should appear together with the menu.
      I would use a non sticky cart but the menu is very long and it would be nice to have the cart sticking around 😉
      So it would be great to be able to set the offset when the sticky cart starts appearing.
      Do you think it is something easy to achieve?

      I think the ID field you have set up should be doing the opposite of what it is doing right now. to have the shopping cart not scroll further top not down ” and only appearing from a certain ID on.

      I hope you can follow what I’m trying to explain 🙂
      take a look here:
      http://karawane-berlin.org/tahtit/

      btw you should still have the login in case you want to have a look at the settings 😉

      thanks
      daniel

      #6917
      danielz
      Participant

        another thing:
        the pick up delivery checkbox is out of the sticky cart position fixed because it is in another div.

        #6920
        Olly
        Admin & Mod

          ignoring that fact that i works just fine on many themes that have a “normal” layout where it doesn’t go higher than its surrounding container (try twentytwelve and you’ll see that it is never further up than the top of the sidebar) i will just not spend any more time on this sticky cart thing as it’s a losers game and will never work on all layouts. (not even thinking about responsive layouts which have their own requirements)

          if it works as is for someone, fine. if it doesn’t you have to find your own implementation for your particular theme

          #6921
          Olly
          Admin & Mod

            furthermore, instead of messing around with animations and calculations and whatnot , it would be A LOT easier to write a few lines of code for a particular theme rather than me trying to cater for all…

            #6927
            Olly
            Admin & Mod

              just another bit of a hint (while i ‘m at it ) maybe my comment here regarding “wppizza-cart-fixed” might help too somewhat

              https://www.wp-pizza.com/topic/sidebar-cart-scrolling-background/#post-6926

              #6964
              danielz
              Participant

                ok I understand, makes sense that you can’t alter every theme out there 🙂

                best
                daniel

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘sticky cart offset pixel from top’ is closed to new replies.