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.
You are not logged in.
Pages: 1
Hi there,
I notice the item name or "Filename" is passed through to the cart.
Is there anyway I can access this name (via a {} token for instance) in orfer to use the filename in some javascript located in the desciption box to ascertain other properties of the file such as size etc?
Or is there another way to present the files dimensions, size etc in the cart?
Cheers,
Chumby.
Offline
Item name comes from the Title metadata field. If that's empty, then it defaults to filename.
Where did you want the metadata to show up? In the album's metadata fields, or in the add-to-cart box, or in the cart itself.
If it's the album metadata fields, you can already access dimensions with metadata tokens. I don't see a token for file size though.
You could use a Lightroom plugin like LR/Transporter to first populate the Title field with information from other metadata fields.
https://www.photographers-toolbox.com/p … porter.php
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod,
Thanks for that...
In the cart itself - in the descripton box. I notice that you can use (md) in here but was thinking we could add javascript {script} and tokens {} as well to work out filesize, dimensionsand other information. (perhaps dpi?)
Cheers
Chumby
Offline
I don’t see a “description” box. Can you be more specific?
You can get some of that info using a custom image loop: http://community.theturninggate.net/vie … hp?id=9142
Not sure how you’d get that info into the cart though
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod,
The description box is at:
Backlight - Cart - Products - (My product name) - Edit
then you can put in a description for a product. So in the box I would like to include image specific detaiils.
Thanks
Chumby
Offline
That is something for Ben. Or maybe Daniel.
Backend structure isn’t open to phplugins so I can’t imagine a way of dynamically changing that field.
But maybe adding html to the front-end cart is possible, and using something like the examples Daniel shows here: https://lab.danielleu.com/blog/customiz … page-view/
But there would still be the challenge of passing that info on to customer emails.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Phplugins doesn't have a cart support API. I never looked how the cart handling is done in javascript. But I don't advocate to modify/hack the backlight files. So I would look at another approach:
Your best bet is to create categories based on image size (eg, dimensions). This could be a range of dimensions. You could use Lr smart albums to group identical/similar sized images together and then apply the same category to all of them. Now in the cart you could use a common text for all of them.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Ok thanks Rod and Daniel,
Would definately not be hacking any code! Even if I wanted, my skill level would stop me
I'm not using lightroom so will investigate if I can actual image size written at the IPTC / metadata level for each image as it is exported. Don't know if this is possible though... Thanks for the lightroom tip also.
Cheers,
Martin
Offline
Pages: 1