Skip to content

Cart API Widget iframe generation is broken #27

@vanilla38

Description

@vanilla38

adding multiple products in a flexible cart is not possible because the product names are not taken in consideration, see Widget.js line 76:

REPLACE:
if (product.currencyCode) {
params['currencies[' + index + ']'] = product.getCurrencyCode();
}
index++;

BY:
if (product.currencyCode) {
params['currencies[' + index + ']'] = product.getCurrencyCode();
}
if (product.name) {
params['names[' + index + ']'] = product.getName();
}
index++;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions