Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Calling "Add to Cart" externally (adding product via a URL)

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Calling "Add to Cart" externally (adding product via a URL)

Tagged: add to cart, affiliate, coupon, url

  • This topic has 23 replies, 9 voices, and was last updated 11 years, 6 months ago by rainbowmuisc.
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • Author
    Posts
  • April 26, 2011 at 6:27 pm #3012
    spoweb
    Member

    We have a situation where a client has 2 urls (one for a landing page, one for their main site with store). i would like to be able to call the add to cart directly of a specific product within the store with an anchor on the landing page site. thoughts?

    April 26, 2011 at 11:59 pm #31737
    wpCommerce
    Moderator

    You can specify a landing page URL for each product in the WP eStore->Add/Edit Products->Additional Product Details->Button Link section. Once someone clicks on the “Add to Cart” button he will be redirected to that landing page.

    April 27, 2011 at 2:29 pm #31738
    spoweb
    Member

    i know that but you have the situation backwards.

    this starts FROM the landing page not TO the landing page.

    April 27, 2011 at 11:41 pm #31739
    wpCommerce
    Moderator

    You can use a link to add a product to the shopping cart. For example: the following will add product 1 to the shopping cart:

    [http://www.example.com/?wp_eStore_add_to_cart=1]

    In your case you can link your “Order Here….” image to the following URL:

    [http://propanenow.com/order-now/?wp_eStore_add_to_cart=1]

    Replace 1 with the actual product ID.

    Now, when a visitor click on the “Order Here” image he will go to the “Order-now” page and the item will also be in the cart.

    You will need to use the extra eStore shortcodes plugin to get this option. You can find the plugin here:

    http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460

    April 30, 2011 at 6:11 am #31740
    rainbowmuisc
    Member

    Hi want to do the same thing, though “?wp_eStore_add_to_cart” is returning an error?

    The website encountered an error while retrieving

    [http://rainbowmusic.com.au/library/?wp_eStore_add_to_cart=12]

    It may be down for maintenance or configured incorrectly.

    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

    The function does add the item to the cart but returns the above error.

    The extra eStore shortcodes plugin is installed and working with other functions perfectly.

    Any suggestions? Thanks.

    April 30, 2011 at 6:50 am #31741
    rainbowmuisc
    Member

    Updating wp eStore from 5.0.0 to 5.2.8 fixed it. Working now.

    May 20, 2011 at 5:07 am #31742
    spoweb
    Member

    i tried this with the latest version.

    there are no errors displayed and the url gets re-written but the cart remains empty. do i need to set something in the settings to make this work?

    May 20, 2011 at 5:11 am #31743
    amin007
    Participant

    Please post a link to the page where you are testing this (What can I do on that page to see what you are seeing?)

    May 20, 2011 at 1:49 pm #31744
    spoweb
    Member

    [http://appealitnow.com/]

    look at the buy now button

    May 20, 2011 at 11:42 pm #31745
    amin007
    Participant

    In your link, you are missing the “www”. Try making the link using the following:

    [http://www.americanpropertytaxinstitute.com/bookstore/?wp_eStore_add_to_cart=2]

    This page will explain why this is important:

    https://support.tipsandtricks-hq.com/forums/topic/incorrect-server-setup-related-to-url-rewriting-cause-and-effect

    May 21, 2011 at 2:17 pm #31746
    spoweb
    Member

    thanks amin.

    May 21, 2011 at 3:49 pm #31747
    Cheryl Rogers
    Member

    I have a similar issue. I have a landing page on my website outside of the WordPress installation. If I upload the page INTO the WordPress installation, can I add the estore add to cart button to that page enabling it to work with the Wp Affiliate software? (This is an HTML page prepared in Adobe GoLive.)

    I tried a template to strip the sidebars off the WordPress page to see if this would enable me to recreate the landing page. But when I stripped off the sidebars, fancy2 stretches across the page. Maybe a column would resolve this, but I’m still having trouble renaming the WP permalinks (even though I found a great plugin for this). It must be the PHP 4…

    Any suggestions are appreciated.

    May 21, 2011 at 11:56 pm #31748
    amin007
    Participant

    WordPress plugins only work in pages created by your WordPress (it won’t work on standalone HTML pages). You should not use PHP4 anymore. WordPress from it’s next release will make the minimum requirement PHP5 and unless you are ready for it you will be stuck with old WordPress version.

    December 24, 2011 at 2:00 am #31749
    DebraReed
    Member

    My product has variations. Is there a way to do this same thing from my landing page? Meaning, customer wants to buy product A, variation 1 from landing page. Can I do this with a specific URL?

    December 24, 2011 at 8:26 am #31750
    admin
    Keymaster

    I added an option to specify variation but it won’t be able to handle variations with price change. You can add variation like this:

    [http://www.example.com/?wp_eStore_add_to_cart=1&variation1=Small&variation2=Red]

    “Small” and “Red” are variations in this example.

    Make sure to get a new build of the extra eStore shortcodes plugin before trying this.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 24 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