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
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
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
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
Pages: 1