Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#2085 Fotomoto Integration

Posted in ‘Event Gallery Extended’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by sbluege on Tuesday, 31 May 2016 17:35 UTC

pegasus
 Hallo,

ich habe vor Fotomoto als Verkaufsplattform zu verwenden und mir somit die Arbeit des druckens etc. zu sparen.

Dennoch würde ich sehr gerne Eventgallery verwenden da es schnell und gut läuft.

Soweit ich herausgefunden habe sollte eine Integration relativ einfach sein (wird zumindest so dargestellt bei Fotomoto...) indem folgende Schritte durchgeführt werden:

"Who?





This document is intended for developers who are trying to build Fotomoto compatibility into their lightbox or other gallery.


Why?





Image galleries are diverse in their appearance and implementation. It's not possible for Fotomoto to support every implementation automatically, so we have provided some API hooks that any developer can use to add Fotomoto Buy Buttons to their gallery.


How?





Three simple steps:





Decide where you'll put the Buy Buttons. Add an HTML element having class "FotomotoToolbarPosition" anywhere in the page. For example, <span class="FotomotoToolbarPosition"></span>.





Call our API every time an image loads. Whenever an image is loaded in the gallery, call FOTOMOTO.API.setBoxImage(url) with the URL of the image.





Call the API to remove the Buy Buttons. Whenever you are done with the view and want to remove the Buy Button toolbar, call FOTOMOTO.API.removeBoxToolbar() (only if the buy buttons are found outside the lightbox)."






Meine Frage wäre ob das tatsächlich recht schnell eingebaut werden könnte und falls ja, obe Sie mir evtl. helfen könnten das zu tun?

Ich hätte auch noch einen Vorschlag für evtl. spätere Versionen von Eventgallery. Ich arbeite mit mehreren Leuten zusammen die leider keine Ahnung von Joomla haben und es kam die Frage auf ob es nicht eine Möglichkeit gäbe event via Frontend zu erstellen und zu bearbeiten. Nur so als Idee, da ich nicht einschätzen kann wieviel Arbeit das ist...

Mit freundlichem Gruss,

Andre Stellmacher

sbluege
Frontend-Editing werde ich nicht einbauen. Die dazu nötige Code-Duplizierung ist es mir nicht wert.

Integration FotoMoto: nach den drei Steps klingt das einfach. Ich glaube jedoch nicht so recht daran. Zumindest wenn man nicht das pageable layout nutzt.

Es gibt eine Seite, die FotoMoto bereits integriert hat: http://www.card-photo.com/

pegasus
Vielen Dank für die rasche Antwort.

Das mit dem Aufwand für Frontend editing verstehe ich.

Bzgl. http://www.card-photo.com/ - so hatte ich mir das vorgestellt. Ist das von Ihnen angepasst worden oder vom Kunden bzw. third party Programmierer?

Mfg, Andre

sbluege
Die Anpassung habe ich nicht gemacht. So richtig gefällt mir das auch nicht. Das verwendete Layout ist von "früher" und hat heute quasi keine Verwendung mehr. Im Idealfall ersetzt man die add2cart-Funktionalität von Event Gallery und hat dann den FM-Warenkorb überall greifbar.

sbluege
Hier ist ein Kommentar, der vielleicht interessant ist:

Here are the changes, in /views/singleimage/tmpl/default.php
(or as template override)
-----------------
<img id="mainPhoto" src="https://www.svenbluege.de/<?php echo $this->file->getImageUrl(NULL, NULL, true) ?>" style="display:none;" />
<div id="FM_Toolbar" style="position:relative; margin:10px auto;float:right;">
<a class="button-default "href="https://www.svenbluege.de/javascript:void(0);" onclick="showPrint();">Order Print</a>
<a class="button-default "href="https://www.svenbluege.de/javascript:void(0);" onclick="showCard();">Order Card</a>
<a class="button-primary "href="https://www.svenbluege.de/javascript:void(0);" onclick="showEcard();">Send Free eCard</a>
</div> 
<script type="text/javascript">
function showToolbar() {
FOTOMOTO.API.showToolbar("FM_Toolbar", "mainPhoto");
}
function showEcard() {
FOTOMOTO.API.showWindow(FOTOMOTO.API.ECARD, "mainPhoto");
}
function showPrint() {
FOTOMOTO.API.showWindow(FOTOMOTO.API.PRINT, "mainPhoto");
}
function showCard() {
FOTOMOTO.API.showWindow(FOTOMOTO.API.CARD, "mainPhoto");
}
</script> 
---------------
I use them before commenting form, but he can use them anywhere.
Of course, he needs to load fotomoto.js into the template, as per Fotomoto instructions.