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 2016-09-13 22:03:20

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

CART - thumbnail reference

When adding a custom Cart button, relative references in the data-thumbnail field do not seem to work. I'm forced to enter an absolute reference to make this work. For example, the following code does not find the button in spite of the fact that it's in the "images" folder at the root of the site.

<button class="add-to-cart" data-item="2017-calendar" data-name="New England Lighthouses" data-price="Calendar" data-thumbnail="/images/calendar-cover-light.jpg">Buy This Calendar</button>

Last edited by mblanchette1 (2016-09-13 22:03:53)

Offline

#2 2016-09-13 22:38:48

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

Re: CART - thumbnail reference

According to the docs it should be a relative URL from the page location
http://backlight.theturninggate.net/doc … se_buttons

For the cart thumbnails on my Workshops site (still CE4, but should be the same for Backlight), I use the full URL:

data-thumbnail="http://workshops.barbeephoto.com/ttg-be/cart-thumbnails/Barbee_130420_3_1284.jpg"

and that works fine

but for the cart thumbnails on my book pages, I use a relative url from the page itself. For example:

 data-thumbnail="thumbnails/OR-coast-memories.jpg"

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 2016-09-13 23:36:09

mblanchette1
Member
From: Bedford, NH
Registered: 2012-10-15
Posts: 111
Website

Re: CART - thumbnail reference

OK, got it. The key here is that it has to be relative to THIS page. I was making the reference relative to the root folder. Thanks!

Offline

Board footer

Powered by FluxBB