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
Is there a function call that will return the photo that was selected. For example a function like getSelectedPhoto? I am looking to see if there is a function call that will tell me which photo on the page was selected.
Offline
What do you mean by "selected"? Is that just the image that's been clicked to open the slideshow, or are you asking about an image that has been marked as a selection in the client response features?
Offline
Hi Michael, can you share how you solved this? My comments about wholesale updates to the Cart don't apply to CR or Backlight as a whole.
Offline
Hi Ben,
When I built the album in the plugins (album_top function) I added code to create/write data to a sql DB and then set a query string on the image as it was built. So when an image is selected I know the image # and can then access that on another page after getting the information I needed from the DB. I also use a similar technique to pass the category(item_pricing) between pages. I am currently in the process to fix my problem of Shipping using the backlight cart; but I may build my own cart to bypass the limitations of the backlight cart based on what we talked about in our email exchange. Currently, I turned off the backlight cart in Production environment replacing it with fotomoto my previous cart until I get the cart replaced; I only had to update my plugins file.
Michael
Last edited by mad (2019-04-02 05:47:07)
Offline
Hi Michael, that's an interesting approach. Have you looked at using sessions instead? Ephemeral data related to site visits shouldn't need to be saved in a database.
Offline
I have thought of using sessions information just hadn't coded it yet; but it is something that I would do as I start coding for the new Cart. I eventually want to migrate from using fotomoto cart to a non-cost cart.
BTW, I have another question about adding a couple of additional buttons to the xxxxx-single.php (toolbar fancy-box for the cart) for my new cart as I code it. Is there a quick way to add those buttons since backlight controls the display of the single.php for the slideshow? I was wondering if there was a function call that I could use to do those adds or be able to pass it in as part of when you construct the slideshow. If not then I guess I will have to write that part of it as well. I just hate reinventing the wheel though. lol!!!
Offline
Just the single_top and single_bottom functions on the single-image HTML pages.
Offline
Pages: 1