Skip to content

Add Custom Product attributes to minicart template #1688

@Zaylril

Description

@Zaylril

So in the minicart template in web/template/minicart/item/default.html you have the following code:

<a data-bind="attr: {href: product_url, title: product_name}, text: product_name"></a>

What I want to do is add a custom product attribute to this, as well as maybe some default existing ones such as weight for example.

I know how the template can be modified to display the data I'm just not sure how i can assign custom data to the KO js var I need.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions