Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tomasz Kowalski 135 posts 445 karma points
    Oct 10, 2013 @ 15:31
    Tomasz Kowalski
    0

    Redirect to cart after Add to cart

    Hi,

    TeaCommerce 2.1

    How can I redirect cutomer to the cart right after adding product to cart, from product page?

    Kind regards Thomas

  • Anders Burla 2560 posts 8256 karma points
    Oct 10, 2013 @ 16:39
    Anders Burla
    1

    Hi Thomas

    If you are using the html api you can use the "redirection" - see this link:
    http://documentation.teacommerce.net/html-api/

    Kind regards
    Anders

  • Tomasz Kowalski 135 posts 445 karma points
    Oct 11, 2013 @ 09:01
    Tomasz Kowalski
    0

    Hi Anders,

    Thanks for answer.

    I haved used demo "wine" shop as my base. I have used this redirection, but I can see, that it uses Javascript to add product to cart, så I don't know if I can just bind some jQuery event to this button or ... ? And I would redirect to cart only when product was added with success...

    Kind regards Thomas

  • Anders Burla 2560 posts 8256 karma points
    Oct 11, 2013 @ 09:06
    Anders Burla
    100

    If you want to redirect there is no need to use Javascript for the adding. So remove the class "ajaxForm" from the html for that adds the product to the cart.

  • Tomasz Kowalski 135 posts 445 karma points
    Oct 11, 2013 @ 10:13
    Tomasz Kowalski
    0

    Thanks :)

Please Sign in or register to post replies

Write your reply to:

Draft