coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: mdevane on July 11, 2004, 09:49:03 PM

Title: Photo fulfillment help needed
Post by: mdevane on July 11, 2004, 09:49:03 PM
I am trying to mod CMG to allow print fulfillment thru a 3rd party called PrintRoom. (www.printroom.com (http://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

Title: Re: Photo fulfillment help needed
Post by: mdevane on July 16, 2004, 03:05:54 AM
Folks -

Surely someone knows the answers to the questions I posed!  Just need some guidance on the variable names for the image & thumbnail url locations.  Is the best forum to ask about this, or should l move it to another?

Any/all help will be greatly appreciated.

Mark
Title: Re: Photo fulfillment help needed
Post by: Joachim Müller on July 16, 2004, 07:13:38 AM
the board "feature requests" deals with features users would like to see in future versions of coppermine, there's no actual support here. Just post what version of coppermine you're using and I'll move this thread into the proper support board.

GauGau
Title: Re: Photo fulfillment help needed
Post by: mdevane on July 16, 2004, 01:22:09 PM
v1.3

thx, Mark