Jump to content

Подгрузка favoriteproducts по HTTP вместо HTTPS


Recommended Posts

Здравствуйте!

Столкнулся с проблемой работы модуля favoriteproducts – не добавляет любимые

Консоль показывает следующее

Mixed Content: The page at 'https://domain.od.ua/losiny/2509-legginsy-kapri-zhenskie-905.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095'. This content should also be served over HTTPS.
XMLHttpRequest cannot load http://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095. The request was redirected to 'https://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095', which is disallowed for cross-origin requests that require preflight.

Выставлены следующие настройки SSL

 

KAxdZ63FQPXvA8.jpg

 

В .htaccess ничего не прописывал.

 

Прилагаю копию модуля. favoriteproducts.zip

 

Подскажите, что не так??? :huh:

 

 

Link to comment
Share on other sites

/views/templates/hook/favoriteproducts-header.tpl

	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}';
	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], false)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], false)}';

изменить на 

	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}';

и провести беседу с тем кто добавил 2 последние строки, нафига там var :)

  • Like 1
Link to comment
Share on other sites

/views/templates/hook/favoriteproducts-header.tpl

	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}';
	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], false)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], false)}';

изменить на 

	var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}';
	var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}';

и провести беседу с тем кто добавил 2 последние строки, нафига там var :)

 

Огромное Вам спасибо! Заработало.  :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...