Hot to obtain product localized content through HTML services?

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

Hot to obtain product localized content through HTML services?

Daniel Beaudry
I am currently exploring OFBiz to asses that we can use it as a backend to manage catalog, products and order calculations for a Web site we develop.

I am interested to use OFBiz services from our Website engine. We would localize all categories and products.

Using the HTTP service passthrough https://127.0.0.1:8443/webtools/control/runService, I am able to use service like getProduct to get product basic information. I am wondering how I can get localized product name, description and the rest.

I already created the localized product content and I am able to see it using the sample eComerce application that comes with OFBiz out of the box.

I also wonder how to process order calculation.

Thank you for reading and helping.

Daniel
Reply | Threaded
Open this post in threaded view
|

Re: Hot to obtain product localized content through HTML services?

Jacques Le Roux
Administrator
The message below have not been accepted by OFBiz user ML. It seems that someone has enforced (screwed?) the spam assassin filters :/, got this

<user@ofbiz.apache.org>: host mx1.us.apache.org[140.211.11.136] said: 552 spam
    score (5.5) exceeded threshold
    (NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,STOX_REPLY_TYPE,TO_NO_BRKTS_MSFT,URI_HEX,WEIRD_PORT
    (in reply to end of DATA command)

Not the 1st time, I got also one on dev ML, and Tom Burns reported the same, bother :/
I have really not time to waste with such bullshit since the message below is really simple and in text format (maybe now xml is not accepted in emails ), so I just roughly copy my answer there for now...


From: "Daniel Beaudry" <daniel.beaudry@sunmedia.ca>
>I am currently exploring OFBiz to asses that we can use it as a backend to
> manage catalog, products and order calculations for a Web site we develop.
>
> I am interested to use OFBiz services from our Website engine. We would
> localize all categories and products.
>
> Using the HTTP service passthrough
> https://127.0.0.1:8443/webtools/control/runService, I am able to use service
> like getProduct to get product basic information. I am wondering how I can
> get localized product name, description and the rest.
>
> I already created the localized product content and I am able to see it
> using the sample eComerce application that comes with OFBiz out of the box.

There is nothing OOTB for that, you need to create your own service, following examples in
applications/product/servicedef/services_view.xml

> I also wonder how to process order calculation.

I don't think there is an available service for that. If you look at the generated HTML page for
ecommerce/control/view/showcart
and
ordermgr/control/modifycart
you will see that they both rely on their own "modifycart" request-map which actually call this even

<event type="java" path="org.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="modifyCart"/>

If you follow this way you will see at the bottom the ShoppingCartHelper.modifyCart() method.
Not sure it will help you, maybe better to digg in applications/order/src/org/ofbiz/order/order/OrderServices.java, but for instance
resetGrandTotal() is not what you are looking for...

I think we can agree this is not the part where OFBiz shines the most, but you can maybe benefit of existing code and have not to
write all from scratch...

HTH

Jacques


> Thank you for reading and helping.
>
> Daniel
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Hot-to-obtain-product-localized-content-through-HTML-services-tp4636608.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Hot to obtain product localized content through HTML services?

Jacques Le Roux
Administrator
OK, so the last one passed, I really wonder why, since it's a strict copy of the rejected one copied in Nabbel with some rants
I guess it's because it was send from Nabble and not my email client through my ISP SMPT, feel like banished :o(

I don't copy the content of the last one, else it will not pass (already tried), just for the sake of history (for myseld mostly)

Jacques

From: "Jacques Le Roux" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, October 06, 2012 1:08 PM
Subject: Re: Hot to obtain product localized content through HTML services?