Announcement

Collapse
No announcement yet.

Mini-basket model on PROD page

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

    Mini-basket model on PROD page

    I needed to edit the "My Cart" link in the Global Header. When you click on the link it displays the mini-basket as expected. But when you add a product from the PROD page it goes to the BASK screen instead of triggering the model. I'm thinking maybe I missed an ID or something. I've checked and if I did I'm not sure which one it may have been. I can't post a link to the site because it's behind a password protected directory.

    This is the View Cart link code

    Code:
    <li class="level-1"><span><a href="&mvte:urls:BASK:auto;" rel="nofollow" id="js-mini-basket" class="mini-basket">View Cart (&mvte:global_minibasket:basket_count;)</a></span></li>
    It will display the mini-basket

    I do have the Global mini-basket item assigned to the PROD page. What else should I look for?

    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Hi Leslie,

    If the process of adding a product to your cart is taking you to the basket page, the issue might lie in your purchase form. Make sure the form has an ID of `js-purchase-product`; this should trigger the function you are looking for.
    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


      #3
      Originally posted by Matt Zimmermann View Post
      Hi Leslie,

      If the process of adding a product to your cart is taking you to the basket page, the issue might lie in your purchase form. Make sure the form has an ID of `js-purchase-product`; this should trigger the function you are looking for.
      Here's the Add to Cart form (partial)

      Code:
      <form method="post" action="&mvte:urls:BASK:rr;" name="add" id="js-purchase-product" class="inline-labeling">
                  <input type="hidden" name="Old_Screen" value="&mvte:global:Screen;" />
                  <input type="hidden" name="Old_Search" value="&mvte:global:Search;" />
                  <input type="hidden" name="Action" value="ADPR" />
                  <input type="hidden" name="Product_Code" value="&mvte:product:code;" />
                  <input type="hidden" name="Category_Code" value="&mvte:global:category_code;" />
                  <input type="hidden" name="Offset" value="&mvte:global:Offset;" />
                  <input type="hidden" name="AllOffset" value="&mvte:global:AllOffset;" />
                  <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
                  <input type="hidden" name="RelatedOffset" value="&mvte:global:RelatedOffset;" />
                  <input type="hidden" name="SearchOffset" value="&mvte:global:SearchOffset;" />
      It does have the ID of `js-purchase-product` but it does not seem to be doing the trick.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Hi Leslie,

        That looks correct for the opening of the form. Are you using the following for the call to action buttons?
        Code:
        <button id="js-add-to-cart" class="button button-block uppercase add-to-cart bg-green white bold">Add <span class="small-inline-block hide">to Cart</span></button>
        <mvt:if expr="NOT l.settings:subscription:mandatory">
            <span data-mmnodisable="true" class="wishlist-button-wrap">
                <span onClick="document.forms.add.action = '&mvtj:urls:WISH:secure;'; document.forms.add.elements.Action.value = 'ATWL';" id="add-to-wishlist-wrap">
                    <mvt:item name="buttons" param="AddToWishList" />
                </span>
            </span>
        </mvt:if>
        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


          #5
          Pretty much the same thing

          Code:
          <button id="js-add-to-cart" class="button button-block uppercase add-to-cart bg-green white bold">Add <span class="small-inline-block hide">to Cart</span></button>
          
                              <span data-mmnodisable="true" class="wishlist-button-wrap">
                                  <span onClick="document.forms.add.action = '&mvtj:urls:WISH:secure;'; document.forms.add.elements.Action.value = 'ATWL';" id="add-to-wishlist-wrap">
                                      <mvt:item name="buttons" param="AddToWishList" />
                                  </span>
                              </span>
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Hi Leslie,

            I would recommend contacting professional services so they can troubleshoot the site from behind the protected directory.
            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

            Working...
            X