[OFBiz] Users - OrderEntry Website and Multiple Product Stores

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[OFBiz] Users - OrderEntry Website and Multiple Product Stores

Kyle Tippetts
All,

I just ran across something that's confusing me a bit; is it true that
the OrderEntry website can only be assigned to one Product Store? It
appears that this is the case -- here's what I've got. I'm running two
product stores out of a single OFBiz instance. I've got the OrderEntry
website assigned to the first product store. When I try to assign it to
the second Product Store, the original assignment to the first product
store disappears.

So, is the solution to this to create another OrderEntry website, and is
that simply a matter of creating a website definition and then assigning
it to the second product store? If not, what else do I need to do? I
apologize for the inane-sounding question, but I'm encountering this on
a production system, and I want to make sure I solve this quickly and
correctly the first time without any hiccups.

Thanks,
--Kyle
================================
--Kyle Tippetts
--[hidden email]

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Si Chen-2
No, this is not the case.  When you enter order, aren't you prompted for
a product store?

Kyle Tippetts wrote:

>All,
>
>I just ran across something that's confusing me a bit; is it true that
>the OrderEntry website can only be assigned to one Product Store? It
>appears that this is the case -- here's what I've got. I'm running two
>product stores out of a single OFBiz instance. I've got the OrderEntry
>website assigned to the first product store. When I try to assign it to
>the second Product Store, the original assignment to the first product
>store disappears.
>
>So, is the solution to this to create another OrderEntry website, and is
>that simply a matter of creating a website definition and then assigning
>it to the second product store? If not, what else do I need to do? I
>apologize for the inane-sounding question, but I'm encountering this on
>a production system, and I want to make sure I solve this quickly and
>correctly the first time without any hiccups.
>
>Thanks,
>--Kyle
>================================
>--Kyle Tippetts
>--[hidden email]
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Kyle Tippetts
Yes, but even if I select the proper Product Store (in this case called
Shore Sale Magic Store), when I get to the next page in the Order Entry
process, all of the stuff on the left side (the Choose Catalog drop-down
and Browse Catalog box) are for the first product store (called Vision
Product Store). Only if I go to the Content Manager > Websites and add
the Order Entry website to the Short Sale Magic product store do I get
the proper catalog display in the Order Entry Manager.

But then if I need to now take an order for the Vision Product Store,
and select the Vision Product Store on the first Order Entry page, the
catalogs displayed in the subsequent Order Entry pages are for Short
Sale Magic. So I have to go back to Content > Websites and assign the
OrderEntry website to the Vision store, then OrderEntry behaves as
expected.

I'm using a Sept 2004 release of OFBiz, but I have only just recently
encountered the need to be able to take orders for more than one Product
Store....

--Kyle

On Mon, 2005-08-08 at 14:18 -0700, Si Chen wrote:

> No, this is not the case.  When you enter order, aren't you prompted for
> a product store?
>
> Kyle Tippetts wrote:
>
> >All,
> >
> >I just ran across something that's confusing me a bit; is it true that
> >the OrderEntry website can only be assigned to one Product Store? It
> >appears that this is the case -- here's what I've got. I'm running two
> >product stores out of a single OFBiz instance. I've got the OrderEntry
> >website assigned to the first product store. When I try to assign it to
> >the second Product Store, the original assignment to the first product
> >store disappears.
> >
> >So, is the solution to this to create another OrderEntry website, and is
> >that simply a matter of creating a website definition and then assigning
> >it to the second product store? If not, what else do I need to do? I
> >apologize for the inane-sounding question, but I'm encountering this on
> >a production system, and I want to make sure I solve this quickly and
> >correctly the first time without any hiccups.
> >
> >Thanks,
> >--Kyle
> >================================
> >--Kyle Tippetts
> >--[hidden email]
> >
> >
> >_______________________________________________
> >Users mailing list
> >[hidden email]
> >http://lists.ofbiz.org/mailman/listinfo/users
> >
> >  
> >
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Si Chen-2
There's been a lot of improvements to the order manager since then.  Can
you try a more recent build, and if still doesn't work, create a JIRA
bug issue for it?

Si

Kyle Tippetts wrote:

