Jump to content

Floating order summary box


glenn

Recommended Posts

Hello,

 

We're using the standard cart order form and a custom template based on the six template. The custom template comes with a fixed header. Therefore, the "floating" order summary box (the one that scrolls down when you scroll down on the page) is not completely shown. I believe it's party hidden behind the fixed header.

Is there a way to take into account the fixed header when defining the position of that order summary box?

 

Thanks!

 

Link to comment
Share on other sites

17 hours ago, glenn said:

Is there a way to take into account the fixed header when defining the position of that order summary box?

i'm tempted to suggest that if this is a commercial custom, then it's developers should have dealt with this during the design! 🙄

it's a JS issue I think and specifically some of the settings in scripts.min.js in standard cart - topPadding and marginTop - so if I set their values at 150, then I see this...

0jiUaiD05l.gif

so it might require some experimentation, depending on the size of the fixed header, to find suitable value(s).

possibly, you could do this as a hook, but I modified scripts.min.js directly for the above demo... that would cause a potential issue for updating (so might a hook) -  who knows whether v8 will even use standard_cart?

Link to comment
Share on other sites

2 hours ago, glenn said:

The WHMCS integration was completed by WHMCS, but they couldn't find a perfect solution to fix that issue.

oh boy! 🙄

hopefully the above gets you closer to the solution, but if not, i'd really need to see what the header looks like as i'm working blind otherwise.

Link to comment
Share on other sites

Take a look at this:

https://www.w3schools.com/cssref/pr_pos_z-index.asp

That will fix it. You need to change the priority of the index on the CSS files. There are other ways to avoid elements from hiding or floating over others assuming you want that. It's not hard to solve at all. Any front end developer will fix this in less than one hour unless there is something really bugged with how the code works.

Edited by yggdrasil
Link to comment
Share on other sites

3 hours ago, glenn said:

This has been solved thanks to @brian!

You might share the fix for the rest of the community 😁

I'm not sure I would still be using WHMCS if it was not for other people helping out each other. In most cases it's the only help you will get.

Edited by yggdrasil
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated