Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How to fix error in Template Manager >> Customise Template
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to fix error in Template Manager >> Customise Template

How to fix error in Template Manager >> Customise Template 10 years, 2 months ago #16806

  • SA Thuy
Dear all,

In some SJ templates, when you go to Template Manager -> Templates tabs -> Customise Template, there are no files to customize template. Please see the images:
Step 1:

Step2:


-Fix the error:
Go to file your_site\plugins\system\yt\yt.php and find:

$document->addScript(YT_PLUGIN_URL.'/includes/admin/js/yt-backendtemplate.js');

=> Edit to:
 $app = JFactory::getApplication();
    $option = $app->input->get('option');
    $view = $app->input->get('view');
    if($option == 'com_templates' && $view == 'style'){
     $document->addScript(YT_PLUGIN_URL.'/includes/admin/js/yt-backendtemplate.js');
    }


Thanks
Last Edit: 10 years, 2 months ago by .
The topic has been locked.

Re: How to fix error in Template Manager >> Customise Template 10 years, 2 months ago #16833

After changes in Sj_financial
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/d/domano/bel-stomat.ru/public_html/plugins/system/yt/yt.php on line 189
The topic has been locked.

Re: How to fix error in Template Manager >> Customise Template 10 years, 2 months ago #16834

Extra bracket.
rightly so
$app = JFactory::getApplication();
$option = $app->input->get('option');
$view = $app->input->get('view');
if($option == 'com_templates' && $view == 'style')
$document->addScript(YT_PLUGIN_URL.'/includes/admin/js/yt-backendtemplate.js');
}
The topic has been locked.

Re: How to fix error in Template Manager >> Customise Template 10 years, 2 months ago #16845

  • SA Thuy
Dear Igor Domanov,

On your code you change:

$app = JFactory::getApplication();
$option = $app->input->get('option');
$view = $app->input->get('view');
if($option == 'com_templates' && $view == 'style')
$document->addScript(YT_PLUGIN_URL.'/includes/admin/js/yt-backendtemplate.js');
}

you missed '{' after 'if' statement

Please read the code following the user guide again:
$app = JFactory::getApplication();
    $option = $app->input->get('option');
    $view = $app->input->get('view');
    if($option == 'com_templates' && $view == 'style'){
     $document->addScript(YT_PLUGIN_URL.'/includes/admin/js/yt-backendtemplate.js');
    }


Thanks
The topic has been locked.

Re: How to fix error in Template Manager >> Customise Template 10 years, 2 months ago #16864

delete
Last Edit: 10 years, 2 months ago by dent.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.27 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes