tomcatuk Posted May 23, 2007 Share Posted May 23, 2007 I am currently using pm2co contribution. Please could someone tell me how to disable the auto product create. Many Thanks Pete Quote Link to comment Share on other sites More sharing options...
tomcatuk Posted May 23, 2007 Author Share Posted May 23, 2007 Sorry but this is urgent as it is messing things up for me :( Quote Link to comment Share on other sites More sharing options...
tomcatuk Posted May 24, 2007 Author Share Posted May 24, 2007 I relly need help on this urgently.. In the pm2checkou file it says this: // 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.