Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Melanie Parish
0 points
Beginner
Thanks Jason but it didn’t work for me as you have it. I started playing around with the line on its own and very exciting for me I got it working placing the code under
I also got my other custom fields working on both the invoice and default cart. I’ve even got it working in an If then Else statement which means it only shows when my specific custom field has a value.
<?php $MTO = get_post_meta($key,"Made to Order", true);
if(!empty($MTO))
{?><?php $TTM = get_post_meta($key,"Time to Make", true) ?>This is a Made to Order Item and will take <?php echo $TTM; ?> to be created it will then be posted out to the address above.
<?php } else { ?> <?php } ?>
Thanks for giving me the base to work on that I finally go it working.
Thanks Jason but it didn’t work for me as you have it. I started playing around with the line on its own and very exciting for me I got it working placing the code under
<?php if(strlen($item['custom']) > 1){ ?><p> <small><?php echo $item['custom']; ?></small></p><?php } ?><br>
<?php $thesku = get_post_meta($key,"sku", true) ?>Stock Code: <?php echo $thesku; ?><br>
I also got my other custom fields working on both the invoice and default cart. I’ve even got it working in an If then Else statement which means it only shows when my specific custom field has a value.
<?php $MTO = get_post_meta($key,"Made to Order", true);
if(!empty($MTO))
{?><?php $TTM = get_post_meta($key,"Time to Make", true) ?>This is a Made to Order Item and will take <?php echo $TTM; ?> to be created it will then be posted out to the address above.
<?php } else { ?> <?php } ?>
Thanks for giving me the base to work on that I finally go it working.
Thanks
Mel
Members Only Content
This reply is for PremiumPress customers only.
Login Now