46
Mods & Plugins (Requests & Discussions) / Need url associated with thumbnail in thumbnail_bit.html
« on: October 05, 2002, 05:35:56 PM »
Is there any way to retrieve just the details URL associated with the thumbnail in the thumbnail_bit.html template?
I want to get that URL and append "&action=buynow". This is so that when the user clicks the thumbnail, my details page opens and the tab pane where the order form is located is selected and made active. I have everything working, I just need the url accessible to me in the thumbnail_bit.html template for a new "buy now" button I'm adding. I've already made the required modifications to details.php and details.html
I could do it myself by adding a new parameter to get_thumbnail_code() and a line like this inside the function
But I'd rather not take this approach if there already exists a way of doing this.
I want to get that URL and append "&action=buynow". This is so that when the user clicks the thumbnail, my details page opens and the tab pane where the order form is located is selected and made active. I have everything working, I just need the url accessible to me in the thumbnail_bit.html template for a new "buy now" button I'm adding. I've already made the required modifications to details.php and details.html
I could do it myself by adding a new parameter to get_thumbnail_code() and a line like this inside the function
Code: [Select]
if ($MyNewParameter)
$thumb = $site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_id.((!empty($mode)) ? "&mode=".$mode : ""));
But I'd rather not take this approach if there already exists a way of doing this.