My first osCommerce contribution

Hi all,

Now a days I am working on osCommerce. Recently I am working on Online Calling Card /Phonecard Selling. I developed it in osCommerce (the leading opensource online shopping cart tools in php). I used a module named Unique Virtual Products.

I modified it a littlebit and posted to osCommerce contribution section.

You may download it from here Unique Virtual Products 0.7.

Cheers !

12 thoughts on “My first osCommerce contribution”

  1. Hi,

    Thanks for the update. I am testing it right now. I looks fine.

    Some issues:

    1. Need to add filename and tables not only in /catalog/admin/include, but also in /catalog/include
    2. Language are not used consistantly. Like in product_attributes is not visible
    3. Would like to have PIN of Serial also published into order_history

    Good work.

  2. @rajeeban: You must add the download file as a product attribute, then check the PIN code checkbox. It does not fill automatically when viewing. Check database if field is filled with 1. Then after order is complete, serial or PIN is displayed besides the download file.

  3. After:

    tep_db_query(“UPDATE “.TABLE_PRODUCTS_PINS.” SET products_pin_used='”.$insert_id.”‘ WHERE products_pin_id = ‘”.$pin_res[‘products_pin_id’].”‘”);

    Add:

    //Update status history with PIN Number
    $sql_data_array = array(‘orders_id’ => $insert_id,
    ‘orders_status_id’ => $order->info[‘order_status’],
    ‘date_added’ => ‘now()’,
    ‘comments’ => $pin);
    tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);

    This adds the serial into the order history

  4. Wow, Congrats. Keep it up.

    I will start using oscommerce very soon as I have an Order to implement complete ecommerce solution for one of my client.

  5. I test ed on V0.6, it work well.
    but v0.7 didnot work for me, I got blank screen, PHP editor complain “php $end un-expected”.
    I test on Mysql 5 and PHP 5.

    Please help

  6. If you want to see a reader’s feedback 🙂 , I rate this article for 4/5. Decent info, but I have to go to that damn google to find the missed parts. Thank you, anyway!

  7. After:tep_db_query( UPDATE .TABLE_PRODUCTS_PINS. SET pdocurts_pin_used=’ .$insert_id. WHERE pdocurts_pin_id = .$pin_res[‘products_pin_id’]. );Add://Update status history with PIN Number$sql_data_array = array( orders_id’ => $insert_id, orders_status_id’ => $order->info[‘order_status’], date_added’ => now()’, comments’ => $pin);tep_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);This adds the serial into the order history

Leave a Reply

Your email address will not be published. Required fields are marked *