Results 1 to 6 of 6

Customer Purchase Order

This is a discussion on Customer Purchase Order within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Is there any way of including a field for customer's Purchase Orders. It would be nice to have this as ...

      
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default Customer Purchase Order

    Is there any way of including a field for customer's Purchase Orders. It would be nice to have this as a field on the Invoice and Packing List. My client was used to this while using XCart. It could be placed in the Orders.php

    It's nothing that I could do from scratch. Just wondering if someone has already worked on this.

    Thanks for any feedback!!

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default RE: Customer Purchase Order

    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default Purchase Order Option

    First off, thanks Michael for the link to the Purchase Order mod...

    Does anyone have any additional info on this. I keep running into a problem tring to add the additional fields to the Orders tabel in the SQL Database. I get a syntax error with the "NOT NULL AFTER" command. Here is what the SQL fields are supposed to look like according to the documentation:

    `ip_order_no` VARCHAR( 30 ) NOT NULL AFTER `cc_expires` ,
    `ip_requested_by` VARCHAR( 30 ) NOT NULL AFTER `ip_order_no` ,
    `ip_contact_person` VARCHAR( 30 ) NOT NULL AFTER `ip_requested_by` ,

    I can get it to work if I update the table with the following but don't know if this will work as it leaves out the designation after the command:

    `ip_order_no` VARCHAR( 30 ) NOT NULL default '' ,
    `ip_requested_by` VARCHAR( 30 ) NOT NULL default '',
    `ip_contact_person` VARCHAR( 30 ) NOT NULL default '' ,

    The link to the mod and documentation is:

    http://www.oscommerce.com/community/con ... hase+order

    My customer really needs this or some type of Purchase Order feature..

    Thanks as always for any help!!!

  4. #4
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default Purchase Order

    Sorry...I've posted the wrong link for this modification

    http://www.oscommerce.com/community/...purchase+order

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    61
    Rep Power
    0


    Default Purchase Order

    Well, whoever reads this (if anyone), I've figured it out. It was mostly a problem with instructions...a couple of confusing gramar issues. It took me 7 hours to make operational but I did it!!!!!

    Next I'll customize the look a bit to make it fit better with the invoice layout.

    I'd post the issues here with regards to instructions, but there were so many I'd need to write a install manual..maybe I will.

  6. #6
    New Member
    Join Date
    Feb 2005
    Posts
    10
    Rep Power
    0


    Default RE: Purchase Order

    I'm looking for a way to allow the customer to specify a PO# as optional. Like a comment, not a payment option. Some customers want a PO# referenced on their invoice regardless of payment method. I've installed Institutional Purchase Order, but since it's a payment option it can't be used simultaniously with say, Credit Card. If I can figure out what is needed to make this work: (get the data passed to the fields, i'd be set)

    I've added this in checkout_payment.tpl.php and there's no problem with the display or processing, I'm missing something to get the data into the fields. I've got the same fields as Instututional Purchase Order.


    Code:
    </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main"><b><?php echo 'Purchase Order Information' ?></b></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
              <tr class="infoBoxContents">
                <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                    <tr> 
                      <td class="main"><?php echo 'Purchase Order #:'; ?><br>
                        <?php echo tep_draw_input_field('ip_order_no', $HTTP_POST_VARS['ip_order_no']);?></td>
                    </tr>
                    <tr> 
                      <td class="main"><?php echo 'Purchase Order Contact:'; ?><br>
                        <?php echo tep_draw_input_field('ip_requested_by', $HTTP_POST_VARS['ip_requested_by']);?></td>
                    </tr>
                    <tr> 
                      <td class="main"><?php echo 'Purchase Order Comment:'; ?><br>
                        <?php echo tep_draw_input_field('ip_contact_person', $HTTP_POST_VARS['ip_contact_person'], '', '', false);?></td>
                    </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
    
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10');  ?></td>
          </tr>

Similar Threads

  1. how to place an order for a customer?
    By pal in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 05-10-2005, 07:29 AM
  2. customer order pickup
    By lil-raskals in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 11-22-2004, 05:23 PM
  3. Add order to customer details
    By Musicman in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-06-2004, 02:36 PM
  4. customer comments in order and extra order email
    By karen_l in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-03-2003, 11:51 AM
  5. Help with Purchase Order add
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-01-2002, 10:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •