crisspoll Posted October 29, 2011 Share Posted October 29, 2011 Hi there, I'm pretty new to PHP programming so I'm not sure if I can explain my problem in a proper way. I'm running Joomla 1.5 with Joomshopping and in my shoppincart I added weights for every product. Now I want to display a text in case one of the products has the weight "0". If I do that with <?php if ($this->..... the text does not show as soon as there is one product with weight ">0". How can I define that the text is shown if the variable "weight" is "0" in one case, regardless that the same variable has a higher value before or after. Thanks in Advance. crisspoll Quote Link to comment Share on other sites More sharing options...
crisspoll Posted October 29, 2011 Author Share Posted October 29, 2011 Maybe it helps if I add the code I mean: This is where the roduct weight comes from: <td> <?php print formatweight($prod['weight']*$prod['quantity']);?></span> <?php print _JSHOP_WEIGHT_UNIT ?> ... Now this value is there for each item in the cart. I would like to check if the value is "0" for one item. Anybody out there who has an idea? Thanks 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.