Announcement

Collapse
No announcement yet.

Add to cart from CTGY page issue

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

  • lesliekirk
    replied
    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;" />

    Leave a comment:


  • lesliekirk
    replied
    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.

    Leave a comment:


  • Matt Zimmermann
    replied
    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;">

    Leave a comment:


  • lesliekirk
    replied
    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".

    Leave a comment:


  • lesliekirk
    replied
    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?

    Leave a comment:


  • Matt Zimmermann
    replied
    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.

    Leave a comment:


  • lesliekirk
    started a topic Add to cart from CTGY page issue

    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>
Working...
X