Okay
  Public Ticket #1211572
Shopping cart
Closed

Comments

  • c_sie_w started the conversation

    Hello, when have many products in my shopping cart (for example 8 or 9) and I click on the cart icon at the top, the list is long enough and we no longer see the buttons to "view cart" or "checkout".

    How can I add a scroll so that the bottom buttons are always visible?

    Or how to limit the number of products to display in the shopping cart when you just click on the icon?

  •  1,825
    Opal replied

    Hi,

    Please add the code js to the file \ themes \ evolution \ js \ functions.js

    // shopping cart
     $(document).ready(function(){
          resizeDiv();
     });
     window.onresize = function(event) {
           resizeDiv();
     }
     function resizeDiv() {
          var vph = $("#cart .cart_list").height();
          if(vph > 480) {
                $("#cart .cart_list").css({"height": 485 + "px", "overflow-y": "scroll", "width": "calc(100% + 17px)"});
         }
      }

    https://prntscr.com/fltc8u

    Thank.


    Opal Support Team

    We are located in GMT +7 time zone and we answer all questions within 12-48 hours in weekdays. In some rare cases the waiting time can be to 48 hours. Support tickets sent during weekends or public holidays will be processed next Monday or the next business day. 

    If you like our theme, Please vote it 5 stars. We are really really appreciate your vote :
    To vote go to http://themeforest.net/downloads then follow that link : http://screencast.com/t/ylPjXebiCIOE
    Thanks and have a nice day

    Website: http://wpopal.com/