I'm using Commerce module for my e-shop.
so, it's working by creating products and assign them displays (nodes). For example
create product with title PRODUCT and sku 123456. After that, create a new node (product display) and make a reference to already created product.
So, now, i want to use Finder module to search by title or sku at the same time from same field.
Edit finder content_finder
add element with field Commerce Product: SKU
doesnt work.
add field Commerce Product: SKU to already existing element.
doesnt work.
edit View Finder node
add relationship Commerce: product
doesnt work
any advice please? how to search by SKU?
thanks.
Comments
Comment #1
danielb commentedWhat do you mean by 'doesnt work' exactly?
Set it up how you think and post the export here
see tips for that here: http://drupal.org/node/add/project-issue/finder
Also note that if your view has a relationship, you need to configure that in finder as well if it applies to the field.
Comment #2
dgastudio commentedHi!
thank your for your help.
my finder export:
ok, as i understand, add relationship in views it's only for display results.
how to configure relationship in finder?
"doesnt work" means that search doesnt return any result
Comment #3
dgastudio commentedin finder export i see:
relationship = null.
but editing this field in UI, it returns me "There is nothing to configure for this field. ". So, how to add an relationship?
Comment #4
danielb commentedThe option to configure relationships in a finder field only appears if the views display has relationships configured in it. I don't really know any other way of getting the relationships options.
Comment #5
dgastudio commentedsorry, but in my finder_node view i have relationship configured. but there are no options to set relatinship in finder.
see attached images.
Comment #6
danielb commentedBugger. Could be a bug, I'll look into it.
Comment #7
dgastudio commentedok, thanks.
Comment #8
frixos12 commentedsubscribing
Comment #9
danielb commentedfrixos12, you don't need to reply to a thread to subscribe, there is a "follow" button at the top of the page that does the trick.
Comment #10
danielb commentedI found an interesting comment here which might suggest there is need for two relationships
http://drupal.org/node/1166540#comment-4513700
Not sure finder supports relationships that complicated (and there isn't really any info around on how to support it).
Unfortunately testing with ecommerce systems is kinda hard since I'd need to actually set up a fake store and products, etc... I already have e-commerce and ubercart installed, and now they've come out with another ecommerce module? *sigh*
I don't know if I'll be able to solve the problem even if I was motivated to install commerce.
If anyone knows what finder is doing wrong, or can provide support please reply.
I can offer you a workaround solution: Use a computed field to repeat the SKU data in a node. The field api integrates with Finder pretty well.
http://drupal.org/project/computed_field
Pretty much any kind of "problem filter" in finder can be worked around using a computed field. It often improves Finder's performance over complicated table relationships too.
Comment #11
dgastudio commentedfirst of all, thank u for your help
about the comment and 2 relationship: this is only for orders, not for list of products
in my case, i have enough with only one relationship. take a look
finder_node view

so, again.
if in admin/structure/finder/list/content_finder/edit i have only one field (title), i can use finder block to search by title.
if i add field "product: sku", the search doesnt work.
i u want, u can install http://drupal.org/project/commerce_kickstart to rapidly configure commerce shop.
or i can provide you access to my website.
thank u!
Comment #12
danielb commentedThis is really quite an imposition. I have explained my position clearly in #10 and offered an alternative. I do not wish to go to such great lengths for someone that can't even be bothered to type the word "you" or press the shift key.
Comment #13
dgastudio commentedok, forget it.
Comment #14
divined commentedOh, one node containts 1-10000000 SKU's. So, "computed field" not a solution.
It's solution for "order view", not for standart product display.
So, delete module from org if it not working for simple relationship view.