Here is a snippet of PHP code from my old cart that I am trying to use on my 3.0.2.0 cart
/catalog/view/theme/default/template/product/product.tpl
Code: Select all
<?php if(BONUS_CARD_ENABLE){ ?>
<div id="bonus_card_info"></div>
<i>$20 Bonus Card for every $100 gift card purchased will display on your final receipt after check out !</i>
<?php } ?>
</div>
<?php } ?>
Here is the code I am inserting into product.twig
Code: Select all
{% ifBONUS_CARD_ENABLE()%}
<div id="bonus_card_info"></div>
<i>$20 Bonus Card for every $100 gift card purchased will display on your final receipt after check out !</i>
{% endif %}
</div>
Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'Unknown "ifBONUS_CARD_ENABLE" tag in "default/template/product/product.twig" at line 45.' in /home/wpdemosystem/public_html/system/library/template/Twig/Parser.php:178 Stack trace: #0 /home/wpdemosystem/public_html/system/library/template/Twig/Parser.php(100): Twig_Parser->subparse(NULL, false) #1 /home/wpdemosystem/public_html/system/library/template/Twig/Environment.php(619): Twig_Parser->parse(Object(Twig_TokenStream)) #2 /home/wpdemosystem/public_html/system/library/template/Twig/Environment.php(671): Twig_Environment->parse(Object(Twig_TokenStream)) #3 /home/wpdemosystem/public_html/system/library/template/Twig/Environment.php(396): Twig_Environment->compileSource('{{ header }}\r\n<...', 'default/templat...') #4 /home/wpdemosystem/public_html/system/library/template/twig.php(33): Twig_Environment->loadTemplate('default/templat...') #5 /home/wpdemosystem/public_html/system/library/template.php(51): Template\Twig->render('default/templat...', '0') #6 /ho in /home/wpdemosystem/public_html/system/library/template/Twig/Parser.php on line 178