Support

Home Forums Event Espresso Premium Is it possible to use multi add-to-cart with at least one item chosen?

Is it possible to use multi add-to-cart with at least one item chosen?

Posted: November 19, 2013 at 7:46 am

Viewing 6 reply threads


Scott Benedict

    November 19, 2013 at 7:46 am

    Hard to explain, but I have a multi add page where participants can choose their event and some add-ons, but when they click view cart after making all their selections, they are moved to another page where they then have to choose at least one of each event. Is there a way to default to 1 to save the extra step? All our events are single registration only, so no group registrations.

    Test page is http://ntprs.org/register2/

    Thanks!

    Scott


    Josh

      November 19, 2013 at 8:52 am

      Hi Scott,

      It is possible with a bit of code modification. One way to do this is add a bit of jQuery just below the closing form tag in the shopping_cart.php template:

      <script>jQuery(document).ready(function(){
          jQuery(".price_id").val(1);
          jQuery('#event_espresso_refresh_total').trigger('click');
      });
      </script>
      


      Rufus Casey

        November 19, 2013 at 10:14 am

        Hi Josh, thanks for the tip about setting the default to 1 in the shopping cart- it worked great for me!


        Dean

        • Support Staff

        November 20, 2013 at 6:05 am

        @Scott, please let us know if this is a good solution for you.

        @Rufus – glad it helped you out!


        Scott Benedict

          November 20, 2013 at 7:34 am

          Haven’t had a chance to implement it yet. I’ll be working on the site tomorrow. Thanks! I’m sure it will work.


          Scott Benedict

            November 21, 2013 at 8:38 pm

            It worked for me too. Thanks!


            Scott Benedict

              November 22, 2013 at 8:11 am

              Spoke too soon! If I have only one pricing option, it works fine. But if I have multiple pricing options, like different registration tiers, they are all selected with 1 and you can’t always change them or if you can, it screws up and you can’t change them again, etc.

              Unless you have a fix for that, I’m going to have to take it back out so that they have to select everything twice, once to put in the cart and the second time to tell how many they want.

              Viewing 6 reply threads

              The support post ‘Is it possible to use multi add-to-cart with at least one item chosen?’ is closed to new replies.

              Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

              Event Espresso - Staging Server