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 2 3 4 [5] 6 7 8   Go Down

Author Topic: New Paypal Mod on a customizable page. For: cpg1 .3x and 1.4x - updated 11-12-05  (Read 163887 times)

0 Members and 1 Guest are viewing this topic.

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38
Re: Trouble adding more than ten different prices to PayPal Mod
« Reply #80 on: December 14, 2005, 06:51:10 pm »

I am having trouble customizing the pricing options with this PayPal mod. The problem is that I would like to have 16 different prices, but only ten of them show up.

This is what my modified section from the orders.php file looks like:


// third option or "Standards and empty fields"
if ($pricing_setup=="Standards"||$pricing_setup=="standards"||$user1=="")
   {
   $Option1    = " 4\" x 6\" Print Only @5.00 USD ";
   $Desc1      = " 4\" x 6\" Print Only - $5.00 USD ";
   $Option2    = " 4\" x 6\" Print with 5\" x 7\" Matte @10.00 USD ";
   $Desc2      = " 4\" x 6\" Print with 5\" x 7\" Matte - $10.00 USD ";
   $Option3    = " 5\" x 7\" Print Only @12.50 USD ";
   $Desc3      = " 5\" x 7\" Print Only - $12.50 USD ";
   $Option4    = " 5\" x 7\" Print with 8\" x 10\" Matte @18.50 USD ";
   $Desc4      = " 5\" x 7\" Print with 8\" x 10\" Matte - $18.50 USD ";
   $Option5    = " 8\" x 10\" Print Only @16.00 USD ";
   $Desc5      = " 8\" x 10\" Print Only - $16.00 USD ";
   $Option6    = " 8\" x 10\" Print with 11\" x 14\" Matte @24.00 USD ";
   $Desc6      = " 8\" x 10\" Print with 11\" x 14\" Matte - $24.00 USD ";
   $Option7    = " 8\" x 12\" Print Only @16.00 USD ";
   $Desc7      = " 8\" x 12\" Print Only - $16.00 USD ";
   $Option8    = " 8\" x 12\" Print with 11\" x 14\" Matte @24.00 USD ";
   $Desc8      = " 8\" x 12\" Print with 11\" x 14\" Matte - $24.00 USD ";
   $Option9    = " 11\" x 14\" Print Only @23.00 USD ";
   $Desc9      = " 11\" x 14\" Print Only - $23.00 USD ";
   $Option10   = " 11\" x 14\" Print with 16\" x 20\" Matte @32.00 USD ";
   $Desc10     = " 11\" x 14\" Print with 16\" x 20\" Matte - $32.00 USD ";
   $Option11   = " 12\" x 18\" Print Only @32.00 USD ";
   $Desc11     = " 12\" x 18\" Print Only - $32.00 USD ";
   $Option12   = " 12\" x 18\" Print with 18\" x 24\" Matte @40.00 USD ";
   $Desc12     = " 12\" x 18\" Print with 18\" x 24\" Matte - $40.00 USD ";
   $Option13   = " 16\" x 20\" Print Only @39.00 USD ";
   $Desc13     = " 16\" x 20\" Print Only - $39.00 USD ";
   $Option14   = " 16\" x 20\" Print with 20\" x 24\" Matte @46.00 USD ";
   $Desc14     = " 16\" x 20\" Print with 16\" x 224\" Matte - $46.00 USD ";
   $Option15   = " 20\" x 30\" Print Only @45.00 USD ";
   $Desc15     = " 20\" x 30\" Print Only - $45.00 USD ";
   $Option16   = " 8 Wallets @8.00 USD ";
   $Desc16     = " 8 Wallets - $8.00 USD ";
 }


Thanks for the help with more than 10 price options!  - I should have been able to do that myself but could see the forest for the trees!

Now I have another question:
On the PayPal Shopping Cart Page a # sign followed by a number appears after the item description in the item box. What is that number? See the following screen shot. In this example the number is 27. However, this number changes for different items. So again, what is this number?

