Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With TITLE Tags


broadstreetbully

Recommended Posts

Posted

I recently installed an addon (order IP recorder) and went crazy trying to find one piece of code so the addon would work properly. I looked over the file I was supposed to edit over and over and finally found the piece of code but it was in between the TITLE tags. Now whenever a customer goes to checkout in the top of the browser you see the piece of code (see image below). Is there a way to change this code to a different place on the file or MUST it be in between the title tags?

10psro4.jpg

 

 

Also, here is the piece of code I had to edit in the file checkout_confirmation.php that was in the TITLE tags...

* FIND:

	'currency_value' => $order->info['currency_value');

* CHANGE TO:

	'currency_value' => $order->info['currency_value'],
	'ipaddy' => $ip,
	'ipisp' => $isp);

 

I thought the TITLE tags were for the website title...I never knew you can insert other code in between them. Anyway, this store is about to go "live" and I'd love to get this straightened out asap. Any & all help is greatly appreciated.

Posted

What? That stuff is PHP code (defining elements of an array) being used as title text. It's not being executed, and it doesn't belong there. It should not be in the title. Either your instructions are wrong or you misread them. This is in the standard /checkout_confirmation.php file:

<title><?php echo TITLE; ?></title>

What did you do to yours?

Posted

What? That stuff is PHP code (defining elements of an array) being used as title text. It's not being executed, and it doesn't belong there. It should not be in the title. Either your instructions are wrong or you misread them. This is in the standard /checkout_confirmation.php file:

<title><?php echo TITLE; ?></title>

What did you do to yours?

 

I personally don't recall doing anything to it...it might have been that way from an addon i used where I needed to upload a new delivery_confirmation.php file....would I be able to take it out of the title tags and put it somewhere else on the file?

Posted

I don't see the "Find" line of code anywhere in osC (I tried both () and []). It must have been added by some add-on. That line would be within $some_variable_name = array(....); and the additional two lines are simply added after the existing one. It certainly would not be placed between <title> and </title>, or in the "define" for TITLE!

 

Perhaps if you show the lines of code before you did anything, and then what it looks like after, I could have some idea of what went wrong. It's always possible that an add-on stuck some new code in the wrong place.

Archived

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

×
×
  • Create New...