Forums / Setup & design / Webshop: How do I trigger a function when changing status?

Webshop: How do I trigger a function when changing status?

Author Message

Kjell Inge Sandvik

Tuesday 13 September 2005 3:24:47 am

Hello

I have finally got so far that the shop I've working on for the last weeks actually works. One of the final stages, it to give administrator a way to process the orders in such a way that an email is sent to the customer with the purcased items (files).

Okey; I think the best way to do this is to trigger a workflow or a pure mail-function when the administrator chooses "delivered" from the dropdown at the order list screen, but how can I do this?

Sandvik Web & Data

Kjell Inge Sandvik

Tuesday 13 September 2005 6:17:13 am

Anyone?

Sandvik Web & Data

Kjell Inge Sandvik

Wednesday 14 September 2005 2:42:50 am

Guess I have to explain this a bit clearer :-)

What I try do do, is to get the admin-system to send the customer an email containing of urls to the bought items (pictures, documents and other files). This should happen in the same moment that admin changes the order's status from Pending to Delivered.

I try to modify shop/orderlist.tpl in the admin-directory. The problem is that the $product_list seem non-existent in this template; How can I get the products that the customer have bought inside this template, and how do I send the email?

Sandvik Web & Data

Martin Ulrich

Tuesday 22 November 2005 5:08:06 am

I have the same problem. Updated from 3.6.1 to 3.6.2 no email was sent any more for shoporders.

I do a new clean installation, put in [InformationCollectionSettings]
EmailReceiver=myemail@...

still nothing. I found no eventtype for email sending. No idea for a solution.

;-(

:-)

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Martin Ulrich

Tuesday 22 November 2005 10:08:24 am

sory,
everythings is fine after update to 3.6.4

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Emili Hernández

Wednesday 13 December 2006 5:23:15 am

You have solved the problem?

Please, if it's thus, you communicate me since you have resolved it.

My mail is info@avinatura.com

Lukasz Piech

Monday 02 July 2007 2:14:01 pm

did anyone come up with a solution for this?

eZ debug

Timing: Jan 18 2025 21:02:17
Script start
Timing: Jan 18 2025 21:02:17
Module start 'content'
Timing: Jan 18 2025 21:02:17
Module end 'content'
Timing: Jan 18 2025 21:02:17
Script end

Main resources:

Total runtime0.1538 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.1016180.7969
Module start 'content' 0.00610.0053 769.898497.9766
Module end 'content' 0.01140.1424 867.8750526.2969
Script end 0.1538  1,394.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.1922200.0002
Check MTime0.00150.9461200.0001
Mysql Total
Database connection0.00100.622810.0010
Mysqli_queries0.108470.47851410.0008
Looping result0.00110.74721390.0000
Template Total0.142092.310.1420
Template load0.00070.475210.0007
Template processing0.141391.824510.1413
Override
Cache load0.00050.310810.0005
Sytem overhead
Fetch class attribute can translate value0.00080.537710.0008
XML
Image XML parsing0.00030.224310.0003
General
dbfile0.00603.9258200.0003
String conversion0.00000.003330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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