jbaranello Posted May 18, 2014 Share Posted May 18, 2014 Hi, I was just wondering if anyone could help me with the following code. <td class="cart_availability" style="text-align:center;"> <div class="label visible-phone"> {l s='Avail.'} </div> {if $product.XXXX}{$product.XXXX|escape:'htmlall':'UTF-8'}{else}--{/if} </td> I need to call the products availability (current quantity) and place it above $product.XXXX but don't know the variables name??? Thanks Jason Link to comment Share on other sites More sharing options...
jbaranello Posted May 19, 2014 Author Share Posted May 19, 2014 bump Link to comment Share on other sites More sharing options...
NemoPS Posted May 19, 2014 Share Posted May 19, 2014 Well, we need to know what's your context, at least. Where do you have that piece of code? Link to comment Share on other sites More sharing options...
jbaranello Posted May 19, 2014 Author Share Posted May 19, 2014 Hey Nemo1, Sorry about that, wasn't sure how much more info you needed. I am running a custom theme which I purchased and I had many layout issues on the payment confirmation page, one of which is that the available quantity does not get displayed. This piece of code is in a .tpl file called order-product-line.tpl, which I created to fix all the other layout problems. This file is essentially the same as shopping-cart-product-line.tpl except that it has certain lines of code that were modified in order to get the layout I want. I can include all the relevant .tpl files if needed?? Let me know Jason Link to comment Share on other sites More sharing options...
NemoPS Posted May 20, 2014 Share Posted May 20, 2014 Ok, try with $product.quantity then Link to comment Share on other sites More sharing options...
jbaranello Posted May 20, 2014 Author Share Posted May 20, 2014 I have this presently but it always displays whats in the cart not the quantity available?? Thanks Jason Link to comment Share on other sites More sharing options...
jbaranello Posted May 20, 2014 Author Share Posted May 20, 2014 Anyone else got any ideas?? Link to comment Share on other sites More sharing options...
jbaranello Posted May 20, 2014 Author Share Posted May 20, 2014 Solved, here is the Topic in which I found the solution. Link to comment Share on other sites More sharing options...
Recommended Posts