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 2017-02-01 22:08:14

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Write in Purchase Buttons

I read the instructions for creating Write-in Purchase Buttons here:
http://backlight.theturninggate.net/doc … se_buttons

But it's not clear where I place it. I seriously wish the docs were written from the viewpoint that the reader doesn't know much about the subject. Can anyone help.

Offline

#2 2017-02-01 22:37:53

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

Re: Write in Purchase Buttons

put it in any page copy area. Either in a Backlight page or album/set templates or in the page copy areas in albums and album sets in Lightroom.

Also, write the code either in the page copy areas or in a plain text editor. I suggest doing it in an editor and then copy/pasting into the page copy fields.


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 2017-02-01 22:57:49

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

If I want to have it appear only in the large image view, where do I place it. I tried it in the Album Settings Main Copy section, and it put the button on the thumbnails page only.

Offline

#4 2017-02-01 23:15:02

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

Re: Write in Purchase Buttons

the write in buttons can only go in areas where you can add text.
However, if you're using the HTML single image presentation, you can use phplugins to insert content after the large images using the ttg_single_bottom hook.

And as long as the write-in button code needs to be the same for all images, this would be a good solution. But if each button needs to be different, then it won't work as you need it to.


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

Offline

#5 2017-02-02 00:52:20

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Each button needs to go to the cart, just as the current cart icon does. Does that mean it is unique? I just want the button to say "Purchasing Options" and have a larger cart icon, which currently is miniscule. The current small icon is above the large image. Can the new button be there also. If not, can that tiny icon be changed?

Offline

#6 2017-02-02 01:12:55

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

Re: Write in Purchase Buttons

What you want to do won't work. The write-in buttons are for selling products or services other than those in image galleries.

You should be able to change the size of that icon with custom css or jQuery. Which large image presentation are you using?


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

Offline

#7 2017-02-02 01:16:57

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

I am using Single image

Offline

#8 2017-02-02 01:18:01

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Can I create my own icon?

Offline

#9 2017-02-02 01:19:34

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

Re: Write in Purchase Buttons

hulsebos58 wrote:

Can I create my own icon?

I suppose you could. Then use jQuery to swap it out. Or you could look at options over at the Font Awesome site and use one of those (since Font Awesome (4.7.0) is already included in Backlight)
It's easy to increase the size of the existing icon too, just append the icon code as noted here: http://fontawesome.io/examples/


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

Offline

#10 2017-02-02 01:22:13

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

Re: Write in Purchase Buttons

Here's how you can use jQuery to swap out icons.
http://ttg-tips-and-tricks.barbeephoto. … -ttg-page/


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

Offline

#11 2017-02-02 01:41:39

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

Re: Write in Purchase Buttons

all that being said, if you increase the size of the icon you'll probably want to change all the others up there too, otherwise it's going to look awkward.
Personally, I think the size is fine and easily noticeable.


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

Offline

#12 2017-02-02 01:46:11

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Check out the large picture page and see how the cart icon at the upper right is dwarfed by the picture:
http://www.martyhulsebos.com/galleries/color/aspens/
I want it to be clear to potential customers that this picture is for sale, and here is the link to how to purchase it. To me, my website needs to be more about selling than just showing.

Offline

#13 2017-02-02 02:02:12

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

Re: Write in Purchase Buttons

this is the code that control what icon is displayed:

<i class="fa fa-fw fa-shopping-cart"></i></a></li>

apparently, the fa-fw is to set the icons at a fixed width. But if you want it bigger, you can swap out fa-fw for fa-lg (or fa-2x etc.)

I don't know the ramification of this for mobile view 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

#14 2017-02-02 02:05:48

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Write in Purchase Buttons

I think I'm using the default buttons and they look OK to me: https://stalkinglight.com/galleries/flo … single.php

Mine seem larger in proportion to the picture than yours.

Offline

#15 2017-02-02 02:10:58

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

Re: Write in Purchase Buttons

the actual cart icons are the same size, it's just that you've got a black UI background color set, while on Marty's site, he's set the UI background color to the same as the page color.


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

