Just trying to show a message if there's one item left in stock, I've tried...
Code: Select all
<?php if($text_stock = '1') { ?>HELLO<?php ; } else { ?><?php } ?>
Code: Select all
<?php if($text_stock <= '2') { ?>HELLO<?php ; } else { ?><?php } ?>
Code: Select all
<?php if($text_stock = '1') { ?>HELLO<?php ; } else { ?><?php } ?>
Code: Select all
<?php if($text_stock <= '2') { ?>HELLO<?php ; } else { ?><?php } ?>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<?php if ($text_stock == 1) { print "HELLO"; } ?>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 49 guests