Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-06-24 23:56:18

q-photography
Member
Registered: 2015-06-24
Posts: 3

TTG 2014 HTML gallery

I feel a real fraud asking questions about a free product.... But here goes!
I use the TTG 2014 HTML gallery plugin for all my client galleries on my site.
I use it in conjunction with some javascript I've had for ages, to add a shopping cart. It all worked fine until (I think) LR6.
Now, it appears to work OK until you actually try and order a print and instead of a filename you get 'undefined'
The same thing happens with any of the new responsive gallery templates built into LR6, so I'm guessing it's a LR problem, and not yours! (It still works fine with non-responsive layouts) I suppose I'm just trying to avoid spending $75 for the TurningGate solution, but I would love a confirmation that it's LR6 and not me......
The javascript I am using is inserted in the caption>custom text bit of Image Info. It came from someone on another forum several years back - and is no longer supported or developed as far as I can see. It is:

<script type="text/javascript"> 
var myDomain="www.yourdomain.com"; 
var imgsrc=document.getElementById("previewImage").src; 
var filename=imgsrc.replace("images/large/",""); 
filename=filename.substring(filename.lastIndexOf("/")+1,filename.length); 
var thumb=imgsrc.replace("large","thumb"); 
thumb=thumb.replace("http://" + myDomain + "/","");
thumb=thumb.replace("http://www." + myDomain + "/",""); 
returnTo=window.location.href;  </script>   
<form action="http://ww7.aitsafe.com/cf/add.cfm" method="post"> 
<input type="hidden" name="userid" value="97403082">
<input type="hidden" name="nocart"> 
<input type="hidden" name="return" value=""> 
<input type="hidden" name="product" value=""> 
<input type="hidden" name="thumb" value="">   
<script type="text/javascript"> 
document.getElementsByName("product")[0].value = filename; 
document.getElementsByName("thumb")[0].value = thumb; 
</script> 
<select size="1" name="productpr">
<option selected value="">Select size
<option value="6x4 inch :2.50">6x4 inch £2.50</option>
<option value="7x5 inch :5">7x5 inch £5.00</option>
<option value="10x8 inch :7.50">10x8 inch £7.50</option>
<option value="12x16 inch :10.00">12x16 inch £10.00</option>
</select> 
<br>
<input type="submit" name="Submit" value="Buy Photo!" 
onclick="alert('Photo has been added to your cart');" 
onkeypress="alert('Photo has been added to your cart');"> 
</form> 
<form action="http://ww7.aitsafe.com/cf/review.cfm" method="post"> 
<input type="hidden" name="userid" value="97403082">
<input type="hidden" name="return" value=""> 
<script type="text/javascript"> 
document.getElementsByName("return")[0].value =returnTo; 
document.getElementsByName("return")[1].value =returnTo; 
</script> 
<input type="submit" name="Submit" value="View Your Cart!"> 
</form> 

There's an example of a gallery here: <http://www.q-photography.co.uk/SKphotos/>

Thanks for any suggestions!

Simon

Offline

#2 2015-06-25 03:33:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: TTG 2014 HTML gallery

suppose I'm just trying to avoid spending $75 for the TurningGate solution

If you're working with clients, spending the money on CE4 Gallery and CE4 Cart will pay for itself with your first sale


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2015-06-25 07:11:42

q-photography
Member
Registered: 2015-06-24
Posts: 3

Re: TTG 2014 HTML gallery

Nobody buys prints of wedding photos anymore.....
I'm beginning to wonder why I offer it.
Sorry, just in a depressed mood tonight. This isn't the industry I joined many years ago!
Tomorrow will be a brighter day!

Offline

#4 2015-06-25 07:14:04

q-photography
Member
Registered: 2015-06-24
Posts: 3

Re: TTG 2014 HTML gallery

btw, I tried uploading a gallery with LR5 and got the same problem.
A non-responsive gallery works fine, so I suppose there's a javascript conflict with what I'm using and some javascript in all the responsive gallery templates.

Offline

#5 2015-06-25 15:50:13

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: TTG 2014 HTML gallery

Javascript is heavily dependent on the DOM, so if things are named as the script expects, or are not located where the script is looking, then you will get an error. First thing I'd do is dig into the browser's developer tools to look for Javascript errors logged to the console, then figure out why those errors are happening. Javascript is very rarely a plug-n-play solution.

That said, image metadata isn't really the place for HTML, JS, CSS, etc.

And Rod is correct. Most of our customers find that our cart system pays for itself in its first sale. As for customers not buying prints, perhaps you need to find some way of incentivizing them to do so. Also, our cart system supports digital sales.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB