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 <10000" 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. |
Administrator
|
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 <10000" > 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. |
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 <[hidden email]> wrote: > Hi Randy, > > I think this is what you are looking for > https://markmail.org/message/c5kxv6snztxwqwxk > > HTH > > Jacques |
In reply to this post by Jacques Le Roux
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 <10000" >> 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. > |
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 <https://www.linkedin.com/in/rishi-solanki-62271b7/> On Tue, Aug 11, 2020 at 6:33 PM Jason RJ <[hidden email]> 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 <10000" > >> 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. > > > |
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 <[hidden email]> 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 <https://www.linkedin.com/in/rishi-solanki-62271b7/> > > > On Tue, Aug 11, 2020 at 6:33 PM Jason RJ <[hidden email]> 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 |
Randy,
It might require some light coding and config. You need to uncomment this section in ecommerce\widget\CatalogScreens.xml: <!-- Open this commented section for the demo of Layered Navigation, navigate through Gizmo and Widgets categories to see it in action. <script location="component://ecommerce/groovyScripts/catalog/LayeredNavigation.groovy"/> <set field="detailScreen" value="LayeredCategoryDetail"/> --> 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> <div id="searchFilter"> <strong>${colorFeatureType.description}</strong> <ul> <#list colors as color> <li> <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?pft_${color.productFeatureTypeId}=${color.productFeatureId}&clearSearch=N<#if currentSearchCategory??>&searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"> ${color.description} (${color.featureCount}) </a> </li> </#list> </ul> </div> </#if> <#if showPriceRange> <div id="searchFilter"> <strong>${uiLabelMap.EcommercePriceRange}</strong> <ul> <#list priceRangeList as priceRange> <li> <a href="<@ofbizUrl>category/~category_id=${productCategoryId}?LIST_PRICE_LOW=${priceRange.low}&LIST_PRICE_HIGH=${priceRange.high}&clearSearch=N<#if currentSearchCategory??>&searchCategoryId=${currentSearchCategory.productCategoryId}</#if></@ofbizUrl>"> <@ofbizCurrency amount=priceRange.low /> - <@ofbizCurrency amount=priceRange.high /> (${priceRange.count}) </a> <li> </#list> </ul> </div> </#if> 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 <[hidden email]> 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 <https://www.linkedin.com/in/rishi-solanki-62271b7/> >> >> >> On Tue, Aug 11, 2020 at 6:33 PM Jason RJ <[hidden email]> 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 |
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 <[hidden email]> wrote: > Randy, > > It might require some light coding and config. > > |
Free forum by Nabble | Edit this page |