>Yes, but even if I select the proper Product Store (in this case called
>Shore Sale Magic Store), when I get to the next page in the Order Entry
>process, all of the stuff on the left side (the Choose Catalog drop-down
>and Browse Catalog box) are for the first product store (called Vision
>Product Store). Only if I go to the Content Manager > Websites and add
>the Order Entry website to the Short Sale Magic product store do I get
>the proper catalog display in the Order Entry Manager.
>
>But then if I need to now take an order for the Vision Product Store,
>and select the Vision Product Store on the first Order Entry page, the
>catalogs displayed in the subsequent Order Entry pages are for Short
>Sale Magic. So I have to go back to Content > Websites and assign the
>OrderEntry website to the Vision store, then OrderEntry behaves as
>expected.
>
>I'm using a Sept 2004 release of OFBiz, but I have only just recently
>encountered the need to be able to take orders for more than one Product
>Store....
>
>--Kyle
>
>On Mon, 2005-08-08 at 14:18 -0700, Si Chen wrote:
>  
>
>>No, this is not the case.  When you enter order, aren't you prompted for
>>a product store?
>>
>>Kyle Tippetts wrote:
>>
>>    
>>
>>>All,
>>>
>>>I just ran across something that's confusing me a bit; is it true that
>>>the OrderEntry website can only be assigned to one Product Store? It
>>>appears that this is the case -- here's what I've got. I'm running two
>>>product stores out of a single OFBiz instance. I've got the OrderEntry
>>>website assigned to the first product store. When I try to assign it to
>>>the second Product Store, the original assignment to the first product
>>>store disappears.
>>>
>>>So, is the solution to this to create another OrderEntry website, and is
>>>that simply a matter of creating a website definition and then assigning
>>>it to the second product store? If not, what else do I need to do? I
>>>apologize for the inane-sounding question, but I'm encountering this on
>>>a production system, and I want to make sure I solve this quickly and
>>>correctly the first time without any hiccups.
>>>
>>>Thanks,
>>>--Kyle
>>>================================
>>>--Kyle Tippetts
>>>--[hidden email]
>>>
>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>      
>>>
>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Kyle Tippetts
I'm preparing to enter this as an issue in JIRA, since it appears that
this doesn't work in the latest SVN version either. I just want to make
sure that the behaviour I expect from the Order Entry Website is what's
really supposed to happen.

If I select a product store from the drop-down list on the first Order
Entry page, I expect that the Browse Categories box should only show the
Catalog Categories for the selected product store, and whatever order
number is generated, it should include any Order Number Prefix that's
been set up for the selected product store.

Thanks,
--Kyle

On Mon, 2005-08-08 at 14:47 -0700, Si Chen wrote:

> There's been a lot of improvements to the order manager since then.  Can
> you try a more recent build, and if still doesn't work, create a JIRA
> bug issue for it?
>
> Si
>
> Kyle Tippetts wrote:
>
> >Yes, but even if I select the proper Product Store (in this case called
> >Shore Sale Magic Store), when I get to the next page in the Order Entry
> >process, all of the stuff on the left side (the Choose Catalog drop-down
> >and Browse Catalog box) are for the first product store (called Vision
> >Product Store). Only if I go to the Content Manager > Websites and add
> >the Order Entry website to the Short Sale Magic product store do I get
> >the proper catalog display in the Order Entry Manager.
> >
> >But then if I need to now take an order for the Vision Product Store,
> >and select the Vision Product Store on the first Order Entry page, the
> >catalogs displayed in the subsequent Order Entry pages are for Short
> >Sale Magic. So I have to go back to Content > Websites and assign the
> >OrderEntry website to the Vision store, then OrderEntry behaves as
> >expected.
> >
> >I'm using a Sept 2004 release of OFBiz, but I have only just recently
> >encountered the need to be able to take orders for more than one Product
> >Store....
> >
> >--Kyle
> >
> >On Mon, 2005-08-08 at 14:18 -0700, Si Chen wrote:
> >  
> >
> >>No, this is not the case.  When you enter order, aren't you prompted for
> >>a product store?
> >>
> >>Kyle Tippetts wrote:
> >>
> >>    
> >>
> >>>All,
> >>>
> >>>I just ran across something that's confusing me a bit; is it true that
> >>>the OrderEntry website can only be assigned to one Product Store? It
> >>>appears that this is the case -- here's what I've got. I'm running two
> >>>product stores out of a single OFBiz instance. I've got the OrderEntry
> >>>website assigned to the first product store. When I try to assign it to
> >>>the second Product Store, the original assignment to the first product
> >>>store disappears.
> >>>
> >>>So, is the solution to this to create another OrderEntry website, and is
> >>>that simply a matter of creating a website definition and then assigning
> >>>it to the second product store? If not, what else do I need to do? I
> >>>apologize for the inane-sounding question, but I'm encountering this on
> >>>a production system, and I want to make sure I solve this quickly and
> >>>correctly the first time without any hiccups.
> >>>
> >>>Thanks,
> >>>--Kyle
> >>>================================
> >>>--Kyle Tippetts
> >>>--[hidden email]
> >>>
> >>>
> >>>_______________________________________________
> >>>Users mailing list
> >>>[hidden email]
> >>>http://lists.ofbiz.org/mailman/listinfo/users
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>
> >>_______________________________________________
> >>Users mailing list
> >>[hidden email]
> >>http://lists.ofbiz.org/mailman/listinfo/users
> >>
> >>    
> >>
> >
> >
> >_______________________________________________
> >Users mailing list
> >[hidden email]
> >http://lists.ofbiz.org/mailman/listinfo/users
> >
> >  
> >
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Si Chen-2
That would make sense.  It may be broken.  Please create an issue for it.

