Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

checkout_shipping.php removing comment


Recommended Posts

I am unable to remove comment value inside checkout_shipping.php


This is what I am refering to:


Durring checkout process and inside checkout_shipping.php:


I add new comment "this is test comment"


Now at the checkout_confirmation.php I click link edit comment


It goes back to checkout_shipping.php and show old comment "this is test comment"


Now I delete that comment and I don't type anything else and I contine with checkout process.


I am back at checkout_confirmation.php page but I still see old comment even so that I removed it.

Link to comment
Share on other sites

I found the problem at checkout_shipping.php:


if (tep_not_null($HTTP_POST_VARS['comments'])) {

$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);



This is wrong statement because in my case comments is null. Removing if statement fix this issue.


$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);

Link to comment
Share on other sites


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

  • Create New...