Developer forum

Forum » Ecommerce - Standard features » CustomerProductList and NotificationSubscriber

CustomerProductList and NotificationSubscriber

Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi,

I would like to automatically create a new CustomerProductList and add a given product to the list, using the standard list-functionality in the CustomerCenter, when it comes to creating and editing lists.

Do I have to create the list by API instead or are there any notifications I can subscribe to?

--
Best regards
Kurt Moskjaer Andersen 


Replies

 
Nicolai Pedersen
Reply

Hi Kurt

Not sure I understand the question. Do you want the list to be created when I add a product to a favorite? 

 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Hi Nicolai,

No, the other way around.

If I want to create a new CustomerProductList from the product page at the frontend, I'm normally taken to the CreateFormList-page in the CustomerCenter, where I can enter the name of the list.

What I would like to do, is to automatically add the referering product to my brand new list, right after it has been created. Does this make sense?

/Kurt

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Maybe... :-).

I think you can take the form from the customer center create list - and put it on the product page - and then submit it to the customer center page to create the list. If you do this using ajax or similar, you can return the id of the new list and use it for adding the product to the new favorite list.

BR Nicolai

Votes for this answer: 1
 
Kurt Moskjær Andersen
Kurt Moskjær Andersen
Reply

Okay, thanks. I will look further into this.

/Kurt

 

You must be logged in to post in the forum