Si

Kyle Tippetts wrote:

>I'm preparing to enter this as an issue in JIRA, since it appears that
>this doesn't work in the latest SVN version either. I just want to make
>sure that the behaviour I expect from the Order Entry Website is what's
>really supposed to happen.
>
>If I select a product store from the drop-down list on the first Order
>Entry page, I expect that the Browse Categories box should only show the
>Catalog Categories for the selected product store, and whatever order
>number is generated, it should include any Order Number Prefix that's
>been set up for the selected product store.
>
>Thanks,
>--Kyle
>
>On Mon, 2005-08-08 at 14:47 -0700, Si Chen wrote:
>  
>
>>There's been a lot of improvements to the order manager since then.  Can
>>you try a more recent build, and if still doesn't work, create a JIRA
>>bug issue for it?
>>
>>Si
>>
>>Kyle Tippetts wrote:
>>
>>    
>>
>>>Yes, but even if I select the proper Product Store (in this case called
>>>Shore Sale Magic Store), when I get to the next page in the Order Entry
>>>process, all of the stuff on the left side (the Choose Catalog drop-down
>>>and Browse Catalog box) are for the first product store (called Vision
>>>Product Store). Only if I go to the Content Manager > Websites and add
>>>the Order Entry website to the Short Sale Magic product store do I get
>>>the proper catalog display in the Order Entry Manager.
>>>
>>>But then if I need to now take an order for the Vision Product Store,
>>>and select the Vision Product Store on the first Order Entry page, the
>>>catalogs displayed in the subsequent Order Entry pages are for Short
>>>Sale Magic. So I have to go back to Content > Websites and assign the
>>>OrderEntry website to the Vision store, then OrderEntry behaves as
>>>expected.
>>>
>>>I'm using a Sept 2004 release of OFBiz, but I have only just recently
>>>encountered the need to be able to take orders for more than one Product
>>>Store....
>>>
>>>--Kyle
>>>
>>>On Mon, 2005-08-08 at 14:18 -0700, Si Chen wrote:
>>>
>>>
>>>      
>>>
>>>>No, this is not the case.  When you enter order, aren't you prompted for
>>>>a product store?
>>>>
>>>>Kyle Tippetts wrote:
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>>>All,
>>>>>
>>>>>I just ran across something that's confusing me a bit; is it true that
>>>>>the OrderEntry website can only be assigned to one Product Store? It
>>>>>appears that this is the case -- here's what I've got. I'm running two
>>>>>product stores out of a single OFBiz instance. I've got the OrderEntry
>>>>>website assigned to the first product store. When I try to assign it to
>>>>>the second Product Store, the original assignment to the first product
>>>>>store disappears.
>>>>>
>>>>>So, is the solution to this to create another OrderEntry website, and is
>>>>>that simply a matter of creating a website definition and then assigning
>>>>>it to the second product store? If not, what else do I need to do? I
>>>>>apologize for the inane-sounding question, but I'm encountering this on
>>>>>a production system, and I want to make sure I solve this quickly and
>>>>>correctly the first time without any hiccups.
>>>>>
>>>>>Thanks,
>>>>>--Kyle
>>>>>================================
>>>>>--Kyle Tippetts
>>>>>--[hidden email]
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Users mailing list
>>>>>[hidden email]
>>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>>    
>>>>>
>>>>>          
>>>>>
>>>>_______________________________________________
>>>>Users mailing list
>>>>[hidden email]
>>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>>
>>>>  
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>Users mailing list
>>>[hidden email]
>>>http://lists.ofbiz.org/mailman/listinfo/users
>>>
>>>
>>>
>>>      
>>>
>>
>>_______________________________________________
>>Users mailing list
>>[hidden email]
>>http://lists.ofbiz.org/mailman/listinfo/users
>>
>>    
>>
>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.ofbiz.org/mailman/listinfo/users
>
>  
>
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Jacopo Cappellato
In reply to this post by Kyle Tippetts
Hi Kyle,

