Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do you get the Products URL: to use https://


Platinum Games

Recommended Posts

<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
	  <tr>
		<td class="main"><?php if ($i == 0) echo TEXT_PRODUCTS_URL . '<br><small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?></td>
		<td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (isset($products_url[$languages[$i]['id']]) ? stripslashes($products_url[$languages[$i]['id']]) : tep_get_products_url($pInfo->products_id, $languages[$i]['id']))); ?></td>
	  </tr>
<?php

 

this it the code in the categories.php in the admin directory

can it be changed here???

Thanks in advance!

 

Ben

Link to comment
Share on other sites

Any ideas anyone?

 

I'm not sure I entirely understand your question, but if you want the entire site to show in https://

 

go to includes/configure.php

 

and define this part of the code here...

 

define('HTTP_SERVER', 'http://www.securesite.com/');		
 define('HTTPS_SERVER', 'https://www.securesite.com/');

 

just add s to the first http server... like this

 

define('HTTP_SERVER', 'https://www.securesite.com/');		
 define('HTTPS_SERVER', 'https://www.securesite.com/');

 

You may need to edit in the admin/includes/configure as well to achieve what you want. Sorry I wasn't able to help more.

Link to comment
Share on other sites

I'm not sure I entirely understand your question, but if you want the entire site to show in https://

 

go to includes/configure.php

 

and define this part of the code here...

 

define('HTTP_SERVER', 'http://www.securesite.com/');		
 define('HTTPS_SERVER', 'https://www.securesite.com/');

 

just add s to the first http server... like this

 

define('HTTP_SERVER', 'https://www.securesite.com/');		
 define('HTTPS_SERVER', 'https://www.securesite.com/');

 

You may need to edit in the admin/includes/configure as well to achieve what you want. Sorry I wasn't able to help more.

 

 

thanks for your reply,

 

when adding a product to your shop you have the option of adding a url to the product for additional information, this will display as " for mor information on this product Click Here"

 

When adding it to the product it currently requests the URL to be added without the HTTP:// so you would just put www.url.com in the field, now when you click on the link displayed in the shop side of things it will place the HTTP:// in front of the URL that you added.

 

the URLs that i want to place in this field are HTTPS:// links, so my question is,

 

How do i change the code to add HTTPS:// as default or remove it and add it mannualy for every product URL that i wish to add???

 

i hope i have explained this correctly and thanks for your help.

Thanks in advance!

 

Ben

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...