This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Manual migration notes for customized themes 3.2.4
Gabriel Guzman edited this page Mar 3, 2015
·
1 revision
In order for 3.2.4 to work properly when Web Store is installed in a subfolder, self hosted users who have copied the brooklyn2014 theme will have to manually apply these changes (line numbers may have changed depending on your modifications):
change:
showEditCartModal();
to:
showEditCartModal(<?= CJSON::encode(Yii::app()->createUrl('editcart')) ?>);
change:
Yii::app()->clientScript->registerScript('showEditCartModal', 'showEditCartModal();',CClientScript::POS_END);
to:
$editCartUrl = CJSON::encode(Yii::app()->createUrl('editcart'));
Yii::app()->clientScript->registerScript(
'showEditCartModal',
'showEditCartModal(' . $editCartUrl . ');',
CClientScript::POS_END
);
change:
<a href="/myaccount/edit">Create an Account</a>
to:
<a href="<?= Yii::app()->createUrl('/myaccount/edit'); ?>">Create an Account</a>
change:
echo CHtml::link(Yii::t('global', 'View my Wish Lists'), array("../site/login"));
to:
echo CHtml::link(Yii::t('global', 'View my Wish Lists'), Yii::app()->createUrl('site/login'));
And, on line 72:
change:
echo CHtml::link(Yii::t('global', 'View my Wish Lists'), array("/wishlist"));
to:
echo CHtml::link(Yii::t('global', 'View my Wish Lists'), Yii::app()->createUrl('/wishlist'));