I am trying to mod CMG to allow print fulfillment thru a 3rd party called PrintRoom. (
www.printroom.com). They provide an open api for photographers with a Professional PrintRoom account to allow hosting thru the photographer's own gallery (e.g. - Coppermine), but fulfillment thru their printing system including cart, fulfillment, shipping, etc. To add photos to the printroom.com fulfillment system, a form button is created on the photographer's web pages, which pass the information about the photograph (image and thumbnail url), the photographer's account name, pricing info, etc.
The following is an example of the form code necessary to accomplish the linkage (very similar to Casper's Paypal hack for v1.3):
<form METHOD="POST" NAME="PrintPicture" ACTION="
http://www.printroom.com/AddImageToCart.asp">
<input type="HIDDEN" name="partner" value="test_partner_account_name">
<input type="HIDDEN" name="add_images_url" value="
http://www.aa.com/page1.htm">
<input type="HIDDEN" name="image_thumb" value="
http://www.aa.com/image/image1_t.jpg">
<input type="HIDDEN" name="image_preview" value="
http://www.aa.com/image/image1_p.jpg">
<input type="HIDDEN" name="image_url" value="
http://www.aa.com/image/image1.jpg">
<input type="HIDDEN" name="image_thumb" value="
http://www.aa.com/image/image2_t.jpg">
<input type="HIDDEN" name="image_preview" value="
http://www.aa.com/image/image2_p.jpg">
<input type="HIDDEN" name="image_url" value="
http://www.aa.com/image/image2.jpg">
<input type="HIDDEN" name="ship_to_name" value="John Smith">
</form>
I am not a programmer, but I have been able to hack into the code, submit buttons based on Casper's work with Paypal. I don't know the variable name(s) for the "image_thumb" or "image" urls to pass them correctly. Can anyone help me with this? Once completed, I believe that this will be very valuable to any photographer looking for online fulfillment thru CMG
thx, Mark