Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function: add_cart() in /home2/nickelwi/public_html/includes/application_top.php on line 367


dtucker40

Recommended Posts

Posted

:rolleyes: Hello to all I have been updating my 2.2 m and now have a problem with add to cart I did not change any thing on this file but there is still a problem Any help would be appreciated Thanks From Nickelwise

 

Fatal error: Call to undefined function: add_cart() in /home2/nickelwi/public_html/includes/application_top.php on line 367

 

// performed by the 'buy now' button in product listings and review page

case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

} else {

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

}

}

 

I think RED is the line

 

Unfortunately my dream weaver editor doesn’t match the script to the line numbers

 

Posted
:rolleyes: Hello to all I have been updating my 2.2 m and now have a problem with add to cart I did not change any thing on this file but there is still a problem Any help would be appreciated Thanks From Nickelwise

 

Fatal error: Call to undefined function: add_cart() in /home2/nickelwi/public_html/includes/application_top.php on line 367

 

// performed by the 'buy now' button in product listings and review page

case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

} else {

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

}

}

 

I think RED is the line

 

Unfortunately my dream weaver editor doesn’t match the script to the line numbers

 

 

Hiya this is line 367

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

More to do with attributes, is the problem on all items?

Check your attributes in Admin

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
Hiya this is line 367

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

More to do with attributes, is the problem on all items?

Check your attributes in Admin

 

 

:blush: Hello I am new to this and am not sure what to look for. The only thing I found in file manager was product attributes am I looking in the wrong place Thanks for your help Nickelwise

Posted
:blush: Hello I am new to this and am not sure what to look for. The only thing I found in file manager was product attributes am I looking in the wrong place Thanks for your help Nickelwise

Please do not use admin filemanager, Please do not use admin filemanager.

Posted
Please do not use admin filemanager, Please do not use admin filemanager.

 

 

:D Hi I usually don’t use admin I use cpanel for my updates. I fixed my problem I put original backup back in shopping cart and it works. I will try updates again Thanks Nickelwise

Archived

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

×
×
  • Create New...