Product specification attributes in product box

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi! Is there a way I can show product specification attributes in Product box? I have searched for this but I didn't find a solution for nopcommerce 3.90.
Older post recommended adding this code in _ProductBox.cshtml :
            <div class="product-specs-box">
                    <div class="title">
                        <strong>@T("Products.Specs")</strong>
                    </div>
                    <div class="table-wrapper">
                        <table class="data-table">
                            <tbody>
                                @foreach (var item in Model.SpecificationAttributeModels)
                                {
                                    <tr>
                                        <td class="spec-name">
                                            @item.SpecificationAttributeName
                                        </td>
                                        <td class="spec-value">
                                            @Html.Raw(item.ValueRaw)
                                        </td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>

But it doesn't work
So this is basically where I would like to add specification attributes https://ibb.co/cpuaDm .
Thank, you!
6 years ago
Hello,

I don't think there is any shortcut but you can do it with a widget plugin and use widget zones available in product box.
6 years ago
Thank you! Can you be more specific on how to do it?
6 years ago
Yes you can,

You can done with two approach.

First you can customize in nopcommerce commerce code.
For an example- you can modified prepare product overview model.

As well as product box also  modified.

Another approach is to use widget plugin.

You have to bring call in your custom action with product I'd through widget.

After prepare your own model and pass on view.

Yeah.. that's set.
6 years ago
tymas02 - Did you find a solution for this?  I am looking for same thing.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.