This script will send your e-products as email attachments to buyers upon successful PayPal Buy Now Button transaction. The script can check product information to reject e-thieves who try to get unauthorized "discounts" with bogus Buy Now buttons.
The script includes a built-in Checkout simulator that allows you to test the delivery feature without accessing PayPal.
The script can email a transaction log to the administrator on IPN handler error and/or on every run of IPN handler. It can also log transactions on the server side. No databases are used. Designed to reduce the amount of test time and maintenance efforts of e-product delivery.
I've made much more expensive tests and each time I found the same issue in IPN ERROR log: result: ERROR : Invalid Seller Email: Ferry devant îlot [CProductInfoSub] where "Ferry devant îlot" is the ... Read More
Your script "find-path.php" running from public_html confirms the path I see, from the beginning, with FTP but when I modify the config.products.inc.php to match it, the simulator returns: ... Read More
Sure Tom, I can't run with browser your script "find-path.php" outside public_html so, how can I discover the path of "products" folder since the moment it is below the public_html but not the ... Read More
I'm trying to customize the e-mail message with my logo but I don't know where it must be located. It's now inside the products folder, so I've added into the <body> of config.txt this line: ... Read More
All right, I found a little syntax error in my config, now it's working perfectly, wonderful scrypt, thank you so much Tom! I was wondering to separate the button code from the rest of your ... Read More
Thank you so much for your script, very useful! I've carefully followed your installation instruction and uploaded your "web" folder, keeping his original name, to the root of my domain but ... Read More
I have been successfully using v1.03. It's a very good system, easy to install and simple to use - Do you have a changelog? Is there any point in upgrading from v1.03 to 1.06? - Would it be easy to ... Read More
I am having my website graphicarta .com for selling my images in four category how i use this script for Paypal automatic download. Please watch website and give download method for each category. ... Read More
Thank you Tom for the reply. Basically if the simulator works locally, when you go live it should provide the customer with the same result back on the site which would show the details of the ... Read More
Locally the script works great and get success. However when testing with PayPal sandbox it does not send back to site or I get error about buyer and or seller. I entered the correct email ... Read More
I just needed something simple to sell my documents, this was exactly what I needed. I like your approach to scripting. Simple, Functional, ergonomic, user friendly and a common sense approach to ... Read More
OK, this could be the PHP version issue. I'm aware that this error message appears on certain php installations but I haven't collected enough information to give you a general solution to solve it. ... Read More
good gracious, tom you make my tommy go yummi yummi and when i think of the good code your website gives to my surfing journey you make me go falling like a falling body. hmmmmmmnnnn.. such a great ... Read More
Like "HTTP Error 408", the error is too weird. I think there is something wrong outside of the script. I can't say what it is without looking into it, though. I don't think you can fix it just by ... Read More
Download links for all the scripts fail with this error --- Parse error: syntax error, unexpected T_CLASS, expecting T_FUNCTION in /home/phpkobo/public_html/oosite/sys/CDownload.class.php on line 509 ... Read More
I solved the two previous problems a) commenting on web / sim / include / CCheckoutSimulator.inc.php and comment out line 110 to suppress the error message b) on altervista.org I set the "connect ... Read More
Hi giampiero, Would you tell me your PHP version and the OS type of your web server( Windows, Linux )?
Saturday, June 8, 2013
e-Product Delivery Script: How to send plane text emails only
By default, e-Product Delivery Script will send buyers HTML emails as well as plane text emails.
If you want to force the script to send plane text emails only, you can remove the HTML section from product configuration files, or better disable it. You can disable HTML section by adding an underscore ( or any characters ) at the beginning of it like "_Html."
This upgrade is for advanced users who want to set up "virtual products" in e-Product Delivery Script.
So, what are "virtual products"?
Consider the following. You have 1000 products whose product configurations (e.g. "item_name", "amount", etc )
are exactly the same except, say, the file attachment.
The standard way to set up 1000 products is to create 1000 product folders and set up a product configuration file for each product.
As you can guess, it's really time comsuming and very hard to maintain. That's definitly the last thing you want to do.
Instead of creating 1000 product folders, you can set up one folder and modify the configurations on the fly.
That way, you can deliver all the products without setting up product folders for each of them.
Now, we need to take a look at the code where the script obtains product configurations.
Open web/ipn/sublcass/CProductInfo.inc.php in a text editor and
find the following php function:
function getProductInfo( $item_number, &$pi )
if ( !parent::getProductInfo( $item_number, $pi ) )
//-- [BEGIN] Modify the contents of $pi (ProductInfo)
// Write your code here
//-- [END] Modify the contents of $pi (ProductInfo)
The getProductInfo function is called when the script needs to get
the configurations of a product specified by $item_number, which is a product ID in PayPal terminology.
The function will pack the product configurations (e.g. "item_name", "amount", etc ) into the $pi array and
returns true if successful, or false otherwise.
The default implementation is that it calls parent::getProductInfo,
which loads config.txt into $pi.
parent::getProductInfo works only on products that have physical product folders on the web site.
To return configurations for virtual products, which don't have any physical product folders,
we need to modify a few lines of code there.
Before we proceed, let's make sure the specification of the modification.
The only product-001 has a physical product folder and it's config.txt is properly set up. There are no physcial folders for other products.
All the attachments for the products are stored in the "C:/MyAttachments/" folder. The filename of an attachment is the item_number followed by ".zip" For example, the attachment for "product-999" is "product-999.zip."
Similarly, you can replace other items in config.txt with anything you want.
Here is the list of items you can read and write:
Lastly, I want to point out that getProductInfo is the best place to modify
if you want to load the product configurations from other sources like a database.
If you want to load all the product configurations from the database instead of the product folders,
you can get rid of parent::getProductInfo because it's for loading
configurations from physical product folders.
Thursday, December 20, 2012
e-Product Delivery Script v1.03 Update
"e-Product Delivery Script" was updated to v1.03. I added a description
regarding enabling SMTP Authentication to web/config/config.email.inc.php
Also, cleaned up line-endings of each file for Windows users.