# Community Store

**URL:** <https://forums.concretecms.org/t/community-store/8108>\
**Category:** Developing with Concrete\
**Created:** [September 11, 2024, 11:26am UTC](https://forums.concretecms.org/t/community-store/8108 "2024-09-11T11:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatcatsanonymous](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fatcatsanonymous/32/4140_2.png) [@fatcatsanonymous](https://forums.concretecms.org/u/fatcatsanonymous)\
**Post date:** [September 11, 2024, 11:26am UTC](https://forums.concretecms.org/t/community-store/8108/1 "2024-09-11T11:26:17Z")

</div>

Hi, I have added custom attributes to the order form in the community store backend. These work fine on the checkout and confirm pages, but do not show up in the emails generated by new\_order\_notification.php or order\_receipt.php.  
Though the script is in the php files and looks fine to me. Has anyone a suggestion as to why this is not working?  
Thanks,  
Una

```auto
<?php if (!empty($orderChoicesAttList)) { ?>
            <tr>
                <td colspan="2">
                    <h3><?= t("Other Choices")?></h3>
                    <?php foreach ($orderChoicesAttList as $ak) {
                        $orderOtherAtt = $order->getAttributeValueObject($ak->getAttributeKeyHandle());
                        if ($orderOtherAtt) {
                            $attvalue = trim($orderOtherAtt->getValue('displaySanitized', 'display'));
                            if ($attvalue) { ?>
                                <strong><?= $ak->getAttributeKeyDisplayName() ?></strong>
                                <p><?= str_replace("\r\n", "<br>", $attvalue); ?></p>
                            <?php }
                        }?>
                    <?php } ?>
                </td>
            </tr>
        <?php } ?>

```

---

<div class="post-metadata">

**Author:** ![mnakalay](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mnakalay/32/6336_2.png) [@mnakalay](https://forums.concretecms.org/u/mnakalay)\
**Post date:** [September 12, 2024, 1:24pm UTC](https://forums.concretecms.org/t/community-store/8108/2 "2024-09-12T13:24:58Z")

</div>

I just tested, and the new\_order\_notification email has the order attributes in it.  
Are you sure you have the latest version? It might be an old bug.

---

<div class="post-metadata">

**Author:** ![fatcatsanonymous](https://forums.concretecms.org/user_avatar/forums.concretecms.org/fatcatsanonymous/32/4140_2.png) [@fatcatsanonymous](https://forums.concretecms.org/u/fatcatsanonymous)\
**Post date:** [September 13, 2024, 10:22am UTC](https://forums.concretecms.org/t/community-store/8108/3 "2024-09-13T10:22:00Z")

</div>

> <https://github.com/concretecms-community-store/community_store/issues/893>
>
> Custom attributes to the order form in the community store backend work fine on …the checkout and confirm pages, but do not show up in the emails generated by new\_order\_notification.php or order\_receipt.php:
> Script in Email:
> \`\<?php if (!empty($orderChoicesAttList)) { ?\>
> \<tr\>
> \<td colspan="2"\>
> \<h3\>\<?= t("Other Choices")?\>\</h3\>
> \<?php foreach ($orderChoicesAttList as $ak) {
> $orderOtherAtt = $order-\>getAttributeValueObject($ak-\>getAttributeKeyHandle());
> if ($orderOtherAtt) {
> $attvalue = trim($orderOtherAtt-\>getValue('displaySanitized', 'display'));
> if ($attvalue) { ?\>
> \<strong\>\<?= $ak-\>getAttributeKeyDisplayName() ?\>\</strong\>
> \<p\>\<?= str\_replace("\\r\\n", "\<br\>", $attvalue); ?\>\</p\>
> \<?php }
> }?\>
> \<?php } ?\>
> \</td\>
> \</tr\>
> \<?php } ?\>\`
