-1

I am currently working in open-cart E shop.In that open cart,I received conformation mail with product details. In order id doesn`t received through mail user without login. when user will login then only, order id will display correctly..I am facing this error..

Notice: Undefined variable: order_id in /home/demoosiz/public_html/cart/OpenCart/vqmod/vqcache/vq2-catalog_controller_account_order.php on line 156Warning: Cannot modify header information - headers already sent by (output started at /home/demoosiz/public_html/cart/OpenCart/index.php:104) in /home/demoosiz/public_html/cart/OpenCart/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/demoosiz/public_html/cart/OpenCart/index.php:104) in /home/demoosiz/public_html/cart/OpenCart/vqmod/vqcache/vq2-system_engine_controller.php on line 29

Let me know how to solve it. please Provide solutions for this....

4

1 回答 1

0

使用isset()检查变量是否设置为这样

if(isset($order_id)){
//Do something
}
else{
//do something
}
于 2013-05-31T06:10:41.243 回答