Announcement

Collapse
No announcement yet.

Help. send to cart when "add to Cart" is clicked.

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

  • Help. send to cart when "add to Cart" is clicked.

    I have one product that I want the customer to be sent to the cart immediately when they click add to cart. I made it its own listing template.

    Is there a way to give this functionality to this listing template only. How do I modify the add to cart button to accomplish this?

    The rest of the site is set so the customer stays put where they are when they click add to cart.

    I contacted support but they were not able to help.

    Thank you.

  • #2
    • Choose a Listing Template that you don't use. (keep in mind if you have not edit these templates before they will be in the common folder the new file should go in the template folder that you are using as the system will check there first) copy this template to your default site template folder.
    • Copy the code from the listing template that you do use to that template.
    • Remove button and code for the add to cart
    • Use the code provided in the product edit area. Advanced tab, should look something like this

    Code:
    <a href="http://www.yoursite.com/add_cart.asp?out=1&quick=1&item_id=11631"><img src="http://www.yoursite.com/assets/images/buy.gif" border=0></a>
    • upload new buy image
    • Go back to the advanced tab under edit product and select the newly created style under listing template.


    Hope this helps

    I am new here and there may be a more strait forward approach and I don't know your experience level but that would work.

    Have fun!
    .
    Clayton
    Go Live Industries

    Comment


    • #3
      Thank you for taking the time to help.
      This did change the button, but when I click it, it refreshes the page, but does not add the item to the cart, nor does it go to the shopping cart.
      I will continue messing with it.

      Comment


      • #4
        It does work I just tried by inserting a link in the description and tried from a page that has nothing to do with the product. Works fine

        I used the word here instead of an image. Works great took me strait to view cart with the product there and our site is set up to add to cart and remain on current page.
        Code:
        <br><a href="http://www.yoursite.com/add_cart.asp?out=1&amp;quick=1&amp;item_id=7353">here</a><br>
        Are you copying the from the advance tab (don't use the code sample in my sample code as that points to 1 of my items. If you like post the code and I can confirm.
        Last edited by Go Live; 01-21-2011, 12:56 PM.
        .
        Clayton
        Go Live Industries

        Comment


        • #5
          I talked to support and here is the deal.
          My product has an option with a text box. The option is not required.

          However, when clicking on the BUY button from the advanced tab, It will only take you to the product page (or refresh the product page if you are already there) and will not add the item to the cart.

          I should have mentioned the option in my first post.

          Comment


          • #6
            Yes an option will not allow to go to cart
            .
            Clayton
            Go Live Industries

            Comment


            • #7

              Sample: http://www.yoursite.com/add_cart.asp...p;item_id=7353 - How do I add a quantity - like ad 3 to cart?


              And why is this on home page going to the product page instead of cart?

              <input type="button" value="[category_buyitlink]" onclick="window.location = 'add_cart.asp?quick=1&amp;item_id=[catalogid]'" class="btn" onmouseover="this.className='btn_over'" onmouseout="this.className='btn'" />
              Last edited by kelly; 06-10-2017, 01:02 PM.

              Comment

              Working...
              X