I've committed a patch (rev 5499) that should fix the bug: please, could
you do a few tests and let me know if everything is ok?

Thanks,

Jacopo

Kyle Tippetts wrote:

> I'm preparing to enter this as an issue in JIRA, since it appears that
> this doesn't work in the latest SVN version either. I just want to make
> sure that the behaviour I expect from the Order Entry Website is what's
> really supposed to happen.
>
> If I select a product store from the drop-down list on the first Order
> Entry page, I expect that the Browse Categories box should only show the
> Catalog Categories for the selected product store, and whatever order
> number is generated, it should include any Order Number Prefix that's
> been set up for the selected product store.
>
> Thanks,
> --Kyle
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Kyle Tippetts
That's great. Can you tell me which files were involved with the patch?
I'll download the latest SVN snapshot, but I'm going to need to try and
patch my September 2004 production version as well, and I think it'd be
better for me to just patch the specific class methods or whatever.

Thanks for all your work on this. I really appreciate it.

--Kyle

On Wed, 2005-08-10 at 18:24 +0200, Jacopo Cappellato wrote:

> Hi Kyle,
>
> I've committed a patch (rev 5499) that should fix the bug: please, could
> you do a few tests and let me know if everything is ok?
>
> Thanks,
>
> Jacopo
>
> Kyle Tippetts wrote:
> > I'm preparing to enter this as an issue in JIRA, since it appears that
> > this doesn't work in the latest SVN version either. I just want to make
> > sure that the behaviour I expect from the Order Entry Website is what's
> > really supposed to happen.
> >
> > If I select a product store from the drop-down list on the first Order
> > Entry page, I expect that the Browse Categories box should only show the
> > Catalog Categories for the selected product store, and whatever order
> > number is generated, it should include any Order Number Prefix that's
> > been set up for the selected product store.
> >
> > Thanks,
> > --Kyle
> >
>
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
>

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: [OFBiz] Users - OrderEntry Website and Multiple Product Stores

Jacopo Cappellato
In reply to this post by Kyle Tippetts
Kyle,

the patch is attached.
September 2004... a lot is changed since then in the order entry: good
luck! Probably you'll need to apply all the mods to the showcart.bsh: if
I well remember it was there that all the init was done.

Jacopo


