Re: Catalog -- Stores -- Emails

2008-03-24 Thread Mridul Pathak
Heidi,
The screen you have specified here represents Email Settings for your
product store.  Here are the answers to your questions.

1)  *Body Screen Location:* Here you specify the Component Uri location for
the screen-widget which contains the template for your email body and will
be renered in your email.

2) *Attachment Screen Location (XSL-FO):*  Here you specify the Component
Uri location for the screen-widget which contains the template for your
email attachment (pdf) and will be sent as an attachment in your email.

3) If you want the system to send emails than you must need to change the
value of *mail.notifications.enabled* property to *Y* in *general.properties
* file.

On Mon, Mar 24, 2008 at 4:33 AM, Heidi Dehaes [EMAIL PROTECTED] wrote:

 Can someone explain me the fields in this screen:
 Catalog -- Stores -- Emails

 What is meant by:
 Body Screen Location: 
 
 Attachment Screen Location (XSL-FO) : ???

 What do i have to fill in?

 Also if i select registration for the email, will the system send
 automatically an email after someone registrates???

 It seems this doesn't work by me!

 Regards,
 Heidi Dehaas




-- 
Thanks  Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: Can't Approve Orders with service products

2008-03-24 Thread Mridul Pathak
 Enrique,
According to my understanding, Digital as well as Service products are
the non-shippable products.  Hence whenever you create an order for them
they are directly fulfilled (payment is captured as well) and the status is
set to COMPLETE by default.  You need not to first create an order, approve
it and then set it to complete status.  This type of flow is followed for
Physical Products where, first the order is created, then approved and
finally shipped (COMPLETED) based on the Inventory available.
Also a completed Order can never be set back to approved status.  This
is against business logic hence such functionality is restricted in OFBiz
using StatusValidChange entity.

On Mon, Mar 24, 2008 at 5:05 AM, Enrique Ruibal A. [EMAIL PROTECTED]
wrote:

 I placed the following order in Managment demo -trunk-, but when I tried
 to approve it, it sends the following error:

 The Following Errors Occurred:

 ERROR : Could not change order status ; status is not a valid change.:
 [ORDER_COMPLETED] - [ORDER_APPROVED]


 I also tried with other digital goods and no success..


 Product Status  QuantityUnit / List Adjustments
 Sub Total
 GZ-NEWS-1MO - Gizmo Newsletter 1 Month
 Catalog
 
 https://demo.hotwaxmedia.com/catalog/control/EditProduct?productId=GZ-NEWS-1MO
 
 Ecommerce
 
 https://demo.hotwaxmedia.com/ecommerce/control/product?product_id=GZ-NEWS-1MO
 

 Inventory
 
 https://demo.hotwaxmedia.com/catalog/control/EditProductInventoryItems?productId=GZ-NEWS-1MOshowAllFacilities=YexternalLoginKey=EL91956417685
 

 Required for SO 1
 In Inventory [Web Store Warehouse] QOH  0 (ATP: 0)
 In Inventory [All Facilities] QOH   0 (ATP: 0)
 On Order0
 In Production   0
 Unplanned   1


 Current Created
 2008-03-23 18:24:00.126  Created

 *Ordered*   1   *Ship Request*  0
 *Cancelled* 0   *Qty Picked*0
 *Remaining* 1   *Qty Shipped*   0
 *Shortfalled*   0   *Outstanding*   1
 *Invoiced*  0   *Returned*  0

$3.99 / $5.00   ($3.99) $0.00





-- 
Thanks  Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]
__
Office : 509.855.4113
Mobile : +919425926892


Re: How to use event to send session parameter

2008-03-24 Thread Nattanicha Rittammanart

Dear Miridul,
  I use Service engine and I tried follows your suggestion. But I got 
problem like this:


2008-03-24 20:03:16,468 (http-0.0.0.0-8080-Processor3) [  
AssetServices.java:37 :INFO ] session : null


but in log file I can see:

2008-03-24 20:03:16,437 (http-0.0.0.0-8080-Processor3) [ 
RequestHandler.java:245:INFO ] [Processing Request]: 
createAssetPrototype sessionId=C24B7F75CEE3F8413665F3D314BAFE98.jvm1


This line is print from RequestHandler.java. How can I get this 
sessionId in createAssetPrototype

*
My code*
sevicedef.xml
service engine=java name=createAssetPrototype 
location=org.ofbiz.prototype.AssetServices invoke=createAssetPrototype

   descriptioncreate asset/description
   auto-attributes mode=IN entity-name=SimpleAcc include=nonpk 
optional=true/auto-attributes
   attribute type=String mode=OUT name=accid 
optional=false/attribute
   attribute mode=IN name=session optional=true 
type=javax.servlet.http.HttpSession/

   /service
*
Java code*
AssetServices.java
   public static Map createAssetPrototype(DispatchContext dctx, Map 
context)throws IOException{

  
   HttpSession session = (HttpSession)context.get(session);
   Debug.logInfo(session Kae: +session, module);
   .
}

Please help me,
Nattanicha

Mridul Pathak wrote:

There can be two cases:
1) In the request-map you are using Java Engine.  In this case of a Java
Event you can get the session object from a request object available to you
in the event by useing *getSession()* method on request object.  Now you can
get all your required session infromation from the session object.
There are lots of examples that you can find in OFBiz for this approach.

2) In the request-map you are using Service engine, and in the service
definition you are using engine type of Java.  In this case session object
is not available to you, but it can be made availabel by adding an IN
attribute to your service definition in the following way: attribute
mode=IN name=session optional=true type=
javax.servlet.http.HttpSession/.
Now you can get this session object in your Java Service from the
context map in the following way:
HttpSession session = (HttpSession)context.get(session);

I think this way you can access the session information.


On Sat, Mar 22, 2008 at 7:03 AM, Nattanicha Rittammanart [EMAIL PROTECTED]
wrote:

  

Dear all,
 I need to work with session information. I knew that we can send
session information to Java engine by using event. Anyway, I don't know
how to do this. Who used to do this please tell me or tell me where I
can read this is also OK. Thanks in advance.

Nattanicha