eZ Community » Forums » Developer » Product creation before adding to basket
expandshrink

Product creation before adding to basket

Product creation before adding to basket

Thursday 05 May 2011 10:44:51 am - 5 replies

Hi,

I get product informations from an external provider via SOAP. Before user adds it, eZ must create an product object. Can I do this using workflow?

1. Click add to basket

2. Workflow creates product object and forward ist ID (or even 2 products in one time) to the shop add to basket function (Is it possible? This is the crux of the matter)

Modified on Thursday 05 May 2011 11:07:59 am by Karol Radziuk

Thursday 05 May 2011 2:10:13 pm

Just an idea... Why don't you fill your eZ database with product objects generated from this SOAP service and then use a cronjob to update your database regullary?

Then you can use this products with the eZP shop functionality.

Also if you make a call to the SOAP service every time the user adds something to basket, you can have problems due to loss of connectivity or slow connection to the SOAP service.

Thursday 05 May 2011 6:27:28 pm

Do you really need to create full-fledged objects, or could you just add information to your order? The orders are quite flexible by themselves...

Friday 06 May 2011 8:37:51 am

I checked the code a little more thoroughly and I see, that workflows are impossible in my case.
Trigger starts after checking the ObjectID, so I created the new extension for this.

@Marko
My approach is to get allways fresh informations.

@Gaetano
Good point, I forgot about this. Thanks.

Tuesday 24 May 2011 9:37:24 pm

Gaetano, so it is possible to add info in an order / create an order without having a product?

Wednesday 25 May 2011 10:01:47 am

@quoc I do not think so - but I never tried...

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from