Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

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):

themes/brooklyn2014copy/views/site/_header.php line 4

change:

showEditCartModal();

to:

showEditCartModal(<?= CJSON::encode(Yii::app()->createUrl('editcart')) ?>);

themes/brooklyn2014copy/views/site/_sidecart.php line 19

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
);

themes/brooklyn2014copy/views/site/login.php line 45

change:

<a href="/myaccount/edit">Create an Account</a>

to:

<a href="<?= Yii::app()->createUrl('/myaccount/edit'); ?>">Create an Account</a>

themes/brooklyn2014copy/views/wishlist/search.php line 70

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'));
Clone this wiki locally