Product creation before adding to basket

Author Message

Karol Radziuk

Thursday 05 May 2011 1:44:51 am

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)

{$me|attribute(show,1)}

Marko Žmak

Thursday 05 May 2011 5:10:13 am

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.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Thursday 05 May 2011 9:27:28 am

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...

Principal Consultant International Business
Member of the Community Project Board

Karol Radziuk

Thursday 05 May 2011 11:37:51 pm

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.

{$me|attribute(show,1)}

Quoc Huy Nguyen Dinh

Tuesday 24 May 2011 12:37:24 pm

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

Gaetano Giunta

Wednesday 25 May 2011 1:01:47 am

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

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.