Shopping page Not Scrolling in mobile device

Shopping Page Not Scrolling in Mobile device to overcome this issue we need to extend the shopping page view and add the below code

define('ProductList.DetailsLater.View.Extension'
,   [
      'ProductList.DetailsLater.View'
   ,   'underscore'
   ,   'jQuery'   
   ]
,   function (
      ProductListDetailsLaterView
   ,   _
   ,   jQuery
   )
{
   'use strict';

      _.extend(ProductListDetailsLaterView.prototype,
      {
         deleteListItemHandler: function (target)
         {
            var self = this
            ,   itemid = jQuery(target).closest('article').data('id')
            ,   product_list_item = this.model.get('items').findWhere({
                  internalid: itemid + ''
               })
            ,   success = function ()
            {
               if (self.application.getLayout().updateMenuItemsUI)
               {
                  self.application.getLayout().updateMenuItemsUI();
               }

               self.deleteConfirmationView.$containerModal.modal('hide');
               self.render();
               self.$('[data-action="pushable"]').scPush();
               self.showConfirmationMessage(_('The item was removed from your product list').translate(), true);
            };

            self.model.get('items').remove(product_list_item);      
            self.deleteListItem(product_list_item, success);
         }
      });
}
); 

Leave a comment

Your email address will not be published. Required fields are marked *