News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

New Paypal Mod on a customizable page. For: cpg1 .3x and 1.4x - updated 11-12-05

Started by artistsinhawaii, October 03, 2005, 02:47:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tgontz

Quote from: tgontz on December 14, 2005, 01:10:43 AM
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?

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.gontzphotography.com%2Fscreenshot.gif&hash=8bcf59f91de163b2ea3685838b38e6eda61cf900)

Thanks!

artistsinhawaii

@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

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

Thank you, that is good to know.

Also, your PayPal mod and support is awesome!

Thanks again.

BTPlus

@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

netfalls

Hi,

I tried to setup different paypal accounts for each member of my site as you told me with
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
In my view you cannot claim to have seen something until you have photographed it


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
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

Quote from: netfalls on December 18, 2005, 04:16:23 PM
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.


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

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


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
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

Quote from: netfalls on December 19, 2005, 11:32:22 AM
Here is the code I've used to setup different paypal accounts


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
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

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
In my view you cannot claim to have seen something until you have photographed it

Nibbler

You need quotes around the email addresses.

"madeinhawaii@hawaii.r.com";

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
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

Quote from: netfalls on December 20, 2005, 03:33:46 PM
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
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

I have it in the diasplayimage.php

$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?
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

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
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

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

artistsinhawaii

netfalls,

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

Dennis
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

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
In my view you cannot claim to have seen something until you have photographed it

artistsinhawaii

netfalls,

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

Looks good.

Dennis
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.