Re: Adding Attributes to a Product

2020-08-12 Thread Randy Evans
I was looking for a place to enable it through the web interface.

Thank you all for your help.




On 8/12/20, Jason RJ  wrote:
> Randy,
>
> It might require some light coding and config.
>
>


Re: Adding Attributes to a Product

2020-08-12 Thread Jason RJ

Randy,

It might require some light coding and config.

You need to uncomment this section in ecommerce\widget\CatalogScreens.xml:

  

You might need to create markup for your filters in 
ecommerce\template\catalog\LayeredNavBar.ftl here for example the 
default color and price range filters:


  <#if showColors>
    
${colorFeatureType.description}
  
    <#list colors as color>
  
    href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}clearSearch=N<#if 
currentSearchCategory??>searchCategoryId=${currentSearchCategory.productCategoryId}">

 ${color.description} (${color.featureCount})
   
  
    
  
    
  
  <#if showPriceRange>
    
${uiLabelMap.EcommercePriceRange}
  
    <#list priceRangeList as priceRange>
  
    href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}LIST_PRICE_HIGH=${priceRange.high}clearSearch=N<#if 
currentSearchCategory??>searchCategoryId=${currentSearchCategory.productCategoryId}">
 <@ofbizCurrency amount=priceRange.low /> - 
<@ofbizCurrency amount=priceRange.high /> (${priceRange.count})

   
 
   
 
   
 

The variables showColors, colors, showPriceRange, priceRangeList are 
prepared in ecommerce\groovyScripts\catalog\LayeredNavigation.groovy so 
you can create your own here.


Like I said, some light coding required.

Jason


On 11/08/2020 21:20, Randy Evans wrote:

That sounds very interesting.

Can you tell me how to enable layered navigation?  There doesn't seem
to be much information available about that.

Thanks.




On 8/11/20, Rishi Solanki  wrote:

Numerice range won't work as you suspect, and for search not need to do
that. You can simply tag a feature with "> 1000" and "< 1000" as string.
You can use category or feature or even atrribute. And once search is
enable of that feature then you simply need show the tagged products. Which
can be done by all routes, the catalog manager or product creation code
needs to make sure all products tagged properly.

In this way no custom code would be required. HTH!

Best Regards,
--
Rishi Solanki
*CTO, Mindpath Technology*
Intelligent Solutions
cell: +91-98932-87847
LinkedIn 


On Tue, Aug 11, 2020 at 6:33 PM Jason RJ  wrote:


Hi Randy

We have done something similar but using Product Features to drive the
dropdown and Product Variants for each type, this supports search as
expected too since features are added to search criteria as product
keywords. Turning on layered navigation and creating custom filters in
LayeredNavBar.ftl gives you a filter list, it might be possible to build
a range filter that way.

Jason


Re: Adding Attributes to a Product

2020-08-11 Thread Randy Evans
That sounds very interesting.

Can you tell me how to enable layered navigation?  There doesn't seem
to be much information available about that.

Thanks.




On 8/11/20, Rishi Solanki  wrote:
> Numerice range won't work as you suspect, and for search not need to do
> that. You can simply tag a feature with "> 1000" and "< 1000" as string.
> You can use category or feature or even atrribute. And once search is
> enable of that feature then you simply need show the tagged products. Which
> can be done by all routes, the catalog manager or product creation code
> needs to make sure all products tagged properly.
>
> In this way no custom code would be required. HTH!
>
> Best Regards,
> --
> Rishi Solanki
> *CTO, Mindpath Technology*
> Intelligent Solutions
> cell: +91-98932-87847
> LinkedIn 
>
>
> On Tue, Aug 11, 2020 at 6:33 PM Jason RJ  wrote:
>
>> Hi Randy
>>
>> We have done something similar but using Product Features to drive the
>> dropdown and Product Variants for each type, this supports search as
>> expected too since features are added to search criteria as product
>> keywords. Turning on layered navigation and creating custom filters in
>> LayeredNavBar.ftl gives you a filter list, it might be possible to build
>> a range filter that way.
>>
>> Jason


Re: Adding Attributes to a Product

2020-08-11 Thread Rishi Solanki
Numerice range won't work as you suspect, and for search not need to do
that. You can simply tag a feature with "> 1000" and "< 1000" as string.
You can use category or feature or even atrribute. And once search is
enable of that feature then you simply need show the tagged products. Which
can be done by all routes, the catalog manager or product creation code
needs to make sure all products tagged properly.

In this way no custom code would be required. HTH!

Best Regards,
--
Rishi Solanki
*CTO, Mindpath Technology*
Intelligent Solutions
cell: +91-98932-87847
LinkedIn 


On Tue, Aug 11, 2020 at 6:33 PM Jason RJ  wrote:

