Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Our Products

Tips and Tricks HQ Forum » Simple PayPal Shopping Cart » Simple Shopping Cart Tweaks

Very Basic Problem

(6 posts) (2 voices)
  • Started 3 years ago by Henry Baum
  • Latest reply from amin007
  • Possible Solutions (Related Topics):
    1. eMember - and basically everything by t&t HQ team - what do you think?
    2. Some problems using emember for product delivery
    3. Delivery of digital subscription products
    4. Business Directory Plugin problem with membership plugin
    5. The secure download manager ran into a problem

Tags:

No tags yet.

  1. Henry Baum
    Member

    Problem is it's not working. Here's the page with the add to cart button:

    http://www.theamericanbookofthedead.com/buy-the-book/

    Clicking it just refreshes the same page.

    Instead of coming here: http://www.theamericanbookofthedead.com/100 which shows up fine in preview.

    Thanks.

    Posted 3 years ago #
  2. amin007
    Key Master

    @Henry, the simple shopping cart does not have "Automatic Redirection to checkout page" option. When you click the "Add to cart" button it's actually adding the product to the shopping cart.

    Posted 3 years ago #
  3. Henry Baum
    Member

    (?) OK, then I'll have to find something else. Is there a hack for this or does the full version offer a redirect? Because without it people won't know it's been processed.

    Posted 3 years ago #
  4. amin007
    Key Master

    The WP eStore has this option and yes you can hack it very easily on the free version too. All you have to do is add a line of PHP code that redirects to the checkout page after "Add to cart" button is clicked.

    Posted 3 years ago #
  5. Henry Baum
    Member

    Which is and where? I'm not very PHP-literate. Really like the plugin and its simplicity except for the redirect part.

    Posted 3 years ago #
  6. amin007
    Key Master

    Find the following bit of code in the "wp_shopping_cart.php" file:

    if ($_POST['addcart'])

    once you find it you will need to add the following at the end of that if statement block:

    $checkout_url = "www.your-checkout-url.com/checkout");
    $redirection_parameter = 'Location: '.$checkout_url;
    header($redirection_parameter);

    Please note that a bit of PHP knowledge is required to be able to do this modification (I can't really teach you PHP).

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WordPress Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin