Hello,
thanks a lot for this nice module!
I want to suggest a bit more functionality of popup message. I think it would be nice to be able to automatically hide the message in a few seconds after its appearance.

PS I do this through changing in "dc_ajax_add_cart.js" :

(function ($, Drupal, window, document, undefined) {
  Drupal.behaviors.dcAjaxAddCart = {
    attach: function (context, settings) {
      // Close the add to cart overlay.
      function closeAddToCartOverlay() {
        $('#add-to-cart-overlay').fadeOut('slow');
        $('.add-cart-message-wrapper').css('display', 'none');
      }
 
        setTimeout(closeAddToCartOverlay,2000);
            }
  };
})(jQuery, Drupal, this, this.document);

but it isn't good way

best regards,
savage

Comments

savage1974 created an issue. See original summary.

savage1974’s picture

Issue summary: View changes
subhojit777’s picture

Status: Active » Closed (won't fix)

Good to know that this module helped you. Your approach is fine. You can include that in your project. But the requirement is project specific, and cannot be committed in the module. I want to make the module as generic as possible. I have separated the pop feature as a separate sub module in 8.x