Good afternoon,

First of all - thanks for taking the time to write this module - it is exactly what I'm looking for. Unfortunately, I don't have it working yet.

I was able to add a "Price Table" field to one of my products, then edit a product and add the associated price data. This went off without a hitch. I added a price table with 7 rows, and filled in price and quantity data for each one.

However, when I went to view the product display, the following warning appeared 9 times:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in commerce_line_items_quantity() (line 1335 of /home/clients/websites/mysite/sites/all/modules/commerce/modules/line_item/commerce_line_item.module).

The Price Table displayed properly and with the correct data. I then clicked the "Add to cart" button, and went to the shopping cart page and received the same warning. When I updated the quantity and updated the cart, the price did not change.

I'm using Drupal Commerce 7.x-1.0-rc3 and Commerce price table 7.x-1.x-dev (2011-Aug-03).

Am I doing something wrong? Suggestions?

Thanks,
-mike

Comments

pcambra’s picture

Status: Active » Fixed

It seems that RC3 changed definition of commerce_line_items_quantity API to get arraiys instead of a fixed product type and that broke the price table. Just commited a patch and it should be fixed in latest dev.

Thanks for reporting!

ultimike’s picture

Pedro,

Thanks for the quick fix - it works perfectly!

Thanks,
-mike

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.