product attributes

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

product attributes

Heidi Dehaes - Olagos
Hello,

Is there anywhere in Ofbiz 9.04 a java method or other function to get the
attributes out of a product to view them on the ecommerce page?

Regards,
Heidi

--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos
2570 Duffel
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Jacques Le Roux
Administrator
I looked in ProductWorker.java did not find anything clear
It could be added there...

Jacques

From: "Info Olagos" <[hidden email]>

> Hello,
>
> Is there anywhere in Ofbiz 9.04 a java method or other function to get the
> attributes out of a product to view them on the ecommerce page?
>
> Regards,
> Heidi
>
> --
> Olagos bvba
> http://www.olagos.eu <http://www.olagos.eu/>
> http://www.olagos.com
> http://www.olagos.be
> http://www.olagos.nl
> Olagos team
> Heesterbos
> 2570 Duffel
> Belgium
>
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Heidi Dehaes - Olagos
ok it is what i saw also.

So i will try to add some code.

regards,
Heidi

2012/4/24 Jacques Le Roux <[hidden email]>

> I looked in ProductWorker.java did not find anything clear
> It could be added there...
>
> Jacques
>
> From: "Info Olagos" <[hidden email]>
>
>> Hello,
>>
>> Is there anywhere in Ofbiz 9.04 a java method or other function to get the
>> attributes out of a product to view them on the ecommerce page?
>>
>> Regards,
>> Heidi
>>
>> --
>> Olagos bvba
>> http://www.olagos.eu <http://www.olagos.eu/>
>>
>> http://www.olagos.com
>> http://www.olagos.be
>> http://www.olagos.nl
>> Olagos team
>> Heesterbos
>> 2570 Duffel
>> Belgium
>>
>>


--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos 5
2570 Duffel
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Heidi Dehaes - Olagos
Then in fact these attributes should be added in the search content from
the search routine also.

Heidi

2012/4/24 Info Olagos <[hidden email]>

> ok it is what i saw also.
>
> So i will try to add some code.
>
> regards,
> Heidi
>
>
> 2012/4/24 Jacques Le Roux <[hidden email]>
>
>> I looked in ProductWorker.java did not find anything clear
>> It could be added there...
>>
>> Jacques
>>
>> From: "Info Olagos" <[hidden email]>
>>
>>> Hello,
>>>
>>> Is there anywhere in Ofbiz 9.04 a java method or other function to get
>>> the
>>> attributes out of a product to view them on the ecommerce page?
>>>
>>> Regards,
>>> Heidi
>>>
>>> --
>>> Olagos bvba
>>> http://www.olagos.eu <http://www.olagos.eu/>
>>>
>>> http://www.olagos.com
>>> http://www.olagos.be
>>> http://www.olagos.nl
>>> Olagos team
>>> Heesterbos
>>> 2570 Duffel
>>> Belgium
>>>
>>>
>
>
> --
> Olagos bvba
> http://www.olagos.eu <http://www.olagos.eu/>
> http://www.olagos.com
> http://www.olagos.be
> http://www.olagos.nl
> Olagos team
> Heesterbos 5
> 2570 Duffel
> Belgium
>
>
>
>


--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos 5
2570 Duffel
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Rishi Solanki
Heidi,
Please have a look at the prodsearch.properties, the products attrName and
attrValue of ProductAttribute exists there.
You just need to enable tagging for them while genration the product
keywords. Here I mean to say search routine already supported for Product
Attribute.


--
Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com

On Tue, Apr 24, 2012 at 7:15 PM, Info Olagos <[hidden email]> wrote:

> Then in fact these attributes should be added in the search content from
> the search routine also.
>
> Heidi
>
> 2012/4/24 Info Olagos <[hidden email]>
>
> > ok it is what i saw also.
> >
> > So i will try to add some code.
> >
> > regards,
> > Heidi
> >
> >
> > 2012/4/24 Jacques Le Roux <[hidden email]>
> >
> >> I looked in ProductWorker.java did not find anything clear
> >> It could be added there...
> >>
> >> Jacques
> >>
> >> From: "Info Olagos" <[hidden email]>
> >>
> >>> Hello,
> >>>
> >>> Is there anywhere in Ofbiz 9.04 a java method or other function to get
> >>> the
> >>> attributes out of a product to view them on the ecommerce page?
> >>>
> >>> Regards,
> >>> Heidi
> >>>
> >>> --
> >>> Olagos bvba
> >>> http://www.olagos.eu <http://www.olagos.eu/>
> >>>
> >>> http://www.olagos.com
> >>> http://www.olagos.be
> >>> http://www.olagos.nl
> >>> Olagos team
> >>> Heesterbos
> >>> 2570 Duffel
> >>> Belgium
> >>>
> >>>
> >
> >
> > --
> > Olagos bvba
> > http://www.olagos.eu <http://www.olagos.eu/>
> > http://www.olagos.com
> > http://www.olagos.be
> > http://www.olagos.nl
> > Olagos team
> > Heesterbos 5
> > 2570 Duffel
> > Belgium
> >
> >
> >
> >
>
>
> --
> Olagos bvba
> http://www.olagos.eu <http://www.olagos.eu/>
> http://www.olagos.com
> http://www.olagos.be
> http://www.olagos.nl
> Olagos team
> Heesterbos 5
> 2570 Duffel
> Belgium
>
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Heidi Dehaes - Olagos
oh ok . Nice. I have to check the whole search routine but didn't have time
until now.

