Closed (fixed)
Project:
Commerce Price Table
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 20:07 UTC
Updated:
15 Nov 2011 at 11:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
pcambraHi,
How do you reproduce this? what's exactly the "When I come back" trigger that makes the prices break? I'm not sure how to reproduce this.
Comment #2
scottcarlton commentedNot sure how to reproduce this. After I check out with the correct price at 28.00 and the order is complete the pricing table price gets move over two decimal points to 2,800.00 as show in the images below. I have tried both the dev version and the 1.0 version. Also check my reports but nothing was show that the price was changed, but still happens. Will continue to test.
Comment #3
scottcarlton commentedI disable the "Override price with price table" rule and checked out with not issue to the price upon return to the products page. If "Override price with price table" is enabled the price after checkout again gets set two decimals to the right again. So it seems that it has something to do with the Price Table module. Something assumes raw prices are in major units instead of minor.
Comment #4
scottcarlton commentedComment #5
pcambraI'll answer the same as in #1274830: Price changes on (some) checkout, I have made all kind of tests here and I'm still not able to reproduce this behavior, so there's something missing and I need a lot more information to check what can be wrong.
Is this happening for every product with price table?
Is there something "special" about the product/product types? Can you try with a simple product type, no attributes, just price table in a clean install?
This happens while the product is in a cart or checkout process? what's the exact moment when the price is spoiled? is it permanent?
Note that if I can't reproduce it, I won't be able to solve it.
Comment #6
scottcarlton commentedI will run some test this weekend on basic product, install clean version and some other suggestions I got. Will update you. Ya it's wired, but it happens with all products that have pricing tables. It doesn't happen until after checkout, Once the order is complete. You have to go back into your pricing tables to change the price back for each table, if not, the price will continue to get larger each time that product goes through checkout. So a product that originally was 28.00 will go to 2,800.00 dollars after checkout and then to 280,000.00 then next checkout if the price isn't corrected manually in the tables. Hopefully we will get this solved.
Comment #7
scottcarlton commentedOk, I started over. Fresh Drupal install, fresh commerce install, fresh modules the whole works and it has seemed to fix the issue. Just have to pull all my info back into it, but worked! Thanks for the help!
Comment #8
scottcarlton commentedNope I was wrong....still doing it. Well I'll just have to disable this module for now.
Comment #9
scottcarlton commentedComment #10
scottcarlton commentedBelow is a list of the modules that are installed:
Chaos tools 7.x-1.0-rc1
Commerce 7.x-1.0
Authorize.Net 7.x-1.x-dev
Commerce price table 7.x-1.0
Commerce Stock 7.x-1.0-rc1
Physical Product 7.x-1.x-dev
Shipping 7.x-2.x-dev
UPS 7.x-1.x-dev
Address Field 7.x-1.0-beta2
Physical Fields 7.x-1.x-dev
AES 7.x-1.5
Entity 7.x-1.0-beta11
Rules 7.x-2.0
Views 7.x-3.0-rc1
Then I also supplied a picture of how my product type fields are set up below. Hopefully this will help. This still occurred on a clean install of drupal and all modules.
Comment #11
pcambraI'm confused then, did this happen with a clean install and NO other module installed but the "required ones"?
So, if you install this config, you can consistently reproduce the problem, is that right?
Chaos tools 7.x-1.0-rc1
Commerce 7.x-1.0
Commerce price table 7.x-1.0
Address Field 7.x-1.0-beta2
Entity 7.x-1.0-beta11
Rules 7.x-2.0
Views 7.x-3.0-rc1
Have you tried if this happens using -dev version of commerce? You're using versions of entity and rules way ahead of the recommended ones for commerce 1.0.
Comment #12
scottcarlton commentedpcambra thanks for responding so quickly. Sorry to be such a PITA. I'll give this set-up a try on a different dev site with a clean install.
This does happen even with the -dev version of Commerce.
Comment #13
scottcarlton commentedAll right we are making headway here. Everything went great and found the conflicting module. Commerce Stock once add to the module changes the table pricing for some reason. Going to head over there and see if we can figure this out.
Comment #14
pcambraOh, finally a clue! thanks for the tracking of this, I'll give it a try combined with commerce stock module.
Comment #15
guy_schneerson commentedsubscribing
Comment #16
pcambra#15 please use follow button instead of suscribing: http://drupal.org/node/1306444
Comment #17
pcambraIssue #1326102: Commerce Stock & Commerce Price Table Conflict crossposted in Commece Stock module
Comment #18
pcambraCrossposting in both projects so everyone knows what was happening here.
I've just committed a fix (http://drupalcode.org/project/commerce_price_table.git/commit/361233a) for this in commerce price table project.
It seems that at some point Commerce stopped converting the amounts from integet to decimal for prices in field_presave function and started doing it at widget validation level, this caused that all prices for price table got converted twice on product save in rules (that is the commerce stock approach for decrementing stock).
Thanks scottcarlon, guy_schneerson & 1kenthomas for reporting this and helping me to reproduce it and get the fix in the right direction.