Discussions

Installed Commerce, then later Commerce Backoffice... something broke

I started out installing Commerce and creating two simple products and nothing more.

Then I realised I needed Commerce Backoffice to make things simpler so I installed that.

I then created a Product Display content type and a product display with a reference to one of my products.

Now, in the product display the title of the product does not show after the product label.

The two products I created are missing from the admin/commerce/products page and the product display is listed here now instead.

On admin/commerce/products I am getting the following error:

    Notice: Undefined index: value in views_handler_filter->exposed_form() (line 771 of /home/www/example.com/sites/all/modules/views/handlers/views_handler_filter.inc). Backtrace:

    views_handler_filter->exposed_form(Array, Array) views.module:1980
    views_exposed_form(Array, Array)
    call_user_func_array('views_exposed_form', Array) form.inc:798
    drupal_retrieve_form('views_exposed_form', Array) form.inc:339
    drupal_build_form('views_exposed_form', Array) views_plugin_exposed_form.inc:151
    views_plugin_exposed_form->render_exposed_form() view.inc:963
    view->build() views_plugin_display_page.inc:216
    views_plugin_display_page->execute() view.inc:1337
    view->execute_display('page_1', Array) views.module:526
    views_page('commerce_backoffice_products', 'page_1')
    call_user_func_array('views_page', Array) menu.inc:517
    menu_execute_active_handler() index.php:21

    Notice: Undefined index: product_display_term_node_tid_multiple in commerce_backoffice_handler_filter_term_node_tid->exposed_validate() (line 175 of /home/www/example.com/sites/all/modules/commerce_backoffice/includes/views/handlers/commerce_backoffice_handler_filter_term_node_tid.inc). Backtrace:

    commerce_backoffice_handler_filter_term_node_tid->exposed_validate(Array, Array) views.module:2035
    views_exposed_form_validate(Array, Array) form.inc:1464
    form_execute_handlers('validate', Array, Array) form.inc:1404
    _form_validate(Array, Array, 'views_exposed_form') form.inc:1134
    drupal_validate_form('views_exposed_form', Array, Array) form.inc:846
    drupal_process_form('views_exposed_form', Array, Array) form.inc:374
    drupal_build_form('views_exposed_form', Array) views_plugin_exposed_form.inc:151
    views_plugin_exposed_form->render_exposed_form() view.inc:963
    view->build() views_plugin_display_page.inc:216
    views_plugin_display_page->execute() view.inc:1337
    view->execute_display('page_1', Array) views.module:526
    views_page('commerce_backoffice_products', 'page_1')
    call_user_func_array('views_page', Array) menu.inc:517
    menu_execute_active_handler() index.php:21

    Notice: Undefined index: product_display_term_node_tid_multiple in commerce_backoffice_handler_filter_term_node_tid->exposed_validate() (line 176 of /home/www/example.com/sites/all/modules/commerce_backoffice/includes/views/handlers/commerce_backoffice_handler_filter_term_node_tid.inc). Backtrace:

    commerce_backoffice_handler_filter_term_node_tid->exposed_validate(Array, Array) views.module:2035
    views_exposed_form_validate(Array, Array) form.inc:1464
    form_execute_handlers('validate', Array, Array) form.inc:1404
    _form_validate(Array, Array, 'views_exposed_form') form.inc:1134
    drupal_validate_form('views_exposed_form', Array, Array) form.inc:846
    drupal_process_form('views_exposed_form', Array, Array) form.inc:374
    drupal_build_form('views_exposed_form', Array) views_plugin_exposed_form.inc:151
    views_plugin_exposed_form->render_exposed_form() view.inc:963
    view->build() views_plugin_display_page.inc:216
    views_plugin_display_page->execute() view.inc:1337
    view->execute_display('page_1', Array) views.module:526
    views_page('commerce_backoffice_products', 'page_1')
    call_user_func_array('views_page', Array) menu.inc:517
    menu_execute_active_handler() index.php:21

I am pretty confused with getting started with Commerce and just when I think I've got it down and can start making progress, I seem to have broken it.

I just want to set up two products and add a couple of products on a page with add to cart buttons.

Thanks.

Posted: Dec 7, 2012

Comments

authentictech on December 7, 2012

I am mostly perplexed by the way the two products I created before installing backoffice are now replaced by the product display I created afterwards. I thought that products and product displays were kept separate.

authentictech on December 7, 2012

I disabled the Commerce Backoffice modules which caused my products to be listed again at admin/commerce/products. I deleted them and re-enabled the Commerce Backoffice modules.

For some reason my product display content has also been deleted.

At admin/commerce/products I can click on "add product" and I get the option on a page to create a "product display". The help text here says: "Use product displays to present an Add to Cart form for products to your customers." As I understand it, product displays are not products, they are nodes used to display products. So why does the option to create a product display appear when I click a button to add a product? Why are product displays even being listed at admin/commerce/products? And where do I actually now create a product if I am using Commerce Backoffice?

This is all very confusing.