Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › How to Make Add to Cart button go to Checkout from separate PHP page
- This topic has 1 reply, 2 voices, and was last updated 13 years, 5 months ago by amin007.
-
AuthorPosts
-
June 22, 2011 at 6:28 pm #3645GlobalBodyweightMember
Hello, I have a tricky question re eStore. I use Clickbank for one of my products, and just installed LinkLok with it, which creates a Thank You/Download page outside of WP (basically, you make it a PHP and store it on the same root as rest of the site). It mirrors the Thank You page we use for eStore purchases of the same product directly from our site (although we keep it hidden for special people only, so as not to anger all our clickbank affiliates). When people get to this Thank You page, where they can download the electronic videos, they are also offered the option to purchase an additional hard copy DVD. I use this short code: [wp_eStore_fancy1 id=5] It then takes them to the usual eStore checkout page.
However, the Add to Cart button isn’t working on the LinkLok Thank You page. The rest of the eStore cart shows up, including the Thumbnail and Product Name (which links to the correct sales page). All of of the WP links and plug-ins still work from this LinkLok page, except for this Add to Cart Button. When you click it, it just reloads the Thank You page.
I looked at the source code for the page, and I wonder if the problem might be in this code here:
<object class=”eStore_button_object”><form method=”post” class=”eStore-button-form” action=”” style=”display:inline” onsubmit=”return ReadForm1(this, 1);
Of course, I don’t know much about code, so I could be looking at the wrong things.
Because the page in question is LinkLoked, the only way to access it is after making a purchase through ClickBank. If you need to see the page, I can PM you the info to do a fake purchase and get to the page.
Thanks!
June 23, 2011 at 3:08 am #33651amin007ParticipantThe plugin won’t be able to add the product to the shopping cart on this page as it is not part of the WordPress installation. What you might want to do is make the “Add to Cart” button take the visitor to a WordPress page where he/she can actually add the item to the cart.
You can specify a URL to go to when the “add to cart” for a product is clicked in the “Button Redirect Target URL” field of that product. All this will do is send the visitor to that URL when the button is clicked. You can also use the following technique so when the user clicks on the button it will actually go to the specified URL and add the item to the cart:
https://support.tipsandtricks-hq.com/forums/topic/shopping-cart-has-one-product-by-default
-
AuthorPosts
- You must be logged in to reply to this topic.