Thanks for the information.

ERic

2012/5/1 Rishi Solanki <[hidden email]>

> Heidi,
> Please have a look at the prodsearch.properties, the products attrName and
> attrValue of ProductAttribute exists there.
> You just need to enable tagging for them while genration the product
> keywords. Here I mean to say search routine already supported for Product
> Attribute.
>
>
> --
> Rishi Solanki
> Manager, Enterprise Software Development
> HotWax Media Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxmedia.com
>
> On Tue, Apr 24, 2012 at 7:15 PM, Info Olagos <[hidden email]>
> wrote:
>
> > Then in fact these attributes should be added in the search content from
> > the search routine also.
> >
> > Heidi
> >
> > 2012/4/24 Info Olagos <[hidden email]>
> >
> > > ok it is what i saw also.
> > >
> > > So i will try to add some code.
> > >
> > > regards,
> > > Heidi
> > >
> > >
> > > 2012/4/24 Jacques Le Roux <[hidden email]>
> > >
> > >> I looked in ProductWorker.java did not find anything clear
> > >> It could be added there...
> > >>
> > >> Jacques
> > >>
> > >> From: "Info Olagos" <[hidden email]>
> > >>
> > >>> Hello,
> > >>>
> > >>> Is there anywhere in Ofbiz 9.04 a java method or other function to
> get
> > >>> the
> > >>> attributes out of a product to view them on the ecommerce page?
> > >>>
> > >>> Regards,
> > >>> Heidi
> > >>>
> > >>> --
> > >>> Olagos bvba
> > >>> http://www.olagos.eu <http://www.olagos.eu/>
> > >>>
> > >>> http://www.olagos.com
> > >>> http://www.olagos.be
> > >>> http://www.olagos.nl
> > >>> Olagos team
> > >>> Heesterbos
> > >>> 2570 Duffel
> > >>> Belgium
> > >>>
> > >>>
> > >
> > >
> > > --
> > > Olagos bvba
> > > http://www.olagos.eu <http://www.olagos.eu/>
> > > http://www.olagos.com
> > > http://www.olagos.be
> > > http://www.olagos.nl
> > > Olagos team
> > > Heesterbos 5
> > > 2570 Duffel
> > > Belgium
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Olagos bvba
> > http://www.olagos.eu <http://www.olagos.eu/>
> > http://www.olagos.com
> > http://www.olagos.be
> > http://www.olagos.nl
> > Olagos team
> > Heesterbos 5
> > 2570 Duffel
> > Belgium
> >
>



--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos 5
2570 Duffel
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Robert Gan
have you allready a solution to display the attributes in the ecommerce site?

if not, try this:

Add in productDetail.groovy (under if(product) tag):

        // get the product attribute(s)
        attribute = product.getRelated("ProductAttribute");
        context.put("ProductAttribute", attribute);


now you can use it in ftl file (productdetail.ftl):

<#list ProductAttribute as ProductAttributes>        
    <#if ProductAttributes?has_content>
        ${ProductAttributes.attrName}: ${ProductAttributes.attrValue}
    </#if>
</#list>


kindly

Robert

Info Olagos wrote
Is there anywhere in Ofbiz 9.04 a java method or other function to get the
attributes out of a product to view them on the ecommerce page?
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Heidi Dehaes - Olagos
Nice !!

Thank you very much.

I only need the time now to implement it although it will take only a
few minutes.

Regards,
Heidi

2012/5/1, Robert G. <[hidden email]>:

> have you allready a solution to display the attributes in the ecommerce
> site?
>
> if not, try this:
>
> Add in productDetail.groovy (under /if(product)/ tag):
>
> /// get the product attribute(s)
> attribute = product.getRelated("ProductAttribute");
> context.put("ProductAttribute", attribute);/
>
> now you can use it in ftl file (productdetail.ftl):
>
> /<#list ProductAttribute as ProductAttributes>
>     <#if ProductAttributes?has_content>
> ${ProductAttributes.attrName}: ${ProductAttributes.attrValue}
>     </#if>
> </#list>/
>
> kindly
>
> Robert
>
>
> Info Olagos wrote
>>
>>
>> Is there anywhere in Ofbiz 9.04 a java method or other function to get
>> the
>> attributes out of a product to view them on the ecommerce page?
>>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/product-attributes-tp4583112p4601458.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos 5
2570 Duffel
Belgium
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Robert Gan
I can sell you 5 minutes (10$ / minute) :)
Reply | Threaded
Open this post in threaded view
|

Re: product attributes

Heidi Dehaes - Olagos
I will do it then myself, i think..... :-)
Heidi

2012/5/1 Robert G. <[hidden email]>

> I can sell you 5 minutes (10$ / minute) :)
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/product-attributes-tp4583112p4601788.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



--
Olagos bvba
http://www.olagos.eu <http://www.olagos.eu/>
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl
Olagos team
Heesterbos 5
2570 Duffel
Belgium