Show-If in cart.php, confirm_cart.php and customer emails
Is there any way that I can do a “show-if”, depending on a particular value in a column, in the cart.php, confirm_cart.php as well as the email templates (wa_receipt for example)?
I just applied dynamic options to eCart (which works great by the way = thanks) and also added that a specific attribute/option code is passed on to the cart as well as is displayed in the e-mail.
I added a new column “Option Code” and calculation [optionCode] in eCart Object that displays the correct code according to the option chosen in the eCart and also the email. So now in addition to the Display Info for SKU <?php echo $eCart1->DisplayInfo("SKU"); ?>, I now also have the new display info for the option code <?php echo $eCart1->DisplayInfo("OptionCode"); ?>
Some products do have options and some products do not. Since all products in the Database do have a SKU - the products that also have options currently show both (SKU as well as OptionCode) in eCart and the emails.
Is there any way that I can have a “show-if” so that the SKU is only displayed if there is no Option code?
Thanks so much and best regards,
Joerg