OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: 2co - Disable Auto Create Product
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > Other
tomcatuk
I am currently using pm2co contribution.

Please could someone tell me how to disable the auto product create.

Many Thanks

Pete
tomcatuk
Sorry but this is urgent as it is messing things up for me sad.gif
tomcatuk
I relly need help on this urgently..

In the pm2checkou file it says this:

CODE
// fill 2Checkout V2 details with osc order info
            // these fields automate product creation on 2checkout's site. comment out all except c_prod if you do not want this feature
            for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
                $process_button_string .= tep_draw_hidden_field('c_prod_' . $i, $order->products[$i]['model'] . ',' . $order->products[$i]['qty']);
                // $process_button_string .= tep_draw_hidden_field('c_name_' . $i, $order->products[$i]['name']);

                // format product description (from Short Description contrib)
                $product_id = $order->products[$i]['id'];
                $product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $languages_id . "'");
                $product_description = tep_db_fetch_array($product_query);
                $text = $product_description['products_description'];
                $text = strip_tags($text);
                $text = nl2br($text);
                $text = str_replace("<br />","<br>",$text);
                $process_button_string .= tep_draw_hidden_field('c_description_' . $i, $text);
                $process_button_string .= tep_draw_hidden_field('c_price_' . $i, $order->products[$i]['final_price']);
                // $process_button_string .= tep_draw_hidden_field('c_tangible_' . $i, 'Y'); // uncomment and change to N if you sell only non-tangible (ie downloadable) goods


I do not know which lines etc I am supposed to comment out to disable the auto product creation.

Hope someone can help as I am a bit of a noob at php coding

Many thanks in advance

Pete
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.