Trilient Posted October 11, 2017 Share Posted October 11, 2017 Hello everyone, I'm looking for a way to include these lines from products.tpl (below) on another template file of my website, or at least something similar to it. I'm not really sure how to go about it, but I'd like to have a way to set which product ID it pulls the data from via a variable of some sort. I'm planning to use it on this page of my site: http://gsdemon.com/gameservers.php and from what I've read, going the route of Data feeds may not be my best option. I also found a free hook online that almost does what I'd like it to, but it doesn't seem to pull the correct data from MySQL as my pricing is based on configurable options, and I know next to nothing about SQL queries. From products.tpl: <div id="product{$num}" class="product" onclick="window.location='cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}'"> <div class="pricing"> {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="pricing">{$product.displayprice}</span> {/if} {else} {if $product.pricing.hasconfigoptions} {$LANG.startingfrom} <br /> {/if} <span class="pricing">{$product.pricing.minprice.price}</span> <br /> {if $product.pricing.minprice.cycle eq "monthly"} {$LANG.orderpaymenttermmonthly} {elseif $product.pricing.minprice.cycle eq "quarterly"} {$LANG.orderpaymenttermquarterly} {elseif $product.pricing.minprice.cycle eq "semiannually"} {$LANG.orderpaymenttermsemiannually} {elseif $product.pricing.minprice.cycle eq "annually"} {$LANG.orderpaymenttermannually} {elseif $product.pricing.minprice.cycle eq "biennially"} {$LANG.orderpaymenttermbiennially} {elseif $product.pricing.minprice.cycle eq "triennially"} {$LANG.orderpaymenttermtriennially} {/if} <br> {if $product.pricing.minprice.setupFee} <small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small> {/if} {/if} </div> </div> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.