I'm excited about 7.x-2.x-dev unfortunately it does not work with https://www.drupal.org/project/commerce_pricing_attributes.

Once activated, the modules and settings of the field, you get a white screen and error message 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

After verification of issus in commerce Pricing Attributes I came to this issus. https://www.drupal.org/node/2367973

But with version 7.x-2.x-dev is already the predicted functions to FALSE, and still you get the error.
It would be great if this a problem is solved. 7.x-2.x-dev is a perfect way for me.
I had now returned to 7.x-1.0-beta2 because everything works. But 2.x-dev has all new functions that make me anything more easier.

Thank you for the great module.

CommentFileSizeAuthor
#9 02-12-_2014_12-45-54.mp4690.13 KBfugazi

Comments

fugazi’s picture

Issue summary: View changes
Anonymous’s picture

It is commerce pricing attributes that needs to have the call to the new function updated. As long as that doesn't happen the two will not be compatible.

But let's start from the beginning? Why are you using commerce pricing attributes? What are you trying to achieve with your setup?

fugazi’s picture

Hello samspinoy,

First many thanks for your reply. I wanted to create additional fields with the prices of the sum are offset.

example:

size
1
2
3 + 19,99 €
4
5 + 29,99 €

After selecting the amount will be allocated from the standard price.

Anonymous’s picture

Hello,

Please tell me what you mean by "with the prices of the sum are offset".

If I understand you correctly, users should be able to select a Commerce Option that contains an add-on to the price? So they select an option, press add to cart and the price should be augmented/subtracted by/with this add-on amount?

fugazi’s picture

exactly, The award shall be reckoned, sorry for my bad english. And commerce pricing attributes the price has just been created plus or minus on the product page.

Anonymous’s picture

If you do not need these changes to happen "on click" you could probably just use Commerce Option and Rules.

If you want some sort of Ajax magic, where the price is adjusted immediately after a user select/deselects an option (and this before the Add to Cart button is pressed), that's gonna be a different story. You're probably going to need something custom then.

fugazi’s picture

I tested version 1 with commerce pricing attributes and it worked as intended. Ajax updates the price and it looks as intended from. Then I tried to install version 2 and Fatal error came.

I really do not do anything custom, I use what is possible with the modules.

Since it works in version 1, I thought it would work well in version 2.

I'm building with commerce kickstart, and we're honest, purchased for the customer which there is nothing better when he sees the amended award immediately. Or have I got that wrong.

It is to be so customer friendly. I think it's bad when the buy buyer only sees the price in shopping cart.

So I am not mistaken, the version 2 not with commerce pricing attributes is compatible. crap :(

fugazi’s picture

Then that's also important to mention that commerce pricing attributes is not compatible. It is important for people who want the same thing as me. It really saves a lot of time to look for errors.

Would not optimize for a version 2 makes sense?

fugazi’s picture

StatusFileSize
new690.13 KB

Screenshot

Anonymous’s picture

It is to be so customer friendly. I think it's bad when the buy buyer only sees the price in shopping cart.

I agree 100%.

And I can see what you're getting at, and indeed, it does seem the 2.x version of Commerce Option is not compatible with the pricing attributes module.

I'll have a look and see if I can find a generic solution for this problem.

fugazi’s picture

thank you, I would be very happy

fugazi’s picture

Have applied the patch from here https://www.drupal.org/node/2367973#comment-9395181, unfortunately, the price will not attribute applied.

See Screenshot https://www.drupal.org/node/2367973#comment-9409537

Perhaps already have 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

dublicate of https://www.drupal.org/node/2367973#comment-9409567

Channel Islander’s picture

This is pretty frustrating. I, too, was using Commerce Option only because it is a dependency of Commerce Attribute Pricing, which is the module I really need.

I first loaded 1.0-beta2 since the project page gave a warning about the dev version not playing nicely. Even though this was a fresh install I wanted to be conservative. So I went with 1.0-beta2, and ran into the problem with it not displaying the selected Commerce Pricing Attributes in the line item, shopping cart, order view, etc. The solution was given to update this module to the dev version.

So I uninstalled 1.0-beta2, which is a pretty big undertaking because of having created data in field types you are trying to remove, but I got 'er done. Installed the 2.x-dev version instead, everything built okay but I ran into this problem with "Call to undefined function commerce_option_get_sets"

So I can choose version 1 or version 2, but neither one actually works properly with Commerce Pricing Attributes.

FranCarstens’s picture

Channel Islander, not sure if this is what you're looking for: https://www.drupal.org/files/issues/commerce_pricing_attributes-fix_call...

Channel Islander’s picture

Thanks FranCarstens, but that patch only gets you along to the next failure.

As the maintainer says on https://www.drupal.org/node/2367973#comment-9395181,

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.

.

Note that "You can always switch back" is not really a full description of how much work it is to roll back ... you will need to manually delete fields from the database as well as any products using option sets from version 2.

Would be so nice if these two modules could be made to work together nicely.

FranCarstens’s picture

I agree Channel Islander. We had to do the same; fall back to 1.x, that is.

Marvin Daugherty’s picture

2.x had such possibilities. I wish I had the time to help make it usable.

thaistore’s picture

any news? I have exact the same problem, applied tha short patch not getting ajax error or white screen but the prices do not get updated anymore...

thaistore’s picture

how to even uninstall pricing module? It has a lot of dependencies, can I just overwrite files with module version 1?