Magento - $ this-> getSkinUrl () returns the wrong topic on the main page

I use a template with three columns on the main page, in my right_col.phtml file I use "$ this-> getSkinUrl ()" and this returns me the wrong topic: / default / default / instead of / default / my_second_theme, but it works well on all other pages.

How can I fix this problem to get a good topic?

Many thanks.

+3
source share
4 answers

I used this to solve it:

if (Mage::app()->getStore()->getCode()=='deutsch') { 
      Mage::getDesign()->setTheme('deutsch'); 
 }

Now it works well;)

0
source

, ( ). - , Magento default/default .

+3

CMS , "" , " " ​​ , , .

+2

$ , . getSkinUrl() , URL, , . store/default/my_second_theme, / .

: http://www.nvncbl.com/2009/10/magento-this-getskinurl-wrong-template/

+1

Source: https://habr.com/ru/post/1784110/


All Articles