Announcement

Collapse
No announcement yet.

Suivant Add to Cart in Category Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Suivant Add to Cart in Category Page

    Hello,

    I have created a page template called CTGY-ADD-TO-CART that displays products and have 2 buttons on the bottom of each product, one for "add to cart " without entering the PROD page and the other one "Details" to enter the product.

    I want to focus on the button "Add to Cart", I want that if I add to cart a product from that category displays the mini-basket (the same functionality that has the PROD page when add to cart a product) but instead goes to BASK page, I want to remain on the same page and if the product has attributes go to the "Missing Attribute page" and then return to the same category page.

    Any ideas on what could be happening? The page I am testing this is: https://www.mauriprosailing.com/us/c...ortlights.html

    I hope someone can help me!

    Thanks

    #2
    This is the functionality for "add to cart"

    Comment


      #3
      You can accomplish this by targeting the buttons by class instead of ID and adding some custom add to cart functionality to your jsCTGY function. You can see an example of this, although it is for Levels, here https://www.miva.com/forums/forum/designers-and-developers/readytheme/levels-readytheme/689861-add-to-cart-action-on-ctgy-page
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #4
        Thanks it worked! now it adds products within the same CTGY page but when that product has attributes there is a message. Before the change the product selected went to the "Missing Product Attributes" page (PATR) and then to BASK.

        There is a possibility that when a product is selected and has an attribute, goes to PATR page first and then return to the last category where the product was selected?

        Comment


          #5
          For something like that, you would have to modify the forms to create a return path on PATR if the referring page is the category page.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #6
            ok, thanks, and what about the products that have attributes and are not adding to the basket either going to the Missing Product Attributes page?

            Comment


              #7
              If a product has attributes, you are being directed to the missing attributes page, selecting your attributes, submitting, and the product isn't being added to the cart, then there may be an issue with how the missing attribute page is working. You may need to contact support so they can take a look at the code.
              Matt Zimmermann

              Miva Web Developer
              Alchemy Web Development
              https://www.alchemywebdev.com
              Site Development - Maintenance - Consultation

              Miva Certified Developer
              Miva Professional Developer

              https://www.dev4web.net | Twitter

              Comment


                #8
                I am testing on this category https://www.mauriprosailing.com/us/c...d-to-cart.html where the product has 3 attributes but when I add it to the cart it now goes automatically to the BASK without asking first to select the attributes in the Missing Attributes Page.

                The Missing Product Attribute page is working fine.

                Comment


                  #9
                  Are those attribute listed as required? If they aren't, then that is why you can add to the cart without selecting them.
                  Matt Zimmermann

                  Miva Web Developer
                  Alchemy Web Development
                  https://www.alchemywebdev.com
                  Site Development - Maintenance - Consultation

                  Miva Certified Developer
                  Miva Professional Developer

                  https://www.dev4web.net | Twitter

                  Comment


                    #10
                    Yes, you are right. Do you know if there is a fast way to put "required" to all attributes even if they are templates or put manually in a product?

                    Comment


                      #11
                      For the template, you can add them there. If they have been manually added, you would have to edit each product or update them via the product attribute import.
                      Matt Zimmermann

                      Miva Web Developer
                      Alchemy Web Development
                      https://www.alchemywebdev.com
                      Site Development - Maintenance - Consultation

                      Miva Certified Developer
                      Miva Professional Developer

                      https://www.dev4web.net | Twitter

                      Comment


                        #12
                        ok, thanks

                        Comment

                        Working...
                        X