Fixed: Issue during installation, and assigned missing variables in the smarty

This commit is contained in:
vishalsingh.qlo325
2025-04-21 13:06:44 +05:30
parent f5bf00581d
commit 9919c1cd5f
2 changed files with 4 additions and 1 deletions

View File

@@ -169,12 +169,14 @@ class WkCustomNavigationLink extends ObjectModel
$objCustomNavigationLink->name[$language['id_lang']] = 'Our hotels';
}
$https_link = (Tools::usingSecureMode() && Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
$objLink = new Link($https_link, $https_link);
$objCustomNavigationLink->position = $this->getHigherPosition();
$objCustomNavigationLink->id_cms = 0;
$objCustomNavigationLink->show_at_navigation = 1;
$objCustomNavigationLink->show_at_footer = 0;
$objCustomNavigationLink->active = 1;
$objCustomNavigationLink->link = Context::getContext()->link->getPageLink('properties');
$objCustomNavigationLink->link = $objLink->getPageLink('properties');
$objCustomNavigationLink->is_custom_link = 1;
$objCustomNavigationLink->save();