Jump to content

[ask] cara install wiznav for newbie


Recommended Posts

pengen pasang nav bar yg horizontal, terus nemu wiznav

udah baca thread nya.. tp gak ngerti cara upload folder 'upload' ke folder upload nya prestashop..

trus harus edit header php.. buka header php nya dmn?

 

hehe...gaptek banget...

 

para web master...mohon bantuannya ya...

 

atau klo ada modul lain yg lebih friendly tolong di share ya...

 

sankyuuuu.... :lol:

Link to comment
Share on other sites

soal upload module gampang kok bro... prestashop nya online apa offline?

kalo online coba download modul nya trus extract dulu di komputer, pastikan aja didalam folder #nama modul# langsung ada file file #nama modul#.php dan #nama modul.tpl ... klo udah tinggal upload aja semua isi folder #nama modul# ke folder Modules prestashop nya...

 

maksud nya nambah hook wiznav nya yah?

edit file header.tpl yang ada di folder theme yang aktif di pake... misal nya theme bawaan prestashop ada di themes/prestashop/header.tpl

 

tinggal di add aja biasa nya di bawah ($HOOK_TOP)

jadi nya :

{$HOOK_TOP}

 

 

{$HOOK_WIZNAV}

 

good luck ;)

Link to comment
Share on other sites

  • 9 months later...

klo masih offline gimana?

 

:rolleyes:

Hai Tomeh infonya kurang lengkap, nih, ada tambahannya :

 

Buka file header.php dan edit sekitar baris 12 seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

ke seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_WIZNAV' => Module::hookExec('wiznav'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

Kemudian tambahkan code di bawah ini ke header.tpl (theme yang digunakan) :

 

===================================================================

<div>

{$HOOK_WIZNAV}

</div>

===================================================================

 

Contohnya :

 

===================================================================

<div>

<h1 id="logo"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img src="{$img_ps_dir}logo.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" /></a></h1>

<div id="header">

{$HOOK_TOP}

</div>

<div>

{$HOOK_WIZNAV}

</div>

</div>

===================================================================

Edited by yusufzulkarnain (see edit history)
Link to comment
Share on other sites

Hai Tomeh infonya kurang lengkap, nih, ada tambahannya :

 

Buka file header.php dan edit sekitar baris 12 seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

ke seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_WIZNAV' => Module::hookExec('wiznav'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

Kemudian tambahkan code di bawah ini ke header.tpl (theme yang digunakan) :

 

===================================================================

<div>

{$HOOK_WIZNAV}

</div>

===================================================================

 

Contohnya :

 

===================================================================

<div>

<h1 id="logo"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img src="{$img_ps_dir}logo.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" /></a></h1>

<div id="header">

{$HOOK_TOP}

</div>

<div>

{$HOOK_WIZNAV}

</div>

</div>

===================================================================

Hai Tomeh infonya kurang lengkap, nih, ada tambahannya :

 

Buka file header.php dan edit sekitar baris 12 seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

ke seperti ini :

 

===================================================================

$smarty->assign(array(

'HOOK_HEADER' => Module::hookExec('header'),

'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'),

'HOOK_WIZNAV' => Module::hookExec('wiznav'),

'HOOK_TOP' => Module::hookExec('top'),

'static_token' => Tools::getToken(false),

'token' => Tools::getToken(),

'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_,

'content_only' => intval(Tools::getValue('content_only'))

));

===================================================================

 

Kemudian tambahkan code di bawah ini ke header.tpl (theme yang digunakan) :

 

===================================================================

<div>

{$HOOK_WIZNAV}

</div>

===================================================================

 

Contohnya :

 

===================================================================

<div>

<h1 id="logo"><a href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"><img src="{$img_ps_dir}logo.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" /></a></h1>

<div id="header">

{$HOOK_TOP}

</div>

<div>

{$HOOK_WIZNAV}

</div>

</div>

===================================================================

file header.php nya dimana gan??

terus unzip folder wiznavnya kedalam folder apa!!!!?????

Link to comment
Share on other sites

  • 4 months later...

header.php itu letaknya dimana ya??saya menemukan header.php tetapi isinya kok gk sama seperti yang dijelaskan di atas...saya pake prestashop 1.4.9...mohn dibimbing...

 

header.php yang saya temukan

<?php

/*

* 2007-2012 PrestaShop

*

* NOTICE OF LICENSE

*

* This source file is subject to the Open Software License (OSL 3.0)

* that is bundled with this package in the file LICENSE.txt.

* It is also available through the world-wide-web at this URL:

* http://opensource.or...ses/osl-3.0.php

* If you did not receive a copy of the license and are unable to

* obtain it through the world-wide-web, please send an email

* to [email protected] so we can send you a copy immediately.

*

* DISCLAIMER

*

* Do not edit or add to this file if you wish to upgrade PrestaShop to newer

* versions in the future. If you wish to customize PrestaShop for your

* needs please refer to http://www.prestashop.com for more information.

*

* @author PrestaShop SA <[email protected]>

* @copyright 2007-2012 PrestaShop SA

* @version Release: $Revision: 14352 $

* @license http://opensource.or...ses/osl-3.0.php Open Software License (OSL 3.0)

* International Registered Trademark & Property of PrestaShop SA

*/

 

// Save the value of $useSSL ($useSSL will be overwritten by FrontController::__contruct())

$controller = new FrontController();

 

if (Tools::usingSecureMode())

$useSSL = $controller->ssl = true;

 

$controller->displayHeader();

 

Link to comment
Share on other sites

×
×
  • Create New...