KyneticWeb Posted March 10, 2015 Share Posted March 10, 2015 Hey guys, I am hoping someone can throw a solution my way on this. I know you can use this statement: {foreach key=num item=productgroup from=$productgroups} ..and it will work properly to show: {if $product.qty!=""}<em>({$product.qty} {$LANG.orderavailable})</em>{/if} Problem is, we have a fully customized cart page.. thus we are not needing the foreach statement. We are simply looking to add the {$product.qty} with a per product basis. Anyone know if there is an {if} statement that will work here? Thanks for any help provided.. means a lot! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 10, 2015 Share Posted March 10, 2015 perhaps try the data feed I wrote last November for another user... http://forum.whmcs.com/showthread.php?95254-Out-of-stock-message-in-template-file&p=399642#post399642 you should be able to use it anywhere by just calling the PID for the particular product - though you may need to modify its output for your own needs... let me know if you run into any issues with it. 0 Quote Link to comment Share on other sites More sharing options...
KyneticWeb Posted March 10, 2015 Author Share Posted March 10, 2015 Wow, I hadn't even thought of the Feed method. At any rate. That works perfectly. Thanks for the guidance and the ready made script. You're awesome Brian! 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.