button "continue shopping"

Created on 21 December 2023, 6 months ago
Updated 25 April 2024, 2 months ago

Is there a possibility to add a button "continue shopping" in de "dc-ajax-add-cart-popup.html.twig", like we have in de D7 projects ?

Thanks in advance.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Mav_fly

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Mav_fly
  • πŸ‡©πŸ‡ͺGermany Umac_de

    This can be done easyly by yourself:

    1. insert in the template
    Continue shopping

    2. insert in your .js-file
    function continueShopping(){
    (function ($) {
    $('.ui-icon-closethick').click();
    })(jQuery);
    }

  • πŸ‡§πŸ‡ͺBelgium Mav_fly

    @Umac_de Thanks for the code, my button "Continue shopping" works fine now!
    Problem solved

  • πŸ‡³πŸ‡±Netherlands roy564

    I would also like to have the continuous shopping button on Drupal Commerce. However, I do not know in which template to place the href and which js file to use. I am using Drupal 10.2.5 and Commerce 8.x-2.38. I am not a programmer. I would appreciate it if you could help me further.

  • πŸ‡§πŸ‡ͺBelgium Mav_fly

    @roy564 you already installed Commerce Ajax Add to Cart on your Drupal 10 website ?

    You have add your href code in dc_ajax_add_cart/modules/dc_ajax_add_cart_popup/templates/dc-ajax-add-cart-popup.html.twig

    Your JS code can you add via the module https://www.drupal.org/project/asset_injector β†’

Production build 0.69.0 2024