opencart is structured so things like payment and shipping "modules" can be added on without requiring modification to the core opencart code. if this is simply a new payment type, it could be added as a module... the steps for doing this aren't documented yet, but there may be some people in the forum willing to help out in that area.
if you are wanting to modify the standard order fields to add something above comments, you will have to do a mod of the core opencart code to fit this in. you will need a new column in the database and then you will need to modify the code to use it. if you are going to dive in, i would recommend following the pattern that is used for the comments field... might not be too bad.
another idea... could you get away with simply changing the title on the comments field to something like "Comments / PO Number", and instruct your users to put the PO # in there? that would be a simple language file change.
if you are wanting to modify the standard order fields to add something above comments, you will have to do a mod of the core opencart code to fit this in. you will need a new column in the database and then you will need to modify the code to use it. if you are going to dive in, i would recommend following the pattern that is used for the comments field... might not be too bad.
another idea... could you get away with simply changing the title on the comments field to something like "Comments / PO Number", and instruct your users to put the PO # in there? that would be a simple language file change.
this discussion is about a PO#... my understanding of a purchase order is that a customer would provide a PO instead of direct payment, and you would use that to invoice their company at a later date (something like that). to me, that seems like a payment module, since opencart is going to bring them to a payment page as part of the order process.
for example, when they reach the "payment" step, they might see the following options:
- PayPal
- COD
- Purchase Order #
choosing purchase order # would require them to enter the number. does this make sense?
i don't have an answer for which files to modify as i haven't looked at this myself. if you are familiar with php, you should try to get familiar with the opencart's structure and use the existing fields and modules as examples. if not, someone else may be able to contribute some advice or be willing to write the mod for you.
in the future, there should be some documentation available that lays out the general process for creating things like payment and shipping modules.
for example, when they reach the "payment" step, they might see the following options:
- PayPal
- COD
- Purchase Order #
choosing purchase order # would require them to enter the number. does this make sense?
i don't have an answer for which files to modify as i haven't looked at this myself. if you are familiar with php, you should try to get familiar with the opencart's structure and use the existing fields and modules as examples. if not, someone else may be able to contribute some advice or be willing to write the mod for you.
in the future, there should be some documentation available that lays out the general process for creating things like payment and shipping modules.
Last edited by d77 on Tue Sep 25, 2007 11:41 pm, edited 1 time in total.
Ok I edited the catalog/Controller/checkout_payment.php and the language file for checkout_payment.php. I added the same lines as the comments, but it just does not show up.
Controller below:
$view->set('comment', $session->get('comment'));
$view->set('PO', $session->get('PO'));
language below:
$_['text_comments'] = 'Add Comments About Your Order';
$_['PO_comments'] = 'Add PO#';
What am I doing wrong...
Controller below:
$view->set('comment', $session->get('comment'));
$view->set('PO', $session->get('PO'));
language below:
$_['text_comments'] = 'Add Comments About Your Order';
$_['PO_comments'] = 'Add PO#';
What am I doing wrong...
Who is online
Users browsing this forum: No registered users and 5 guests