Announcement

Collapse
No announcement yet.

Add to cart from CTGY page issue

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

    Add to cart from CTGY page issue

    Store has had the add to cart from the category forever. This problem has probably been there all along but was just noticed. If you go to the next page (or any page past the 1st page) and add to cart action reloads to the1st page. Is there a way to stay on the page the customer is adding to the cart?

    For example the page URL has .html?CatListingOffset=60&Offset=60&Per_Page=60&So rt_By=newest as part of it. But when the add to cart action is performed it becomes /Merchant2/merchant.mvc?

    Change to the form action?

    Code:
     <form action="&mvt:global:sessionurl;" method="post" id="CatQty">
    <input type="hidden" name="Action" value="ADPR">
    <input type="hidden" name="Screen" value="&mvte:global:Screen;">
    <input type="hidden" name="Attributes" value="">
    <input type="hidden" name="Store_Code" value="&mvte:store:code;">
    <input type="hidden" name="Offset" value="&mvte:global:Offset;">
    <input type="hidden" name="Product_Code" value="&mvte:product:code;">
    <input type="hidden" name="Current_Product_Code" value="&mvte:global:Product_Code;">
    <input type="hidden" name="Category_Code" value="&mvte:global:Category_Code;">
    <input type="hidden" name="Per_Page" value="&mvte:global:Per_Page;">
    <div class="qtyadd">
    <input name="Quantity" type="number" id="Qtybox" step="1" min="0" placeholder="1" value="1">&nbsp;&nbsp;<input type="image" value="Add" src="graphics/00000001/plusicon.png" />
    </div>
    </form>
    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,

    You might have to modify the form action to reference the shorter URL structure the site is using or maybe change it to GET from POST.
    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,

      You might have to modify the form action to reference the shorter URL structure the site is using or maybe change it to GET from POST.
      The shorter URL structure for the category page?
      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
        Originally posted by lesliekirk View Post

        The shorter URL structure for the category page?
        I don't think it's the shorter URL that is going to get it back to the correct page



        Code:
        <input type="hidden" name="Action" value="ADPR">
        <input type="hidden" name="Screen" value="CTGY">
        <input type="hidden" name="Attributes" value="">
        <input type="hidden" name="Store_Code" value="ABC">
        <input type="hidden" name="Offset" value="">
        <input type="hidden" name="Product_Code" value="QWHITE45">
        <input type="hidden" name="Current_Product_Code" value="M9525-MIK">
        <input type="hidden" name="Category_Code" value="solid-designer-fabric">
        <input type="hidden" name="Per_Page" value="60">
        I think I have to figure out how to get the "Offset".
        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


          #5
          Hi Leslie,

          Based on the URL example you provided, you should be able to use:
          Code:
          <input type="hidden" name="Offset" value="&mvte:global:Offset;">
          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
            Originally posted by Matt Zimmermann View Post
            Hi Leslie,

            Based on the URL example you provided, you should be able to use:
            Code:
            <input type="hidden" name="Offset" value="&mvte:global:Offset;">
            That's what is already there - it comes up empty.
            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


              #7
              Originally posted by lesliekirk View Post

              That's what is already there - it comes up empty.
              I think I found it!

              Code:
              <input type="hidden" name="CatListingOffset" value="&mvte:global:CatListingOffset;" />
              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

              Working...
              X