Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Photo Shop Cart :: Feature Request  (Read 5918 times)

0 Members and 1 Guest are viewing this topic.

Jeremy Rasmussen

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Photo Shop Cart :: Feature Request
« 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
« Last Edit: October 03, 2006, 08:00:28 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop Cart :: Feature Request
« Reply #1 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.

sklndr

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Photo Shop Cart :: Feature Request
« Reply #2 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
Logged

BikiniPhotoBank

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: Photo Shop Cart :: Feature Request
« Reply #3 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Photo Shop Cart :: Feature Request
« Reply #4 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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop Cart :: Feature Request
« Reply #5 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

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop Cart :: Feature Request
« Reply #6 on: October 03, 2006, 08:00:51 pm »

Done

KlausH

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Photo Shop Cart :: Feature Request
« Reply #7 on: October 04, 2006, 03:47:29 pm »

How? :)
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop Cart :: Feature Request
« Reply #8 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

KlausH

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Photo Shop Cart :: Feature Request
« Reply #9 on: October 04, 2006, 04:07:31 pm »

Missed the update! Thanks! Great job!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.