Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'Array' instead real name of product


l33roy

Recommended Posts

I have problem, plz help me!!!

 

i enter preview button, when adding a new product and see arrays of $products_name, $products_description and $products_url;

 

i visit this problem firstly in my life. What happend?

 

$products_name:

Array ( [1] => Butterfly [2] => Array ( [me[1] => Butterfly ) [3] => Array ( [me[2] => Butterfly ) [4] => Array ( [me[3] => Butterfly ) )

$products_description:

Array ( [1] => Acrylic on canvas (49,5x32) [2] => Acrylic on canvas (49,5x32) [3] => Acrylic on canvas (49,5x32) [4] => Acrylic on canvas (49,5x32) )

$products_url:

Array ( [1] => [2] => Array ( [rl[1] => ) [3] => Array ( [rl[2] => ) [4] => Array ( [rl[3] => ) )

 

i saw a question like that on this forum, but no answer there. why?

Link to comment
Share on other sites

sql query used to export the product detail.

Put limit 1.

Also paste your query here.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

I have problem, plz help me!!!

 

i enter preview button, when adding a new product and see arrays of $products_name, $products_description and $products_url;

 

i visit this problem firstly in my life. What happend?

 

$products_name:

Array ( [1] => Butterfly [2] => Array ( [me[1] => Butterfly ) [3] => Array ( [me[2] => Butterfly ) [4] => Array ( [me[3] => Butterfly ) )

$products_description:

Array ( [1] => Acrylic on canvas (49,5x32) [2] => Acrylic on canvas (49,5x32) [3] => Acrylic on canvas (49,5x32) [4] => Acrylic on canvas (49,5x32) )

$products_url:

Array ( [1] => [2] => Array ( [rl[1] => ) [3] => Array ( [rl[2] => ) [4] => Array ( [rl[3] => ) )

 

i saw a question like that on this forum, but no answer there. why?

 

Someone left debug code in your file.

 

search it for

print_r

 

admin/categories.php

 

Probably around ..

  } elseif ($action == 'new_product_preview') {
if (tep_not_null($HTTP_POST_VARS)) {
  $pInfo = new objectInfo($HTTP_POST_VARS);
  $products_name = $HTTP_POST_VARS['products_name'];
  $products_description = $HTTP_POST_VARS['products_description'];
  $products_url = $HTTP_POST_VARS['products_url'];
} else {

Link to comment
Share on other sites

Someone left debug code in your file.

 

its my debug code. u right, here:

 

} elseif ($action == 'new_product_preview') {
if (tep_not_null($HTTP_POST_VARS)) {
  $pInfo = new objectInfo($HTTP_POST_VARS);
  $products_name = $HTTP_POST_VARS['products_name'];
  $products_description = $HTTP_POST_VARS['products_description'];
  $products_url = $HTTP_POST_VARS['products_url'];
} else {

 

but if u see, this arrays are strange and not right.

 

Someone help me?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...