Project

General

Profile

GX-Bug #64123

[Malibu] The option to display the shopping cart just shortly after putting an item in and hiding it afterwards doesn't work in Malibu

Added by Daniel Wu 10 months ago. Updated 7 months ago.

Status:
Feedback
Priority:
Niedrig
Assigned To:
Category:
StyleEdit 4
Target version:
% Done:

0%

Estimated time:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:
Story points-Velocity based estimate-

Description

You can find this option under

Shop Settings > My Shop > Display Cart After Adding a Product?

History

#2

Updated by Jonatas Fischer 10 months ago

  • Status changed from Gemeldet to In Bearbeitung
  • Assigned To set to Jonatas Fischer
#3

Updated by Jonatas Fischer 10 months ago

  • Status changed from In Bearbeitung to Feedback
  • Assigned To changed from Jonatas Fischer to Marcus Goede

The process of show and hide the menu is done trought events. The cart_dropdown.js module listen to the event jse.libs.theme.events.CART_OPEN() and trigger the mouseenter event.
A exemple of how to handle this can be found at the cart_handler.js init function. Folow the code:

/**
 * Init function of the widget
 * @constructor
 */
module.init = function (done) {

    var $forms = $this.find('form');

    if (options.page === 'product-info') {
        $forms.find("[name=btn-add-to-cart]").on('mouseup', _addToCartThrobberHandler);
        $("body").on('CART_DROPDOWN_OPEN', _cartDropdownOpenHandler);
    }

    $forms.on('submit', { 'target': 'cart' }, _submitHandler).on('click', options.wishlistButtons, { 'target': 'wishlist' }, _submitHandler).on('click', options.priceOfferButtons, { 'target': 'price_offer' }, _submitHandler).on('change', options.attributes, { 'target': 'check' }, _submitHandler).on('blur', options.quantity, { 'target': 'check' }, function (e) {
        _submitHandler(e);
    }).on('keyup', options.quantity, { 'target': 'check' }, _keyupHandler);

    // Fallback if the backend renders incorrect data
    // on initial page call
    $forms.not('.no-status-check').each(function () {
        _submitHandler.call($(this));
    });

    done();
};
#4

Updated by Daniel Wu 7 months ago

  • Category set to StyleEdit 4
#5

Updated by Daniel Wu 7 months ago

  • Project changed from StyleEdit4 to GX-Entwicklung
  • Category changed from StyleEdit 4 to StyleEdit 4

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 5 MB)