(http://www.gontzphotography.com/screenshot.gif)

Thanks!
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

@Tgonz,

That little #number is your images "PID".  If you go to that image on your website, look at the URL and check that number against the PID number in your URL.   This is there as a kind of fail-safe system.  If the image ordered and the PID doesn't match, you may need to confirm the ordered image with the customer.  Very infrequently, images do not display properly in coppermine.  So what the customer thinks they are ordering may not actually be what's being listed.

Dennis

Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

tgontz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 38

Thank you, that is good to know.

Also, your PayPal mod and support is awesome!

Thanks again.
Logged

BTPlus

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

@madeinhawaii,

If I were to be asked to vote, I would vote this mod the most important Coppermine mod to date. I just finished installing it. I will use it for one of my photography clients. I had some trouble with the instructions, but was able to figure everything out with the posts from yourself, Casper, and Massive.

Thanks,
Kris
Logged

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

Hi,

I tried to setup different paypal accounts for each member of my site as you told me with
Code: [Select]
if ($owner == uploader1)
{$paypal_ID = uploader1's_ID@whatever.com;}
else
if ($owner == uploader2)
{$paypal_ID = uploader2's_ID@whereeverelse.com;}
else
if ($owner == uploader3)
{$paypal_ID = uploader3's_ID@someotherjoint.com;}
etc...
else
{$paypal_ID = modcreator's_ID@my_email.com;}  //default ID use mine if you can't think of one

But it doesn't work

I always get this error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /homepages/42/d104570201/htdocs/panwild2/orders.php on line 177


Thanx
Logged
In my view you cannot claim to have seen something until you have photographed it

Nibbler

  • Guest

Post the exact code you used.
Logged

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

Another question,

Some of the photographers I'm working with does not have any paypal accoung (Whatever the reason)
Would it be possible to send the "place order" result  by email to the photographer???

Thanx
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

Another question,

Some of the photographers I'm working with does not have any paypal accoung (Whatever the reason)
Would it be possible to send the "place order" result  by email to the photographer???

Thanx

Short of using IE and clicking File/Send/Page by email...    I don't see how it can be done.
How would your photographer process credit cards ? 

What you are asking for is not very secure and not something that would promote consumer confidence.

Your best bet is to collect the money for them, and to charge them a small percentage for your services.

Dennis
PS... don't forget my email address in the default paypal line.


Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

Here is the code I've used to setup different paypal accounts

Code: [Select]
Print <<<EOT
if ($owner == 3)
{$paypal_ID = test1@netfalls.com;}
$currency_code = "EUR";
else
if ($owner == 2)
{$paypal_ID = test2@netfalls.com;}
$currency_code = "USD";


I still get the following error:
Parse error: parse error, unexpected T_SL in /homepages/42/d104570201/htdocs/panwild2/orders.php on line 173

Thanx
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

Here is the code I've used to setup different paypal accounts

Code: [Select]
Print <<<EOT
if ($owner == 3)
{$paypal_ID = test1@netfalls.com;}
$currency_code = "EUR";
else
if ($owner == 2)
{$paypal_ID = test2@netfalls.com;}
$currency_code = "USD";

I still get the following error:
Parse error: parse error, unexpected T_SL in /homepages/42/d104570201/htdocs/panwild2/orders.php on line 173

Thanx

Netfalls,

As mentioned earlier,  the if/else has to come before or at least outside of any "print <<<EOT" or "echo <<<EOT" block.

Secondly, you need to embrace the entire if..do section with { } .
so... what you have should be something like:

Quote
if ($owner == 3)
{$paypal_ID = test1@netfalls.com;
$currency_code = "EUR";}
 
else

if ($owner == 2)
{$paypal_ID = test2@netfalls.com;
$currency_code = "USD";}

else

{$paypal_ID = madeinhawaii@hawaii.r.com;
$currency_code = "USD";}

Print <<<EOT



Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

Thanx but I tried it and still get some error msg
Parse error: parse error, unexpected '@' in /homepages/42/d104570201/htdocs/panwild2/orders.php on line 174
Logged
In my view you cannot claim to have seen something until you have photographed it

Nibbler

  • Guest

You need quotes around the email addresses.

Code: [Select]
"madeinhawaii@hawaii.r.com";
Logged

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

The error is gone but if I place an order it's always going on the default account madeinhawaii@hawaii.r.com
I'm sure that it does not disturb you much but.....  :-)

Thanx
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

The error is gone but if I place an order it's always going on the default account madeinhawaii@hawaii.r.com
I'm sure that it does not disturb you much but.....  :-)

Thanx

 ;) sounds like it's working perfectly to me.   btw, did you define the $owner variable in the variable section?

Also try placing the id numbers 2,3,4, in quotes as well.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

I have it in the diasplayimage.php

Code: [Select]
$pos2 = isset($_GET['pos']) ? (int)$_GET['pos'] : 0;
$cat2 = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
$album2 = isset($_GET['album']) ? $_GET['album'] : '';
$owner =  $row['owner_id'];

Is that right?
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

should be in the orders.php file.

somewhere in the section above the "set paypal ID and currency type"

Quote
  $user2 = $row['user2'] ;
   $user3 = $row['user3'];
   $user4 = $row['user4'];
   $keywords = $row['keywords'];

// Set paypal ID and currency type
   $paypal_ID = "madeinhawaii@hawaii.rr.com";
   $currency_code = "USD";

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

It's working perfectly now.

Thank you very much
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

netfalls,

right under that if/else block, try that language thing.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

netfalls

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 58
    • Netfalls

I will try it but it's not for the same website.

If you wanna see how it works now >> www.panwild.com I still have a few things to adapt

Thanx a lot
Logged
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography

netfalls,

everytime you show me something it looks more and more complex.  ;)

Looks good.

Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.
Pages: 1 2 3 4 [5] 6 7 8   Go Up
 

Page created in 0.027 seconds with 19 queries.