[Skip to main content](#vessel-content)

#   Order notification: Show ALL product options, not only selected ones

##

- **[Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")**
- [![Typostudio&#95;Buschbeck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile") Topic Author
- [ Offline](/forum/user/66301-typostudio-buschbeck)

Less More

- Posts: 6
- Thank you received: 2
-
-

4 years 2 months ago [\#345132](#345132) by [Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")  *[Order notification: Show ALL product options, not only selected ones](/forum/35-orders-management/905080-order-notification-show-all-product-options-not-only-selected-ones#345132 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.7 -- Browser(s) name and version -- : Chrome 104.0.5112.101  Dear HikaShop Team,  I want to make some changes in the &quot;Preload-Email-Template&quot; - but I'm missing the data I need to make my modifications and I hope you can give me a hint how to solve the problem.  The default source code is going through the ordered products and lists all the selected product options and characteristics. All UNSELECTED options/characteristics are not part of the collected data - but I need them because I want them to show, but greyed out.  I don't have problems to identify the source code row where I can add my changes, but I'm having problems to get the &quot;not selected&quot; checkboxes - of course because they are not part of the order (technically spoken).  Example: I have a product with option &quot;sauce&quot; and four checkboxes for different sauces. If a customer is selecting 3 of the 4 checkboxes they will be shown in the order email. And now I want to add the missing checkbox &quot;greyed out&quot;. But the fourth sauce is not part of any class/object/variable in the preload template.  How can I get these information? Thanks in advance for your support and have a nice day :)")* was created by *[Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")*

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.0
-- PHP version -- : 8.1.7
-- Browser(s) name and version -- : Chrome 104.0.5112.101

Dear HikaShop Team,

I want to make some changes in the "Preload-Email-Template" - but I'm missing the data I need to make my modifications and I hope you can give me a hint how to solve the problem.

The default source code is going through the ordered products and lists all the selected product options and characteristics. All UNSELECTED options/characteristics are not part of the collected data - but I need them because I want them to show, but greyed out.

I don't have problems to identify the source code row where I can add my changes, but I'm having problems to get the "not selected" checkboxes - of course because they are not part of the order (technically spoken).

Example:
I have a product with option "sauce" and four checkboxes for different sauces. If a customer is selecting 3 of the 4 checkboxes they will be shown in the order email. And now I want to add the missing checkbox "greyed out". But the fourth sauce is not part of any class/object/variable in the preload template.

How can I get these information?
Thanks in advance for your support and have a nice day ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTA4MC1vcmRlci1ub3RpZmljYXRpb24tc2hvdy1hbGwtcHJvZHVjdC1vcHRpb25zLW5vdC1vbmx5LXNlbGVjdGVkLW9uZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

4 years 2 months ago [\#345136](#345136) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order notification: Show ALL product options, not only selected ones](/forum/35-orders-management/905080-order-notification-show-all-product-options-not-only-selected-ones#345136 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.7 -- Browser(s) name and version -- : Chrome 104.0.5112.101  Dear HikaShop Team,  I want to make some changes in the &quot;Preload-Email-Template&quot; - but I'm missing the data I need to make my modifications and I hope you can give me a hint how to solve the problem.  The default source code is going through the ordered products and lists all the selected product options and characteristics. All UNSELECTED options/characteristics are not part of the collected data - but I need them because I want them to show, but greyed out.  I don't have problems to identify the source code row where I can add my changes, but I'm having problems to get the &quot;not selected&quot; checkboxes - of course because they are not part of the order (technically spoken).  Example: I have a product with option &quot;sauce&quot; and four checkboxes for different sauces. If a customer is selecting 3 of the 4 checkboxes they will be shown in the order email. And now I want to add the missing checkbox &quot;greyed out&quot;. But the fourth sauce is not part of any class/object/variable in the preload template.  How can I get these information? Thanks in advance for your support and have a nice day :)")*

Hi,

Indeed, that data is not available in the preload.
The line: Code:

$t .= '&lt;p class="hikashop_order_option_name"&gt;' . $optionElement-&gt;order_product_name;

is displaying the name of the variant of the option.
So you probably want to add custom code around there to :
- load the data of the variant of the option from the hikashop_product table: Code:

$optionVariantSelected = $productClass-&gt;get($optionElement-&gt;product_id);

- load the data of the option from the hikashop_product table: Code:

$option = $productClass-&gt;get($optionVariantSelected-&gt;product_parent_id);

- load the data of the characteristics, values and variants of the option: Code:

$option = $productClass-&gt;loadProductVariants($option, array('user_id' =&gt; $data-&gt;cart-&gt;order_user_id, 'selected_variant_id' =&gt; $optionElement-&gt;product_id));

- then, in $option-&gt;variants you'll have an array of all the possible choices of $option and you can compare that with the variants available in the order to do the display.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTA4MC1vcmRlci1ub3RpZmljYXRpb24tc2hvdy1hbGwtcHJvZHVjdC1vcHRpb25zLW5vdC1vbmx5LXNlbGVjdGVkLW9uZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")**
- [![Typostudio&#95;Buschbeck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile") Topic Author
- [ Offline](/forum/user/66301-typostudio-buschbeck)

Less More

- Posts: 6
- Thank you received: 2
-
-

4 years 1 month ago [\#345351](#345351) by [Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")  Replied by *[Typostudio\_Buschbeck](/forum/user/66301-typostudio-buschbeck "View Typostudio&#95;Buschbeck's Profile")* on topic *[Order notification: Show ALL product options, not only selected ones](/forum/35-orders-management/905080-order-notification-show-all-product-options-not-only-selected-ones#345351 "-- HikaShop version -- : 4.6.1 -- Joomla version -- : 4.2.0 -- PHP version -- : 8.1.7 -- Browser(s) name and version -- : Chrome 104.0.5112.101  Dear HikaShop Team,  I want to make some changes in the &quot;Preload-Email-Template&quot; - but I'm missing the data I need to make my modifications and I hope you can give me a hint how to solve the problem.  The default source code is going through the ordered products and lists all the selected product options and characteristics. All UNSELECTED options/characteristics are not part of the collected data - but I need them because I want them to show, but greyed out.  I don't have problems to identify the source code row where I can add my changes, but I'm having problems to get the &quot;not selected&quot; checkboxes - of course because they are not part of the order (technically spoken).  Example: I have a product with option &quot;sauce&quot; and four checkboxes for different sauces. If a customer is selecting 3 of the 4 checkboxes they will be shown in the order email. And now I want to add the missing checkbox &quot;greyed out&quot;. But the fourth sauce is not part of any class/object/variable in the preload template.  How can I get these information? Thanks in advance for your support and have a nice day :)")*

Hi Nicholas,

sorry for the late reply! I just want to thank you for your support. Your posted code helped me a lot to get what I wanted.
Thanks for the effort and you can close the topic ![:)](/media/kunena/emoticons/3.png ":)")

Best regards!

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNTA4MC1vcmRlci1ub3RpZmljYXRpb24tc2hvdy1hbGwtcHJvZHVjdC1vcHRpb25zLW5vdC1vbmx5LXNlbGVjdGVkLW9uZXM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