> Hi Randy
>
> We have done something similar but using Product Features to drive the
> dropdown and Product Variants for each type, this supports search as
> expected too since features are added to search criteria as product
> keywords. Turning on layered navigation and creating custom filters in
> LayeredNavBar.ftl gives you a filter list, it might be possible to build
> a range filter that way.
>
> Jason
>
>
> On 10/08/2020 15:15, Jacques Le Roux wrote:
> > Hi Randy,
> >
> > I think this is what you are looking for
> > https://markmail.org/message/c5kxv6snztxwqwxk
> >
> > HTH
> >
> > Jacques
> >
> > Le 07/08/2020 à 22:29, Randy Evans a écrit :
> >> I am evaluating OFBiz and have set up a test instance.
> >>
> >> I am trying to enter a product that I need to add some data, one of
> >> which is numeric and the other should be selectable from a dropdown
> >> list.
> >>
> >> An example of this would be resistors which have a footprint and would
> >> be selectable from a dropdown list like "throughole","0603", "0402"
> >>
> >> The other data would be keyed in as a numeric value (the resistance).
> >>
> >> I would need to be able to search for a specific product like
> >> "throughole" and a range for the resistance like ">1000 and <1"
> >> for example.  In "Find Product" there is an advanced search but I'm
> >> not sure you can search for Attributes.
> >>
> >> It looks like CATALOG MANAGER/Products/Attributes may be what I am
> >> looking for but it is not clear if I can specify a numeric value only
> >> and also if I can set up a dropdown list.
> >>
> >>
> >>
> >> Is this type of entry and search possible with OFBiz (without custom
> >> programming)?
> >>
> >> Thanks for any information.
> >
>


Re: Adding Attributes to a Product

2020-08-11 Thread Jason RJ

Hi Randy

We have done something similar but using Product Features to drive the 
dropdown and Product Variants for each type, this supports search as 
expected too since features are added to search criteria as product 
keywords. Turning on layered navigation and creating custom filters in 
LayeredNavBar.ftl gives you a filter list, it might be possible to build 
a range filter that way.


Jason


On 10/08/2020 15:15, Jacques Le Roux wrote:

Hi Randy,

I think this is what you are looking for 
https://markmail.org/message/c5kxv6snztxwqwxk


HTH

Jacques

Le 07/08/2020 à 22:29, Randy Evans a écrit :

I am evaluating OFBiz and have set up a test instance.

I am trying to enter a product that I need to add some data, one of
which is numeric and the other should be selectable from a dropdown
list.

An example of this would be resistors which have a footprint and would
be selectable from a dropdown list like "throughole","0603", "0402"

The other data would be keyed in as a numeric value (the resistance).

I would need to be able to search for a specific product like
"throughole" and a range for the resistance like ">1000 and <1"
for example.  In "Find Product" there is an advanced search but I'm
not sure you can search for Attributes.

It looks like CATALOG MANAGER/Products/Attributes may be what I am
looking for but it is not clear if I can specify a numeric value only
and also if I can set up a dropdown list.



Is this type of entry and search possible with OFBiz (without custom
programming)?

Thanks for any information.




Re: Adding Attributes to a Product

2020-08-10 Thread Randy Evans
Thank you Jacques for that reference, I will research further but it
looks like what I need is not something built in OFBiz that can be
used without programming and for sure being able to search for a
numeric range is going to be a problem.





On 8/10/20, Jacques Le Roux  wrote:
> Hi Randy,
>
> I think this is what you are looking for
> https://markmail.org/message/c5kxv6snztxwqwxk
>
> HTH
>
> Jacques


Re: Adding Attributes to a Product

2020-08-10 Thread Jacques Le Roux

Hi Randy,

I think this is what you are looking for 
https://markmail.org/message/c5kxv6snztxwqwxk

HTH

Jacques

Le 07/08/2020 à 22:29, Randy Evans a écrit :

I am evaluating OFBiz and have set up a test instance.

I am trying to enter a product that I need to add some data, one of
which is numeric and the other should be selectable from a dropdown
list.

An example of this would be resistors which have a footprint and would
be selectable from a dropdown list like "throughole","0603", "0402"

The other data would be keyed in as a numeric value (the resistance).

I would need to be able to search for a specific product like
"throughole" and a range for the resistance like ">1000 and <1"
for example.  In "Find Product" there is an advanced search but I'm
not sure you can search for Attributes.

It looks like CATALOG MANAGER/Products/Attributes may be what I am
looking for but it is not clear if I can specify a numeric value only
and also if I can set up a dropdown list.



Is this type of entry and search possible with OFBiz (without custom
programming)?

Thanks for any information.




Adding Attributes to a Product

2020-08-07 Thread Randy Evans
I am evaluating OFBiz and have set up a test instance.

I am trying to enter a product that I need to add some data, one of
which is numeric and the other should be selectable from a dropdown
list.

An example of this would be resistors which have a footprint and would
be selectable from a dropdown list like "throughole","0603", "0402"

The other data would be keyed in as a numeric value (the resistance).

I would need to be able to search for a specific product like
"throughole" and a range for the resistance like ">1000 and <1"
for example.  In "Find Product" there is an advanced search but I'm
not sure you can search for Attributes.

It looks like CATALOG MANAGER/Products/Attributes may be what I am
looking for but it is not clear if I can specify a numeric value only
and also if I can set up a dropdown list.



Is this type of entry and search possible with OFBiz (without custom
programming)?

Thanks for any information.