forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: Jeremy Rasmussen on July 31, 2006, 09:47:01 pm

Title: Photo Shop Cart :: Feature Request
Post by: Jeremy Rasmussen on July 31, 2006, 09:47:01 pm
(Looking in the general direction of Stramm) :)

The Photo Shop Cart works great.  Now I'm wondering if we can add a feature...

At checkout, where the order is reviewed where you click the submit button that saves to the database and sends the email, would it be possible to add an extra step that carries the order total data to a type of payment solution?  In my case that would be Pay Pal however I'm sure there are other automated payment gateways this could work with.

I believe it would require the interation of Pay Pal's "Buy It Now" feature wich only requires some basic information, specifically the total price and the email address to where the money is going and then Pay Pal collects the rest of the data.

Buy it now code:
Code: [Select]
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@youremail.com">
<input type="hidden" name="item_name" value="Item Name">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="amount" value="0.00">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

I figure by replacing
Code: [Select]
<input type="hidden" name="amount" value="0.00">in paypal's code with the global $tot_price so it's
Code: [Select]
<input type="hidden" name="amount" value="$tot_price"> it should work, assuming we have placed all the code in the correct place, right?

anyway, please consider. I am willing to help work on the code however I'm not experienced enough to take on the project on my own.

Thanks,

Jeremy

P.S. If this is posted in the wrong section I apologize in advance
Title: Re: Photo Shop Cart :: Feature Request
Post by: Stramm on August 05, 2006, 06:21:36 pm
of course it's possible... I'd even say it's easy to do. In the file photo_shop_checkout.php you can do whatever you want. Totally remove the contents and write your own checkout script. Use the existing one and just remove the email confirmation and pass the data to some billing solution...

I'd use the existing checkout and let it pass the data to your biller somwher below
Code: [Select]
if (photoshop_add_data($shop_array, $order_id))here the shop has added the necessary data to it's own database.

Nice is some extra to catch biller feedback (most have some cgi that passes data back [when paid])--- this you can let your script grab and add it to the db, the script sends you an email that a client has paid and you should take care of sending the items.

If you ask me to do that... I'll have to say no. I do not use any third party biller atm and therefore I'm not able to test things.
Title: Re: Photo Shop Cart :: Feature Request
Post by: sklndr on August 14, 2006, 11:05:01 pm
Is there a way or a hack for the cart in order to make the cart options specific to the product? I have different price ranges for different categories of prints..  any help would be appreciative.. thx in advanced
Title: Re: Photo Shop Cart :: Feature Request
Post by: BikiniPhotoBank on October 02, 2006, 08:30:26 am
about making the plug in work with paypal, did the above hack work? Do i need to do anything else besides these changes?
When I go to the shop admin to view the orders they do not list the file names of the photos ordered is this normal or did i mess it up somehow?
Please help!
Title: Re: Photo Shop Cart :: Feature Request
Post by: Joachim Müller on October 02, 2006, 10:53:21 am
A feature request thread is just that: you request a feature for future versions. It is not a support thread, don't expect immediate answers. We're not Santa Claus, you can not just wish for code to be created and we will do so no matter what.
Title: Re: Photo Shop Cart :: Feature Request
Post by: Stramm on October 03, 2006, 11:24:44 am
I was thinking about adding that for a long time.
Finally some sort of gatway is implemented now in Photo Shop v1.2. Also two bugs related to the shipping costs addition have been fixed.

It needs some testing first... so I'm looking for volunteers to do just that. If you're interested PM me with your email addy
Title: Re: Photo Shop Cart :: Feature Request
Post by: Stramm on October 03, 2006, 08:00:51 pm
Done
Title: Re: Photo Shop Cart :: Feature Request
Post by: KlausH on October 04, 2006, 03:47:29 pm
How? :)
Title: Re: Photo Shop Cart :: Feature Request
Post by: Stramm on October 04, 2006, 03:49:05 pm
How... ??
hmm, have a look at the shop plugin thread

http://forum.coppermine-gallery.net/index.php?topic=32231.0
Title: Re: Photo Shop Cart :: Feature Request
Post by: KlausH on October 04, 2006, 04:07:31 pm
Missed the update! Thanks! Great job!