Discussions

Product Reference Not working

I have been adding products to my store this morning everything has been going fine, but now all of a sudden the product reference field in my product display doesn't work. After I add a new product which shows up under my products, then I go to my product display and type in either the product or the sku but the reference field doesn't recognize the product. When I go into the product page to delete the product and enter it again I get this error message? Can anyone help me fix this?

Notice: Undefined index: type in theme() (line 905 of /home/folder/public_html/includes/theme.inc).
Notice: Undefined index: template in theme() (line 933 of /home/folder/public_html/includes/theme.inc).
Warning: include(/home/folder/public_html/.tpl.php) [function.include]: failed to open stream: No such file or directory in theme_render_template() (line 1247 of /home/folder/public_html/includes/theme.inc).
Warning: include() [function.include]: Failed opening '/home/folder/public_html/.tpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in theme_render_template() (line 1247 of /home/folder/public_html/includes/theme.inc).

Posted: Oct 16, 2011

Comments

scott.carlton on October 16, 2011

This is how everything is set up. I have my product types:
Olive Oils
Cakes
Cookies
Rugulach
Biscotti
Specialty Items
Gifts

Specialty Items and Gifts is causing the issue. I can add a product to the other types and it works fine. Add it to Specialty Items or Gifts and it doesn't reference the product, even though the product is showing in the products and in the database. Still trying to solve this.

scott.carlton on October 16, 2011

This site is also set up as a subdomain of website.com as store.website.com and in sites/store.website.com folder

scott.carlton on October 17, 2011

So I have tried a lot of things. Change the Product Reference view to Select list and product is listed in the reference field, but selecting it and trying to save it produces this error.

Product Reference: you have specified an invalid product for this reference field.

Yet the product still shows up in the products and in the list of product references. I have install Commerce dev now too.

scott.carlton on October 19, 2011

Go into your product display and manage fields. Click on edit. Make sure the "Product types that can be referenced" is selected for that product type. That should fix it if it's not select. If that doesn't work change your product reference to "Select List" instead of auto completion to verify that the product is being referenced in the list. But the first suggestion should work.
Let me know if that doesn't fix it.