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 10 years, 11 months ago by rainbowmuisc.
-
AuthorPosts
-
April 26, 2011 at 6:27 pm #3012spowebMember
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 #31737wpCommerceModeratorYou 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 #31738spowebMemberi 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 #31739wpCommerceModeratorYou 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 #31740rainbowmuiscMemberHi 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 #31741rainbowmuiscMemberUpdating wp eStore from 5.0.0 to 5.2.8 fixed it. Working now.
May 20, 2011 at 5:07 am #31742spowebMemberi 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 #31743amin007ParticipantPlease 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 #31744spowebMember[http://appealitnow.com/]
look at the buy now button
May 20, 2011 at 11:42 pm #31745amin007ParticipantIn 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:
May 21, 2011 at 2:17 pm #31746spowebMemberthanks amin.
May 21, 2011 at 3:49 pm #31747Cheryl RogersMemberI 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 #31748amin007ParticipantWordPress 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 #31749DebraReedMemberMy 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 #31750adminKeymasterI 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.
-
AuthorPosts
- You must be logged in to reply to this topic.