{"id":1359,"date":"2011-03-20T17:20:05","date_gmt":"2011-03-21T00:20:05","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=1359"},"modified":"2014-03-01T22:35:00","modified_gmt":"2014-03-02T06:35:00","slug":"troubleshooting-1-click-upsells","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/troubleshooting-1-click-upsells\/","title":{"rendered":"Troubleshooting 1-Click Upsells"},"content":{"rendered":"<h3>1) Problem: Getting an error that looks like this after purchase &#8211; using 1-Click Upsells.<\/h3>\n<blockquote><p><code>Warning: file_get_contents(\/home\/mysite\/dap\/upsell1.html) [function.file-get-contents]: failed to open stream: No such file or directory in \/home\/mysite\/dap\/continue.php(1) : eval()'d code on line 20<br \/>\n<\/code><\/p><\/blockquote>\n<p><strong>Solution: <\/strong>Create missing file.<\/p>\n<p>Every buy button generated by DAP for Auth.net or Paypal Payments Pro, will look something like this&#8230;<\/p>\n<blockquote><p>&lt;form name=&#8221;generate_authnet&#8221; method=&#8221;post&#8221; action=&#8221;https:\/\/www.DigitalAccessPass.com\/dap\/buy.php&#8221;&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;item_name&#8221; value=&#8221;DAP Upsell Tree &#8211; Auth.net (T)&#8221;\/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;description&#8221; value=&#8221;DAP Upsell Tree For Authorize.net&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;amount&#8221; value=&#8221;97.00&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;trial_amount&#8221; value=&#8221;0.01&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;total_occurrences&#8221; value=&#8221;1&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;is_recurring&#8221; value=&#8221;Y&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;recurring_cycle_1&#8243; value=&#8221;365&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;recurring_cycle_2&#8243; value=&#8221;365&#8243; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;recurring_cycle_3&#8243; value=&#8221;365&#8243; \/&gt;<br \/>\n<span style=\"color: #000000;\"><strong>&lt;input type=&#8221;hidden&#8221; name=&#8221;<span style=\"color: #ff0000;\">payment_succ_page<\/span>&#8221; value=&#8221;<span style=\"color: #ff0000;\">https:\/\/www.YourSite.com\/dap\/continue.php?url=\/dap\/upsell1.html<\/span>&#8221; \/&gt;<\/strong><\/span><br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;payment_gateway&#8221; value=&#8221;authnet&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;hidden&#8221; name=&#8221;is_submitted&#8221; value=&#8221;Y&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;Buy Now&#8221; \/&gt;<br \/>\n&lt;\/form&gt;<\/p><\/blockquote>\n<p>If you see the line in bold above, you will see the field&#8230;<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"><strong>payment_succ_page <\/strong><\/span><\/p><\/blockquote>\n<p>&#8230; pointing to the first upsell&#8230;<\/p>\n<blockquote><p><strong><span style=\"color: #ff0000;\"><strong>https:\/\/www.YourSite.com\/dap\/continue.php?url=\/dap\/upsell1.html<\/strong><\/span><\/strong><\/p><\/blockquote>\n<p>What this essentially means, is that once the payment for the front end order is complete, you want the contents of the page \/dap\/upsell.html to be presented as the first upsell.<\/p>\n<p>So&#8230;<\/p>\n<p>a) Either create an HTML page called <strong>upsell1.html<\/strong> in the <strong>dap<\/strong> folder.<\/p>\n<p>b) Or change the name of the file in the buy-button form code above, to be whatever your actual file name is.<\/p>\n<p>c) Or if you don&#8217;t wish to do any upsells, then put the URL of your final thank you page in that field&#8217;s value.<\/p>\n<h3>2) Question: How do I use my own button with the shopping cart script?<\/h3>\n<p>Look for this in the DAP generated button code:<br \/>\ninput type=&#8221;submit&#8221; value=&#8221;Buy Now&#8221; <\/p>\n<p>Replace it with your own image :<br \/>\nFor example &#8211;<br \/>\ninput type=&#8221;image&#8221; src=&#8221;\/images\/btn-order.png&#8221; value=&#8221;Buy Now&#8221;<\/p>\n<p>If images folder is at the root of your site, set src = \/images\/btn-order.png.  If it&#8217;s under dap folder, the src tag should be set to &#8220;\/dap\/images\/btn-order.png&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) Problem: Getting an error that looks like this after purchase &#8211; using 1-Click Upsells. Warning: file_get_contents(\/home\/mysite\/dap\/upsell1.html) [function.file-get-contents]: failed to open stream: No such file or directory in \/home\/mysite\/dap\/continue.php(1) : eval()&#8217;d code on line 20 Solution: Create missing file. Every buy button generated by DAP for Auth.net or Paypal Payments Pro, will look something like [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[62,60,91,24,56,30,26,57],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1359"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=1359"}],"version-history":[{"count":10,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1359\/revisions"}],"predecessor-version":[{"id":4249,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/1359\/revisions\/4249"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=1359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=1359"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=1359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}