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.

eZ debug

Timing: Jan 31 2025 04:31:09
Script start
Timing: Jan 31 2025 04:31:09
Module start 'layout'
Timing: Jan 31 2025 04:31:09
Module start 'content'
Timing: Jan 31 2025 04:31:09
Module end 'content'
Timing: Jan 31 2025 04:31:09
Script end

Main resources:

Total runtime0.0149 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1563151.2109
Module start 'layout' 0.00590.0027 739.367236.6484
Module start 'content' 0.00860.0046 776.015694.1563
Module end 'content' 0.01320.0016 870.171937.9922
Script end 0.0148  908.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.5802140.0002
Check MTime0.00117.4122140.0001
Mysql Total
Database connection0.00064.246810.0006
Mysqli_queries0.003020.431230.0010
Looping result0.00000.086510.0000
Template Total0.00138.710.0013
Template load0.00106.785910.0010
Template processing0.00031.899910.0003
Override
Cache load0.00085.099010.0008
General
dbfile0.00031.786280.0000
String conversion0.00000.059340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs