Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

product_url borken after adding extra fields


wkdwich

Recommended Posts

I am using product_url to link to an MSDS sheet (chemical info required by the US and I think now overseas..) anyway.. in the admin add product page, in the product url box I type www.somewhere.com/page.htm

I click the Preview button and hover over the link and it is displayed correctly:

http://www.somewhere.com/MSDSpage.htm

 

I click update

 

Now I go to the actual product page and the link when hovering shows:

http://http://somewhere.com/shop/redirect....%2FMSDSpage.htm

 

The only MOD I can think of that might have caused this is the exta product field mod, but that is working correctly..

 

I tried going into redirect.php and editing out the http:// at lines 26-28:

	 case 'url':
if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) {
	tep_redirect('http://' . $HTTP_GET_VARS['goto']);

changed to:

	 case 'url':
if (isset($HTTP_GET_VARS['goto']) && tep_not_null($HTTP_GET_VARS['goto'])) {
	tep_redirect($HTTP_GET_VARS['goto']);

 

but that had no effect on the link shown in the product page, it still shows the double http://

 

When I click this incorrect link a new window does open but obviously nothing is produced there because of the ill formed link.. I checked another item that does not have any entry for the extra field and that URL is still wrong.

 

Now to test further I manage a 2nd osC store.. this one does not have extra fields MOD.. I added a similar link to a product there and after testing it does work correctly there.. so I have to assume something in the extra fields is doing this..

Debbie D
Franklin County, VA "Moonshine Capitol of the World"
osCmax Mobile Template oscmaxtemplates.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...