Ezsimplestockcheck Extension Problem

Author Message

PaoloMellerio kk

Thursday 18 May 2006 7:51:20 am

Hi to all,

I've downloaded and installed the Ezsimplestockcheck Extensions on Ez 3.6.5 for managing inventory in a web shop.
I've followed the documentation, but testing the functionality in Administration Interface, the order is closed but the attribute quantity of the product choosen is not decremented.

Any Idea?

THX in Advice
Paolo Mellerio [Clikka!com]

Paolo Mellerio
http://www.clikka.com

Stuart Fenton

Thursday 18 May 2006 8:03:02 am

Is the attribute called "quantity" as this is the required name. You can change the code at line 67 to whatever attribute name you need.

Have you created a workflow to run the ezsimplestockcheck workflow?

Also you need to create a trigger event to run the workflow. Set the trigger to trigger event to AFTER the shop transaction is complete.

I haven't tried to use it from the administration side only the user side.

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

PaoloMellerio kk

Thursday 18 May 2006 8:18:11 am

Hi Fats,

i've created a new workflow with the Event/SimpleStockCheck and then applied the new workflow after checkout in Shop Module.

I've created workflow.ini.append.php in settings/override with the follwing content:

[EventSettings]
ExtensionDirectories[]
ExtensionDirectories[]=ezsimplestockcheck

# A list of events, each entry consists of the group
# and the name with a _ as separator
AvailableEventTypes[]=ezsimplestockcheck

The attribute is called "quantity" in my product class.

I don't believe that it doesn't work in the admin interface...

THX for your answer.
Paolo

Paolo Mellerio
http://www.clikka.com

PaoloMellerio kk

Thursday 18 May 2006 8:29:40 am

Ok, after a forced clearing cache in the Admin Interface, the product show the correct decremented value: probably in the template admin interface there is a cache-block which "hides" the correct value of quantity after the end of the e-com procedure in admin interface.
Now I'll test it in the public side, for see if it works without a forced clearing cache.

Bye
Paolo

Paolo Mellerio
http://www.clikka.com

Stuart Fenton

Thursday 18 May 2006 8:34:26 am

The code should work as it's very simply. I never tried it on 3.6.5 but I wrote it for 3.7.2.

Do you have a development environment setup whereby you can set a breakpoint in your code and look at what happens when you get the the extension?

It may be that the extension is never getting called. Make sure you dump your cache. If you switch on debug you should get some output.

There are a few lines like:
eZDebug::writeNotice( $parameters, "parameters" );

In the code which should output the variables.

IF there is no output the extension is not live.

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

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