Skip to content

Custom control on cart not working on commerceSDK #178

Answered by RethaLam
RethaLam asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind. While switching to CommerceSDK I have decided to change the publisher and package name to reflect our company's new name and I totally forgot that for cart controls one has to use the exact package and publisher names on the screen layout for the control.

for the 3rd argument on the applyBindingsToNode, I used "this". don't know if that is what it should be, but it works.

public onReady(element: HTMLElement): void {
ko.applyBindingsToNode(element, {
template: {
name: CartSONumControl.TEMPLATE_ID,
data: this
}
}, this);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RethaLam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant