fotomoto on localhost

I am developing a Joomla site on localhost using MAMP on Mac and want to now how I can test Fotomoto in this environment.
1 person has
this problem
+1
Reply
  • Derek (Official Rep) May 29, 2012 06:28
    Hi Gitte,

    I responded to your support email on the same subject, so you already have the answer, but for anyone else following along: unfortunately the Fotomoto Buy Buttons will probably not appear in your local "development" version of your site, but it should work nicely on a live web server. For testing purposes we recommend that you post a test page on a live site to see how it will work.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Thanks Derek,

    I set up just one specific page on my site for Fotomoto. I guess I ́ll just take the risk and go live and then take it from there.

    Regards, Gitte
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) May 29, 2012 18:54
    Hi Gitte,

    Sounds good. Note that you could also post the page and just restrict access to it temporarily while you test Fotomoto, but that might be more trouble than it's worth. If you do go that route, please see this article to make sure fotomoto servers can access your images.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Hi Derek,

    I read the article and opened the .htaccess (Joomla 1.5). Where exactly do I paste the code in there ? Anywhere, or in a particular place? I see lines of stuff there. This is my first attempt at developing a site, so there are still many things I don ́t understand. I thank you for your time.

    Regards, Gitte
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) May 30, 2012 06:19
    Hi Gitte,

    Unfortunately I'm not familiar enough with how Joomla uses htaccess to prevent/allow access to images, and it's outside of our scope of support to advise on placement of the directives in the htaccess file.

    The point of me linking you to the article was to explain that Fotomoto servers need to have access to your images if you're trying to require authentication for certain galleries on your site (like for testing). I'd more suggest you just go ahead and make your site live, then install Fotomoto afterwards on a test page to see how it works.

    I hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • I'd like to add some thoughts to the, if I may:

    My site uses custom galleries built into a Wordpress plugin which I develop offline using MAMP, as above. I'm going to have to do more than just drop it into a page and see if it works, I'm going to have to add and modify base code. I'd be mad to do that on a live site so off-line is the only way. Even if I was prepared to modify live code, it's not that simple; the dev tree makes use of node.js, Composer and a bunch of stuff to compress javascript and css. Much of the live code is illegible.

    At the moment the best solution I can think of is to use a second, non-public Wordpress install on the domain and move the dev tree to that. But it's hardly ideal.

    I don't expect a simple answer just yet but I felt I had to make the point that, as sites get richer, more complex, this is something you should probably think about.

    Or maybe you have some thoughts?

    thanks.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) July 15, 2018 17:40
    Hi Kim,

    Thanks for your post, and here are my thoughts on the matter: in my experience there has always been more than one reason to test a website on a live-but-not-production "test" server before moving everything to production. I usually just require a basic auth password on the site on the test server to make sure nobody else finds or views it. That's where I do my Fotomoto testing, browser testing, etc.

    To set this up in Fotomoto, leave your production site URL as the "primary" site URL, and add the test site URL as an alternate site address.

    I hope that works for you and if it presents further challenges just let me know and I'll be happy to work with you and offer solutions.

    Kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Sure, but I'd argue that a live test site is for testing, not actual development; it's not ideal. You have to concede that 'code->save->test' is a lot quicker than 'code->save->copy to remote site->test'. There must be a better way.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) July 17, 2018 01:56
    Hi again Kim,

    As you probably know there's not much development that needs to happen with Fotomoto - you're just installing a bit of JavaScript and it works or it doesn't. If it doesn't the I'll be happy to take a look at it personally to tell you why and assist with a solution.

    Regarding using Fotomoto on localhost, it will work, but the images need to be online since the Fotomoto server needs to access them directly to get sizing information as part of its determination on what products to display.

    At present there isn't a better way, but I've done a *lot* of Fotomoto integrations and haven't had much trouble with it, so hopefully your experience will be the same. If you want to send us a URL for one of your galleries that we can look at I'll be happy to, which is likely to save you some time.

    Hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • I think you're missing the point but never mind.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) July 17, 2018 19:42
    Hi Kim,

    Just wanted to add that I took a look at the "Dogs" gallery on your current website and though Fotomoto is not installed there, I wanted to let you know that Fotomoto is not likely to work "out of the box" in "automatic mode" (as opposed to API mode) with the slider that you're using to display the images. The reason being is that when the Fotomoto Script runs on your page, it tries to detect images and insert the Buy Button div below the image. In the case of a slider like yours, Fotomoto may not be able to detect which is the "active" image is, and will need to be told the URL or class of the appropriate image.

    First, if you have any interest in using a comparable slider that's already compatible with Fotomoto, you might consider using Galleria and their Classic theme to display the images.

    If that doesn't work for you, Fotomoto can be used in API mode, and with relatively-minimal JavaScript you can insert the appropriate Buy links. For more on the subject please see Integrating Fotomoto into an image gallery.

    About developing this on localhost, you can add localhost as a site address (see How do I add an alternate site address?), and Fotomoto should work, but again you'll want to use images on a live server.

    Hope that helps and kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Hi Derek,

    In fact the gallery lazy loads; there's only the one image in place when the page is first loaded but yes, I'd never expected it to work out of the box. I've pretty much got my head around using the API, thanks. It's not hard and your example pages are pretty good.

    Localhost as alternate site, that's useful too so thanks for that.

    Thanks, K.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • Derek (Official Rep) July 18, 2018 17:37
    You're very welcome Kim and just let me know if I can help with anything else.

    Kind regards,
    Derek
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned