Hi,

Currently testing --dev version of commerce_option and I have this error:

PHP Fatal error:  Call to undefined function commerce_option_get_sets() in sites/all
/modules/commerce_pricing_attributes/commerce_pricing_attributes.module on line 324

Comments

dxx’s picture

Issue summary: View changes
dxx’s picture

Issue summary: View changes
Anonymous’s picture

The call to this function should be replaced with a call to commerce_option_set_load_multiple(FALSE), see commerce_option.module

dxx’s picture

Yes, thank you very much for our work!

fugazi’s picture

I have the same problem with commerce_option-7.x-2.x-dev . White screen and above error message.
I would appreciate any info.

I have also published an issue here https://www.drupal.org/node/2383731, and linked

danreb’s picture

Priority: Normal » Major

This is a major issue, it kills even the node/add/products and throws the error.

Anonymous’s picture

Here's a very simple patch, I've just replaced the incorrect function call with the correct one.

I very much doubt it will make the version 2.x of commerce option compatible with commerce pricing attributes though, since the 2.x version is a pretty big rewrite. But I guess you can try.
If it doesn't work you can always switch back to the 1.x version of commerce option.

danreb’s picture

@samspinoy, you're right! the patch removes the error and restore the website to life, but the pricing attributes seems to not working, it doesn't change the price once switch attributes. Trying to switch back to old version of commerce_option.module also isn't possible as the website now looking for a missing database field.

lanceh1412’s picture

I don't know if this helps but if you had one attribute you wanted to charge extra for and one you didn't (e.g. print options Small, Large and colour options - red, green, blue) you could use the commerce_option module to handle the colour options and then have two different products for the print options each having a different price.

(That's if you wanted to carry on using version 2)

fugazi’s picture

StatusFileSize
new135.08 KB
new117.38 KB
new95.92 KB
new57.84 KB

Confirm that the patch restores the function of the page. It is prize specify able atribute, but they are not displayed in the product page.
View Screenshot

Maybe someone has an idea?

fugazi’s picture

sorry my mistake did not select a price attribute field, works as intended.

if I put the product in the cart, I get the error severe:

PHP Fatal error: Call to undefined function commerce_product_attributes_access_to_line_item () in /commerce_pricing_attributes/commerce_pricing_attributes.module on line 937, referer: / product display / product-122

mattf100’s picture

So this module doesn't work at all because of this error. I installed:

commerce_pricing_attributes-7.x-1.0-beta4

Along with required dependencies:

commerce_option-7.x-2.0-beta1
commerce_product_attributes-7.x-1.0-beta3

First, I encountered this issue (Fatal Error). So I uninstalled all three modules, then reinstalled the above, replacing commerce_option-7.x-2.0-beta1 with commerce_option-7.x-1.0-beta2.

Now, I no longer get the fatal error, but the module doesn't work! When I add a product to the cart, and select one of the options with a price, the price doesn't update. So the module doesn't work, even when using v1 of the option module.

This is very frustrating, since this module would be very useful, if only it worked. If I've missed something, and it is possible to get this module working, I would appreaciate any advice.

Thanks

mattf100’s picture

After searching through issues queue, I found a patch that (mostly) fixes this issue: https://www.drupal.org/node/2420303#comment-9720529

thaistore’s picture

this definately does not work

I dont get error anymore

commerce_pricing_attributes.module on line 324

when ading the field to content variation though

but the prices do not update when you select the attribute, they stay the same

alexgreyhead’s picture

I am also getting the undefined function error in the current stable version. Bit frustrating if the patch means the module doesn't work. :(