View Full Version : EE Commerce
Racer23
10th of October 2006 (Tue), 06:09
I appllied some photos to the ee commerce paypal template just like in 1.5 but I cannot see a buy photo button. Is there something else I might be missing to get this part functional?
pplfilho
10th of October 2006 (Tue), 10:29
I appllied some photos to the ee commerce paypal template just like in 1.5 but I cannot see a buy photo button. Is there something else I might be missing to get this part functional?
Same here.
[]s
Racer23
13th of October 2006 (Fri), 07:41
Anything?
jeronimo
13th of October 2006 (Fri), 07:51
I am not 100% shure, but I think I saw a statement in custom.php (in your language files) where some e-comerce button can be found. I think this pointed out to somewhere in your language dir.
I think it's word checking out :)
Pekka
13th of October 2006 (Fri), 10:54
The button is template variable $forsale_html
EE commerce has other bugs in 2.0, will share fixed files in 24 hours.
Racer23
13th of October 2006 (Fri), 18:01
ok thanks will wait for the fix
THANK YOU PEKKA!!!!
seanspeng
17th of October 2006 (Tue), 00:29
Any update on the Ecommerce fix?
Racer23
28th of October 2006 (Sat), 09:53
Bump???
yosemite
2nd of November 2006 (Thu), 19:40
any word on a fix yet? thanks cf
lost
4th of November 2006 (Sat), 12:17
Still waiting on the fix for EE Comerce?
Racer23
26th of November 2006 (Sun), 09:22
Anything yet Pekka?
eaceti
9th of December 2006 (Sat), 15:50
Hi! i am trying to add a paypal cart on the EE2 gallery, i don't understand how it works, i mean, how it doesn't work on the latest version. Does anyone knows a EE2 gallery that runs the EE_Commerce feature? Is it a shopping cart system or a direct link to paypal IPN for each photo? (i've never seen this option working)
Pekka
9th of December 2006 (Sat), 18:09
It does not work in 2.01. That was a casualty of early release. It'll work in 2.02 update which I'll post tomorrow.
Racer23
11th of December 2006 (Mon), 20:56
WAHOOOOO!!!! Thanks Pekka!
Pekka
12th of December 2006 (Tue), 19:38
See http://photography-on-the.net/forum/showthread.php?t=250579
eaceti
13th of December 2006 (Wed), 17:00
Hello again!
i still have no idea now this ee_commerce works. I've installed the new 2.02 over my 2.01 (which was over the 2, and the 2 over the 1.5 RC4) and still i can't figure out how to use this paypal cart option! The gallery works perfectly but in the admin area, i add some photos to the paypal DEMO ONLY template but nothing happens on the photo's page... what else shall i do?
maybe a clue: in the EE_commerce/photos properties/EE Commerce path (size path URL), i have the path of my large photos (not the path of the ee_commerce folder) is that normal?
by the way, where are you supposed to add the photo's price?
i ask again, does anyone knows a EE2 gallery with the paypal cart working, to see how it looks like?
thank you :)
Pekka
13th of December 2006 (Wed), 18:47
1. Choose "Paypal cart DEMO ONLY".
2. choose exhibition, select a photo and click "ADD TO TEMPLATE -->"
Now when you view that photo in photo page you see a link: "click here and choose ordering method". This link leads you to buying process. The link can be set as image in language files, and moved in template.
If you do not see a link in photo page, upload 2.02 templates again.
The EE Commerce template must be edited to suit your personal codes and prices. They are in folder "ee_commerce". Open ee_commerce/paypalcart.php in text editor and edit away. Of course editing will require some html/php knowledge if you want more customized solutions. Try ee_commerce/paypalcart2.php as an example.
PeterTaylor
14th of December 2006 (Thu), 04:33
Hi Pekka
I still do not see the "click here and choose ordering method" on the photo page.
I have uploaded the 2.02 update twice now but still do not see anything. My eCommerce was working with ee prior to the 2.00 update. So not sure what is happening, it may be that I have missed something fundamentally obvious, but any help would be appreciated.
Thanks
Peter
rid
14th of December 2006 (Thu), 10:07
Peter and Pekka,
I have the same problem. As a check I read the html source for the photo page, but there was no commerce-related code.
Thanks,
Ian.
Pekka
14th of December 2006 (Thu), 16:26
Oh, now I get it! Sorry! The template variable that prints the EE commerce link is currently there only in UDM style page. You will need to add it to standard photo page:
Go to "styles" editor, find section "Page templates" and there you see "EDIT" link next to photo content template. Click it and editor opens (it uses ftp so you need to have ftp home server set up in order to use the EE file editor). There find lines
<p class="ee_photo_description_text ee_css_paragraph">
<?php print $description_text_html; ?>
</p>
replace them with
<p class="ee_photo_description_text ee_css_paragraph">
<?php print $description_text_html; ?>
<br class="clear" />
<?php print $forsale_html; ?>
</p>
Now you should see the link in photo page, below photo description.
In short: add line
<?php print $forsale_html; ?>
into your photo page template, where you want the order link to appear.
UweB
15th of December 2006 (Fri), 01:16
I use the e-commerce mail template which works from the info card listing or the details list via a "mail" link.
I added the lines to the template. The link "choose ordering method" is now below the description of the photos but when i click on it i can see a "back" link only. Nothing more is there...
Pekka
15th of December 2006 (Fri), 05:27
Again this was my mistake: the updated template was only in UDM template pages in update zip. Here's the correct template for /templates/pages/ee_2_default/ee_commerce/default_XHTML_content.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="imagetoolbar" content="no" />
<title>EE Commerce</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print $charset_code_html; ?>" />
<meta name="description" content="<?php print $content_description_html; ?>" />
<meta name="keywords" content="<?php print $content_keywords_html; ?>" />
<meta name="generator" content="Exhibit Engine <?php print $version; ?>" />
<meta name="robots" content="index,follow" />
<?php
@include("./" . $eecommerce_layout);
?>
<link rel="stylesheet" type="text/css" media="screen,projection" href="./stylesheet.php?style_id=<?php print $style_id; ?>&currentpage=<?php print $currentpage; ?>" />
</head>
<body class="ee_css_background">
<?php
print $header_html;
include("./templates/extra_components/vertical_shadow.php"); // shadow
if ($s_on == "0") {
print $s_off_message;
exit();
}
?>
<div class="exhibit_engine">
<div class="ee_commerce ee_css_paragraph">
<?php print $ee_commerce_template_dropdown_html; ?>
<?php print $ee_commerce_form_html; ?>
<div><br /><br /><br /></div>
<?php print $backlink_html; ?>
</div>
</div>
<div class="navigationfooterholder">
<div class="navigationfooter">
<?php print $footer_html; ?>
</div>
</div>
</body>
</html>
UweB
15th of December 2006 (Fri), 06:44
Yipiehhh !
It works :-))
iceman
16th of December 2006 (Sat), 19:57
Has anyone created an ecommerce template to work with "Google Checkout"
That would be great!
Pekka
16th of December 2006 (Sat), 20:05
Has anyone created an ecommerce template to work with "Google Checkout"
That would be great!
The API is here: http://code.google.com/apis/checkout/samples/Google_Checkout_Sample_Code_PHP.html
But they have some requirements (libcurl, libxmp) and it does not work on PHP 5. Else I don' t know anything the prevents making it and EE commerce template - needs some programming knowledge though.
iceman
16th of December 2006 (Sat), 21:51
The API is here: http://code.google.com/apis/checkout/samples/Google_Checkout_Sample_Code_PHP.html
But they have some requirements (libcurl, libxmp) and it does not work on PHP 5. Else I don' t know anything the prevents making it and EE commerce template - needs some programming knowledge though.
Thanks Pekka. Since the Paypal template works great, and I don't have much programming knowledge, I think I'lll stick with Paypal for now.
yosemite
23rd of December 2006 (Sat), 16:53
if you only have one selection in ee commerce is there a way to make that the only option when folks choose "click here for ordering method"
instead of a drop down box with ------- and one choice anyway.
thnks
eaceti
24th of December 2006 (Sun), 03:35
Wow the code is simple but it works perfectly!
do you know the form code to give to the paypal cart the "Shipping & Handling" amount? it's always $0.00 USD whatever i buy and i can't find a way to change this $0 to something on the cart. I would like to set it to $5 for any amount of photos in the cart for example... i'm sure you have an idea
Thanks again Pekka! :D
PeterTaylor
24th of December 2006 (Sun), 05:43
Wow the code is simple but it works perfectly!
do you know the form code to give to the paypal cart the "Shipping & Handling" amount? it's always $0.00 USD whatever i buy and i can't find a way to change this $0 to something on the cart. I would like to set it to $5 for any amount of photos in the cart for example... i'm sure you have an idea
Thanks again Pekka! :D
Hi,
You can set this up on the PayPal web site. You need to login then goto ‘Profile’ then chose ‘Postage Calculations’ which can be found in the right hand column under Selling Preferences.
Hope this helps
Peter.
Pekka
24th of December 2006 (Sun), 07:14
if you only have one selection in ee commerce is there a way to make that the only option when folks choose "click here for ordering method"
instead of a drop down box with ------- and one choice anyway.
thnks
This is on todo list.
segal3
25th of December 2006 (Mon), 21:29
Pekka - I think you can 'trick' EE into doing that if you pass the template # that you want to use (as it does when you view your photos in the 'Info Card' setting and directly click which 'for sale' option you want) - just have to find where it constructs the URL...
xobix
7th of January 2007 (Sun), 18:39
does anybody know how i'm supposed to change the currency from the template to euro's? the least thing i change makes paypal say "please insert amount greater than zero..
thanks beforehand, robin
PeterTaylor
8th of January 2007 (Mon), 06:23
Hi xobix,
In the ee_commerce folder find the payalcart.php file.
At or around line 60 you should have the following block of code.
$itemname = $newsize . " photo print of " . $header . " ({$file})" . ", ({$price} each)";
$logolink = "";
$currency = "GBP";
$formname = "_xclick";
$formtarget = "paypal";
$action_URL = "https://www.paypal.com/cgi-bin/webscr";
$action_method = "POST";
$seller_email = "me@mysite.co.uk";
$code = time();
Change line 62 to $currency = "EUR" from $currency = "GBP";;
If line 62 does not exist then enter the $currency = "EUR";
Also check the code at around line 110 is the same as below, especially the line for currency code.
<?php
eecommerceform($formname, $action_URL, $formtarget, $action_method, $formname);
input_eecommerceform ("hidden", "cmd", "_cart");
input_eecommerceform ("hidden", "business", $seller_email);
input_eecommerceform ("hidden", "item_name", $itemname);
input_eecommerceform ("hidden", "item_number", $code);
input_eecommerceform ("hidden", "currency_code", $currency);
input_eecommerceform ("hidden", "amount", $price);
input_eecommerceform ("hidden", "image_url", "http://www.petertaylor-photographic.co.uk/ee/eecommerce.gif");
?>
xobix
11th of January 2007 (Thu), 17:57
First of all, thanks for helping peter, I really appreciate it.
My problem however still exists..
The line $currency = "EUR"; was missing so was the other line, so I inserted them.. When i try to purchase (as a test offcourse) one of my prints I get the message "please enter an amount greater than zero", this occurs both with EUR and GBP , the only currency that seems to be working is USD (which was the default anyway). I am inclined to think that the error is on paypal-side rather than in the script. Sigh I thought it was gonna be as easy as changing emailadresses, should've known. Tomorrow I'll look at some paypal devellopers sites, but if you would have a clue..
robin
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.