Article ID: 125418, created on May 5, 2015, last review on Jun 27, 2016

  • Applies to:
  • Odin Business Automation Standard 4.5

Symptoms

When there are many items in the Shopping Cart the Checkout button is moved down and out of screen.

Cause

The behaviour is caused by the software issue PBAS-29651 that was fixed in OBAS 4.5.5.

Resolution

To resolve the issue, please upgrade to 4.5.5 as described in How to upgrade OBAS system to the latest available version.

As a workaround, please add the strings below to the function update_shopping_cart() located in /var/opt/hspc-store/web/js/store.js:

   var scroll_top = Math.ceil(($('#shopping_cart').text().length) / 10) + 150;
   $('.shopping-cart-content').scrollTop(scroll_top);

So that it looks like

   // resize shopping cart, to be optimal in height
    $('.shopping-cart-content').css('max-height', ($(window).height() - 220) + 'px');
    $('.shopping-cart-content').resize();
    var scroll_top = Math.ceil(($('#shopping_cart').text().length) / 10) + 150;
    $('.shopping-cart-content').scrollTop(scroll_top);
    $('#shopping_cart').show();
    // handler for checkout click action
    $("button#checkout").click(function() {

Search Words

scroll down

checkout is not visible

Checkout

Shop design

624ca542e40215e6f1d39170d8e7ec75 caea8340e2d186a540518d08602aa065 400e18f6ede9f8be5575a475d2d6b0a6 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF