0
votes

I want to display a custom attribute of eCommerce add-on. I know how to show product name, quantity, price but cant figure out how the attributes works. I want to display a specific attribute of the product.

Is this possible in showing the attributes? If so can anyone give my the syntax?

<?php   if ($displayNameP) { ?>
  <p><?php echo$link_before.$product->getProductName().$link_after?></p>
<?php   } ?>
1

1 Answers

1
votes

If it's anything like the core concrete5 objects (pages, users, files), then you'd do:

$product->getAttribute('attribute_handle')