Wanted to close the loop on this one. I was indeed in the weeds with the jQuery comment.
This was caused by an error in the way that MacPorts built Python 2.7.2, which caused Decimal division to return incorrect values. In my case, the bug caused the price calculation to always evaluate to 0, resulting in the behavior I was asking about. Satchmo specifics: in the file * satchmo/apps/product/modules/custom/models.py*, the function *get_qty_price() *returns the value of the following expression: '*price * self.downpayment / 100*'. Due to the bug, the expression always has a value of 0. You can tell if your Python is built with this problem by running the following test: *python -m doctest /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py * If the doctest returns errors, your configuration may have the bug. The current MacPorts has apparently been patched and current versions build Python27 correctly. I didn't want to simply upgrade everything, so I made the minimum possible fix by adding the following line *configure.compiler gcc-4.2* to the Python27 portfile (which is located at * /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python27 *). Then run the following commands: *sudo port clean python27* *sudo port upgrade --force python27* Here is the link is where I first learned about the problem: http://stackoverflow.com/questions/7590137/dividing-decimals-yields-invalid-results-in-python-2-5-to-2-7 Although the solution outlined there didn't work for me (i.e., I wasn't able to simply change CC and recompile). Here's the bug report on MacPorts: https://trac.macports.org/ticket/31444 -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/tZV-X0NVsDEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