Kyle Tippetts wrote:
 > That's great. Can you tell me which files were involved with the patch?
 > I'll download the latest SVN snapshot, but I'm going to need to try and
 > patch my September 2004 production version as well, and I think it'd be
 > better for me to just patch the specific class methods or whatever.
 >
 > Thanks for all your work on this. I really appreciate it.
 >
 > --Kyle
 >
 > On Wed, 2005-08-10 at 18:24 +0200, Jacopo Cappellato wrote:
 >
 >>Hi Kyle,
 >>
 >>I've committed a patch (rev 5499) that should fix the bug: please, could
 >>you do a few tests and let me know if everything is ok?
 >>
 >>Thanks,
 >>
 >>Jacopo
 >>
 >>Kyle Tippetts wrote:
 >>
 >>>I'm preparing to enter this as an issue in JIRA, since it appears that
 >>>this doesn't work in the latest SVN version either. I just want to make
 >>>sure that the behaviour I expect from the Order Entry Website is what's
 >>>really supposed to happen.
 >>>
 >>>If I select a product store from the drop-down list on the first Order
 >>>Entry page, I expect that the Browse Categories box should only show the
 >>>Catalog Categories for the selected product store, and whatever order
 >>>number is generated, it should include any Order Number Prefix that's
 >>>been set up for the selected product store.
 >>>
 >>>Thanks,
 >>>--Kyle
 >>>

Author: jacopo
Date: 2005-08-10 11:21:02 -0500 (Wed, 10 Aug 2005)
New Revision: 5499

Modified:
   trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
   trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/showcart.bsh
Log:
This patch will manage properly the session variables "productStoreId" and "CURRENT_CATALOG_ID" to avoid problems
in order entry when you switch from a product store to another. Thanks to Si Chen and David Jones for the help.
This will fix Jira issue OFBIZ-417.

Modified: trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
===================================================================
--- trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java 2005-08-10 13:58:49 UTC (rev 5498)
+++ trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java 2005-08-10 16:21:02 UTC (rev 5499)
@@ -526,6 +526,8 @@
         session.removeAttribute("shoppingCart");
         session.removeAttribute("orderPartyId");
         session.removeAttribute("orderMode");
+        session.removeAttribute("productStoreId");
+        session.removeAttribute("CURRENT_CATALOG_ID");
         return "success";
     }
 
@@ -873,6 +875,11 @@
       String finalizeMode = (String)session.getAttribute("finalizeMode");
       Locale locale = UtilHttp.getLocale(request);
 
+      String productStoreId = request.getParameter("productStoreId");
+
+      if (UtilValidate.isNotEmpty(productStoreId)) {
+          session.setAttribute("productStoreId", productStoreId);
+      }
       ShoppingCart cart = getCartObject(request);
 
       String orderMode = request.getParameter("orderMode");
@@ -885,7 +892,6 @@
       }
 
       // check the selected product store
-      String productStoreId = request.getParameter("productStoreId");
       GenericValue productStore = null;
       if (UtilValidate.isNotEmpty(productStoreId)) {
           productStore = ProductStoreWorker.getProductStore(productStoreId, delegator);
@@ -917,7 +923,7 @@
               if (hasPermission) {
                   cart = ShoppingCartEvents.getCartObject(request, null, productStore.getString("defaultCurrencyUomId"));
               } else {
-               request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resource_error,"OrderYouDoNotHavePermissionToTakeOrdersForThisStore", locale));
+                  request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resource_error,"OrderYouDoNotHavePermissionToTakeOrdersForThisStore", locale));
                   cart.clear();
                   session.removeAttribute("orderMode");
                   return "error";
@@ -929,7 +935,7 @@
       }
 
       if ("SALES_ORDER".equals(cart.getOrderType()) && UtilValidate.isEmpty(cart.getProductStoreId())) {
-       request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resource_error,"OrderAProductStoreMustBeSelectedForASalesOrder", locale));
+          request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resource_error,"OrderAProductStoreMustBeSelectedForASalesOrder", locale));
           cart.clear();
           session.removeAttribute("orderMode");
           return "error";

Modified: trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/showcart.bsh
===================================================================
--- trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/showcart.bsh 2005-08-10 13:58:49 UTC (rev 5498)
+++ trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/showcart.bsh 2005-08-10 16:21:02 UTC (rev 5499)
@@ -37,6 +37,10 @@
 
 context.put("dispatcher",dispatcher);
 
+// Just in case we are here from the choosecatalog form, the
+// following call will save in the session the new catalogId
+CatalogWorker.getCurrentCatalogId(request);
+
 // Get the Cart and Prepare Size
 shoppingCart = ShoppingCartEvents.getCartObject(request);
 context.put("shoppingCartSize", shoppingCart.size());

 
_______________________________________________
Svn mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/svn



 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users