PDA

View Full Version : Feature request: ecommerce


calvorn
2nd of January 2004 (Fri), 07:16
Pekka:

I would like to make a separate exhibit of photos for sale. When I do that and apply a template to these photos every instance of the photos in other exhibits displays the "Buy this photo" icon.

Would it be possible to make it so only photos in a certain exhibit are for sale? I realize this might be non-trivial programming task but thought I would ask.

Also, could you make that JPEG button "Buy this photo.." local so that the user can add their own button. I believe it resides on your server now.

Thank you and Happy New Year

Cal

Pekka
2nd of January 2004 (Fri), 19:20
I can put on my todo list "add all photos in exhibition" to EE commerce editor section.

The forsale image are in 1.5 defined in languages: open languages/eng/photo.php

there you have two lines

$translated["click_here"]["image"] = "http://photography-on-the.net/beta/buy_1.jpg"; // click here

$translated["click_here"]["text"] = "click here and choose ordering method"; // click here

The first one is the image, and the other one is text (used also as mouseover text for image).

If you want to change the image, replace existing address http://photography-on-the.net/beta/buy_1.jpg with your own.

If you do not want an image, leave the image address empty. This will make EE show the text translation instead.

QUICK TIP ABOUT EE TRANSLATION:

EE's translation system accepts image OR text for EACH translated item. This more complex translation system can be used only when needed. Example:

$translated["hide_photo_detail_info"] = "hide photo detail info";

is the normal way to translate text only. But if you do

$translated["hide_photo_detail_info"]["image"] = "http://www.example.com/hidedetailtext.jpg";

(without space in URL start, thats forums bug) the translation shows image 'hidedetailtext.jpg' instead. If you want an mouseover text for that image, add

$translated["hide_photo_detail_info"]["text"] = "mouseover text for hidedetailtext.jpg is here";

If you have ONLY the text part

$translated["hide_photo_detail_info"]["text"] = "mouseover text for hidedetailtext.jpg is here";

Then you will see that as plain text as if it were

$translated["hide_photo_detail_info"] = "mouseover text for hidedetailtext.jpg is here";

calvorn
3rd of January 2004 (Sat), 07:52
Thanks for that info Pekka.

One last question--if I don't use a the e-commerce graphic, how do I change the size of the type that replaces the graphic?

Thanks.

Cal