Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

"Order editor" : Error when I try to add a product


  • You cannot reply to this topic
1 reply to this topic

#1 royal38

  • Community Member
  • 70 posts
  • Real Name:Jean D.

Posted 28 May 2008, 18:30

Hello,

I've installed "order editor" and this contrib is great!!

I also use "step by step manual order entry".

When I edit an order, I have an error when I add a product in the order :

Here is the error :

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxxxxxxx/public_html/adminxxxxx/edit_orders.php on line 423

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/xxxxxxxxx/public_html/adminxxxxx/edit_orders.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/adminxxxxxx/edit_orders.php:423) in /home/xxxxxxxx/public_html/adminxxxxx/includes/functions/general.php on line 86


Line 423 of edit_orders.php :

if ( (!in_array($ot_class, $written_ot_totals_array)) && (!in_array($ot_title, $written_ot_titles_array)) && (tep_not_null($ot_value)) && (tep_not_null($ot_title)) && ($ot_class != 'ot_tax') && ($ot_class != 'ot_loworderfee') ) { //7

Large code :

			  } elseif ($new_ot_total) { //also within 6
				$order->info['total'] += ($order_totals[$i]['value']*(-1));
				$current_ot_totals_array[] = $order_totals[$i]['code'];
				$written_ot_totals_array[] = $ot_class;
				$written_ot_titles_array[] = $ot_title;
			  }//end 6
		   }//end 4
		 } elseif ( (tep_not_null($ot_value)) && (tep_not_null($ot_title)) ) { // this modifies if (!strstr($ot_class, 'ot_custom')) { //3
			$new_order_totals[] = array('title' => $ot_title,
					 'text' => $currencies->format($ot_value, true, $order->info['currency'], $order->info['currency_value']),
										'value' => $ot_value,
										'code' => 'ot_custom_' . $j,
										'sort_order' => $j);
			$order->info['total'] += $ot_value;
			$written_ot_totals_array[] = $ot_class;
			$written_ot_titles_array[] = $ot_title;
			$j++;
		  } //end 3
		  
			//save ot_skippy from certain annihilation
			 if ( (!in_array($ot_class, $written_ot_totals_array)) && (!in_array($ot_title, $written_ot_titles_array)) && (tep_not_null($ot_value)) && (tep_not_null($ot_title)) && ($ot_class != 'ot_tax') && ($ot_class != 'ot_loworderfee') ) { //7
			//this is supposed to catch the oddball components that don't show up in $order_totals
				 
					$new_order_totals[] = array(
							'title' => $ot_title,
							'text' => $currencies->format($ot_value, true, $order->info['currency'], $order->info['currency_value']),
							'value' => $ot_value,
							'code' => $ot_class,
							'sort_order' => $j);
			   //$current_ot_totals_array[] = $order_totals[$i]['code'];
				//$current_ot_titles_array[] = $order_totals[$i]['title'];
				$written_ot_totals_array[] = $ot_class;
				$written_ot_titles_array[] = $ot_title;
				$j++;
				 
				 } //end 7



Line 86 of general.php.

	header('Location: ' . $url);

Large code

// Redirect to another page or site
  function tep_redirect($url) {
	global $logger;

	if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
	  tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
	}

	header('Location: ' . $url);

	if (STORE_PAGE_PARSE_TIME == 'true') {
	  if (!is_object($logger)) $logger = new logger;
	  $logger->timer_stop();
	}

	exit;
  }

////


I have an error but information are updated!

Can you help me please?

Thanks a lot ;)

Edited by royal38, 28 May 2008, 18:31.


#2 chetacconee

  • Community Member
  • 1 posts

Posted 29 November 2011, 16:15

I have tried Viagra and Cialis before and must say that Levitra causes less side effects though. I had terrible headache with Viagra which made sex impossible sometimes. With Levitra ...

Viagra VS Levitra