Issue #1430 resolved

purchase order TypeError

John Boyd
created an issue

Hello ,

When I clicked on the "Continue Checkout" button while using the Purchase Order module. I get the following error :

{{{ TypeError at /checkout/po/ purchaseorder_process_form() takes exactly 4 arguments (5 given) }}}

And - {{{ Traceback Switch to copy-and-paste view

/usr/home/john/.virtualenvs/satchmo4/lib/python2.7/site-packages/django/core/handlers/base.py in get_response response = callback(request, callback_args, *callback_kwargs) ... ▶ Local vars /usr/home/john/.virtualenvs/satchmo4/src/satchmo/satchmo/apps/payment/modules/purchaseorder/views.py in pay_ship_info 'shop/checkout/purchaseorder/pay_ship.html') ... ▶ Local vars /usr/home/john/.virtualenvs/satchmo4/src/satchmo/satchmo/apps/payment/views/payship.py in base_pay_ship_info results = form_handler(request, contact, working_cart, payment_module, allow_skip) ... ▶ Local vars }}}

My beginner's trouble shooting attempts yielded :

In views/payship.py lines 179 to 185 has the following lines added - {{{ # possibly hide the shipping based on store config shiphide = config_value('SHIPPING','HIDING') if shiphide in ('YES', 'DESCRIPTION'): allow_skip = True else: allow_skip = False results = form_handler(request, contact, working_cart, payment_module, allow_skip) }}}

previously payship.py had - {{{ results = form_handler(request, contact, working_cart, payment_module) }}} And purchaseorder/views.py has this - {{{ ......... def purchaseorder_process_form(request, contact, working_cart, payment_module): ......... }}}

Both purchase order and gift certificate modules generate the same error. The only change I see is the "allow_skip" parameter in results = form_handler(request, contact, working_cart, payment_module, allow_skip)

Regards,

John.

Comments (2)

  1. Log in to comment