Skip to main content
deleted 404 characters in body
Source Link
paj
  • 6k
  • 5
  • 23
  • 45

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Changing the base url in the database programatically can also be done but it is probably a very bad idea.

$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value = 'https://domainname/' where path = 'web/secure/base_url';";
$writeConnection->query($query);

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Changing the base url in the database programatically can also be done but it is probably a very bad idea.

$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value = 'https://domainname/' where path = 'web/secure/base_url';";
$writeConnection->query($query);

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Changing the base url in the database programatically can also be done but it is probably a very bad idea.

added 1 character in body
Source Link
paj
  • 6k
  • 5
  • 23
  • 45

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

ChaningChanging the base url in the database programatically can also be done but it is probably a very bad idea.

$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value = 'https://domainname/' where path = 'web/secure/base_url';";
$writeConnection->query($query);

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Chaning the base url in the database programatically can also be done but it is probably a very bad idea.

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Changing the base url in the database programatically can also be done but it is probably a very bad idea.

$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value = 'https://domainname/' where path = 'web/secure/base_url';";
$writeConnection->query($query);
added 296 characters in body
Source Link
paj
  • 6k
  • 5
  • 23
  • 45

IfI think you are feeling bravemean you just want to convert the anchor url from https to http?

Then you could do something like this:

$resource = Mage::getSingleton('core/resource');
$writeConnection<?php =echo $resource->getConnectionstr_replace('core_write');
$query = "update core_config_data set value = 'http'https://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value =, 'https'http://domainname/' where path = 'web/secure/base_url';";
$writeConnection,$this->query>getDeleteUrl($query);) ?>

Chaning the base url in the database programatically can also be done but it is probably a very bad idea.

If you are feeling brave you could do something like this:

$resource = Mage::getSingleton('core/resource');
$writeConnection = $resource->getConnection('core_write');
$query = "update core_config_data set value = 'http://domainname/' where path = 'web/unsecure/base_url';";
$writeConnection->query($query);
$query = "update core_config_data set value = 'https://domainname/' where path = 'web/secure/base_url';";
$writeConnection->query($query);

I think you mean you just want to convert the anchor url from https to http?

Then you could do

<?php echo str_replace( 'https://', 'http://',$this->getDeleteUrl()) ?>

Chaning the base url in the database programatically can also be done but it is probably a very bad idea.

Source Link
paj
  • 6k
  • 5
  • 23
  • 45
Loading