Category Archives for "OTO"

Troubleshooting 1-Click Upsells

1) Problem: Getting an error that looks like this after purchase – 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()'d code on line 20

Solution: Create missing file.

Every buy button generated by DAP for or Paypal Payments Pro, will look something like this…

<form name=”generate_authnet” method=”post” action=””>
<input type=”hidden” name=”item_name” value=”DAP Upsell Tree – (T)”/>
<input type=”hidden” name=”description” value=”DAP Upsell Tree For” />
<input type=”hidden” name=”amount” value=”97.00″ />
<input type=”hidden” name=”trial_amount” value=”0.01″ />
<input type=”hidden” name=”total_occurrences” value=”1″ />
<input type=”hidden” name=”is_recurring” value=”Y” />
<input type=”hidden” name=”recurring_cycle_1″ value=”365″ />
<input type=”hidden” name=”recurring_cycle_2″ value=”365″ />
<input type=”hidden” name=”recurring_cycle_3″ value=”365″ />
<input type=”hidden” name=”payment_succ_page” value=”” />
<input type=”hidden” name=”payment_gateway” value=”authnet” />
<input type=”hidden” name=”is_submitted” value=”Y” />
<input type=”submit” value=”Buy Now” />

If you see the line in bold above, you will see the field…


… pointing to the first upsell…

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.


a) Either create an HTML page called upsell1.html in the dap folder.

b) Or change the name of the file in the buy-button form code above, to be whatever your actual file name is.

c) Or if you don’t wish to do any upsells, then put the URL of your final thank you page in that field’s value.

2) Question: How do I use my own button with the shopping cart script?

Look for this in the DAP generated button code:
input type=”submit” value=”Buy Now”

Replace it with your own image :
For example –
input type=”image” src=”/images/btn-order.png” value=”Buy Now”

If images folder is at the root of your site, set src = /images/btn-order.png. If it’s under dap folder, the src tag should be set to “/dap/images/btn-order.png”.


One-Time Offers (OTO)

OTO’s are now part of DAP. And they’re available for free to all DAP users.

This OTO script can also be used for making Upsells and Downsells too!

Only thing you have to remember is, that these won’t be 1-Click Upsells or 1-Click Downsells.  If you want true 1-Click Upsells, then do check out our plugin, Upsell-Tree, which allows you to do exactly that.

The Basics

  1. There is a file in your dap folder, called continue.php . This is the OTO script.
  2. Create and upload as many upsell and downsell pages – named, say, upsell1.html, downsell1.html, upsell2.html, downsell2.html – etc and store them in your root folder – the folder where your home page is (not in the dap folder).

Setting up continue.php

When you set up your buy button, after the sale, configure the “return url” to be:

Of course, you should have already created a page called upsell1.html and uploaded it to the root of your web site (where your home page is).

So after your buyer has purchased your product, and arrive at this first upsell page, the URL they see in their browser will actually look like…

They will not see the text “/upsell1.html” in the url, because continue.php would have already stripped out the file name from the end of the link.

So even if they bookmark it or share it with others, the URL they see will just be – which means they can’t get back to that page, and neither will the people they have shared the link with.

On each upsell page, you can make any offer you want. Let’s say you put the buy button on this upsell page to buy a different product. Now when you create the buy button for this new upsell product, make sure the “return url” for that button, is now…

And you can also put a “No Thanks” button on each of these upsell pages, which could in turn take them either to a downsell page, or to an order completion page (where you thank them for your purchase).

Button Code For “No Thanks”

If your “No Thanks” button is going to lead to a downsell page, then here’s the code:

<form action=“” method=”post” >
<input type=”submit” value=”No, Thanks. I’ll skip this special offer” />

If your “No Thanks” button is going to lead to a final thank you page, where there are no more upsells or downsells, and where you simply thank your buyer for the purchase, then the code for that is:

<form action=“” method=”post” >
<input type=”submit” value=”No, Thanks. I’ll skip this special offer” />

Yes, you do need to be just a little bit technical for this. So, if you absolutely did not understand anything written above, then you should probably not be attempting to be doing OTO’s.

But if you simply have questions about how to use this for what you’re thinking to do, please feel free to ask them in the comments below.

– Ravi Jayagopal