Offline

#16 2017-02-02 02:20:39

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

Re: Write in Purchase Buttons

Marty,
Looks like you can also increase the size of the shopping cart with custom css (to a limit)

.fa-shopping-cart {
    font-size: 1.5em;
}

2.2em seems to be the limit before the icon outgrows the space allotted.


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

Offline

#17 2017-02-02 02:30:47

charlie.choc
Member
From: Marietta, GA
Registered: 2014-01-09
Posts: 359
Website

Re: Write in Purchase Buttons

rod barbee wrote:

the actual cart icons are the same size, it's just that you've got a black UI background color set, while on Marty's site, he's set the UI background color to the same as the page color.

That's sort of what I meant by look larger, I should have been more specific.

Offline

#18 2017-02-03 07:49:50

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Thanks for your tips Rod and Charlie. I made the background red with white text and it is much more visible. As to having write-in text, I was able to do it with CE4. Was this option removed in Backlight?

Offline

#19 2017-02-03 08:00:01

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

Re: Write in Purchase Buttons

the write-in buttons are the same in Backlight as they are in CE4. They're intended to sell products other than images and downloads. They are not replacements for the existing cart buttons.

Are you wanting to replace the cart icon with text?


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

Offline

#20 2017-02-03 08:30:05

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Yes I do want to replace the cart icon with text. CE4 let me do it.

Offline

#21 2017-02-03 09:37:45

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

Re: Write in Purchase Buttons

ok, which icon? The one in the thumbnail grid or the one with the large image in the HTML Single presentation?
You can use custom css to replace either with any text you want. But there's not much room to add text so you'll have to mess with other styling too probably.

figure button.add-to-cart::after {
    content: "Cart";

In CE4 Gallery there is an option to add a button label for the large image page. It adds text to the existing icon. Is this what you mean?
If so, there's no easy way I can see of doing this.

You can add text to the content property in the css, but there's not mcuh room for text and an icon without changing more styling.
But you can give this a try in custom css:

.fa-shopping-cart::before {
    content: "\f07a Add to Cart";
}

It looks like crap, but maybe you can figure out the styling that needs to be changed to accommodate it.

Frankly, I think most people understand what a cart icon means.

Perhaps Matt has a better idea on how to handle it.


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

Offline

#22 2017-02-03 11:39:12

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

The icon I want to change (add text next to) is the large image cart button. I tried using the css you offered:
.fa-shopping-cart::before {
    content: "\f07a Add to Cart";
}

...and yes that is not ready for prime time. I tried to add some CSS styling, but not being proficient enough with CSS, I didn't get very far. Any tips on making the red box wider so the text falls entirely into it? See the page: http://www.martyhulsebos.com/galleries/ … single.php

My marketing consultant is harping on me to make it overwhelming simple to people how to make a purchase. A shopping cart icon to someone who is web illiterate may not be obvious. I do have customers like this and I want to be considerate of this.

I want the text to say "Purchasing Options". It's really not a shopping cart since they haven't made their selections yet. They just need to get to the place where they can select size, presentation, etc.

Last edited by hulsebos58 (2017-02-03 11:46:05)

Offline

#23 2017-02-03 12:01:20

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

Re: Write in Purchase Buttons

Any tips on making the red box wider so the text falls entirely into it?

Not really. I spent some time looking at that earlier but couldn't easily see what needed to be done.

Another thought is to add some instructional text to your album template that lets any potential buyer know that the little icon that looks remarkably like a shopping cart is just that. You can even add the icon to the instructional text to make it painfully obvious. Just add the Font Awesome icon code to the copy area inline with the text you want to use.


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

Offline

#24 2017-02-03 12:03:47

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

Yes, that's a good idea. Thanks Rod.

Offline

#25 2017-02-03 12:05:54

hulsebos58
Member
Registered: 2012-12-09
Posts: 54

Re: Write in Purchase Buttons

What is that Font Awesome code?

Offline

Board footer

Powered by FluxBB