Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2co - Disable Auto Create Product


tomcatuk

Recommended Posts

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...