PDA

View Full Version : EE Commerce


iamhives
3rd of November 2002 (Sun), 22:51
Upgrade went smooth - very nice

I'm trying to set EE Commerce up. I have created my own EE Commerece template and assigned a path but I cannot be sure what I have to change to link with my existing Paypal account. Which php files do I need to change with my Paypal info and email etc etc

I'm currently getting the message COMMERCE SYSTEM FOR PAUL'S PAYPAL TEMPLATE IS UNDER MAINTENANCE. PLEASE COME BACK LATER.

Pekka
4th of November 2002 (Mon), 09:28
The paypalcart.php contains all relevant data

$seller_email is your paypal email.

The pricing selection is not so straightforward to change, as it is PHP code - there are three places where the price list code must be edited.

1. default size is

$newsize = "10x15"; // default paper size

2. price list is

if ($newsize == "8x10") $price = "$17.00";
if ($newsize == "10x15") $price = "$35.00";
if ($newsize == "20x30") $price = "$150.00";

3. and it must match with menu

option ("8x10",$newsize,"8x10"");
option ("10x15",$newsize,"10x15"");
option ("20x30",$newsize,"20x30"");



If you have only one price and don't need the menu use one line to define the price:

$price = "$34.00";

and remove lines

------------------------------
if ($newsize == "8x10") $price = "$17.00";
if ($newsize == "10x15") $price = "$35.00";
if ($newsize == "20x30") $price = "$150.00";
------------------------------

And whole code block

------------------------------
eecommerceform("FORM_submit_size_change", $scriptname, "", "POST", "submit_this");

?>

1. Select print size:

iamhives
4th of November 2002 (Mon), 12:45
Thanks Pekka - I made a silly mistake. Everything in the basic ecommerce function is now working nicely.

Now a few questions about how to customize it and make it a little more flexible !! I realize the eecomerce features are relatively new and you have been focusing on other more basic things.

1) If I wanted to disable the paper type selection what do I need to delete(or comment out) in the php file. I tried various things but can't quite get it to work - I'm not a programmer - yet !

2) Can it be set-up where the email option allows the user to select multiple pictures before the email is sent - currently it seems that the user has to send an email for each picture seperately- not too flexible. Also, in my testing it doesn't seem that the address is sent in the email even when it is entered


3) A much more complex question - How could I make pricing variable based on the options selected. One easy way to do this would obviously to have multiple different options with different prices e.g 8x180 unframed - price $10, 8X10 framed $50

However, I'd like to make the first selection a size selection and the second selection a framed/unframed selection. In this case pricing would then be based on the combination of these variables and there would be two prices for each size.

Could you make the pricing section be more flexible by allowing the user to select the number of pricing 'dimensions', the number of selections for each and the text and price for each.

E.g 3 dimesions - size (with 3 sizes), paper(with three options - glossy lustre, matte , framing (with 2 options, framed, unframed). In this case there would be 3 size options, 2 framing selections and 3 paper selections making a total of 18 different prices.

Would it be possible to automate the set-up of this somewhat and allow the owner to set these number of dimensions and options in the eecommerce editor and the code then is flexible enough to deal with the required number of dimensions, prices etc ?

I know from my work experience that commercial pricing options can get very complex but this sort of feature would add a lot of flexibility to the ee commerce feature


thanks again - things a looking great !!

Pekka
5th of November 2002 (Tue), 13:25
iamhives wrote:
Thanks Pekka - I made a silly mistake. Everything in the basic ecommerce function is now working nicely.

Now a few questions about how to customize it and make it a little more flexible !! I realize the eecomerce features are relatively new and you have been focusing on other more basic things.

Hi,

Yes, I was thinking to leave the template customizing to users, and especially to their friends who know PHP :)
But of course I'll assist as much as I can.

1) If I wanted to disable the paper type selection what do I need to delete(or comment out) in the php file. I tried various things but can't quite get it to work - I'm not a programmer - yet !

I'm not sure if my template matches RC template exactly any more, but remove:

---------------------------------------
?>

2. Choose paper quality:

iamhives
5th of November 2002 (Tue), 17:54
As always Pekka - very helpful. I agree - it is best to provide the framework and then everyone can customize to his/her needs.

I used to code a long time ago but am out of practice. Is there a concise book on php that you recommend - this way i would have to bother you any more !

One other question. When I try to use the copy/delete photo utility delete does not seem to function.

Pekka
6th of November 2002 (Wed), 05:29
iamhives wrote:
I used to code a long time ago but am out of practice. Is there a concise book on php that you recommend - this way i would have to bother you any more !

SAM's "teach yourself PHP 4 in 24 hours" is quite good. But the best manual is everything under http://www.php.net/ , not any book.

One other question. When I try to use the copy/delete photo utility delete does not seem to function.

Probably because the photo is the last occurrence of it in any exhibition. See system messages.