Closed (won't fix)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2012 at 14:37 UTC
Updated:
18 Sep 2012 at 14:24 UTC
Jump to comment: Most recent file
Comments
Comment #1
rogical commentedI thin we can name the query string for inline-entity form with a prefix 'ief_', then pass them in to forms.
Comment #2
rogical commentedI made a patch, please review.
Comment #3
rogical commentedComment #4
generalconsensus commentedFor my use case I have three fields that can be tested. I choose each time just to test one:
Region (United States, Canada, European Union) query: http://www.example.com/testproduct?field_region=15
Gift Product (No, Yes) http://www.example.com/testproduct?field_gift=1
In both cases it failed to populate the fields with the queries am I missing something?
Comment #5
rogical commentedDo you apply the patch successfully? This patch just pass all query strings to ief, I've already used in my site with entity reference prepopulate.
Comment #6
generalconsensus commentedI've been unable to bring up the prepopulate selection under the product reference field in my product display, which I am assuming is what you did originally.
Here are the steps I have done so far:
1. Installed Base Drupal Commerce (No Demo Store)
2. Patch Inline Entity Form with your patch
3. Install Entity Reference Prepopulate
4. Create a new Product Display to test the new Entity Reference Prepopulate functionality with
5. Add a Product Reference field with the Inline Entity Form
6. Problem. There is none of the 3 pre-populate selection fields that pop up in the entity reference field under the product reference field.
a. Is the problem due to the fact that the Entity Reference Pre-populate functionality is not patched to work with the Product Reference module?
Thanks!
Comment #7
rogical commentedthis maybe the problem, I currently use ief just in nodes, not yet in commerce, do Need some work for commerce.
Comment #8
bojanz commentedThis is something you can do from a contrib module using hook_inline_entity_form_entity_form_alter().
I don't want this in the module itself. Sorry!
Comment #9
rogical commentedA sandbox http://drupal.org/sandbox/rogical/1787828 IEF inherit parameters was created for this.
It should support both node and commerce, needs more testing.