I installed the Disable Functions extension, and turned off all the functions. It seems to work as expected, but it will not remove the "Wish List" links from the footer or the account page. Can this be fixed? Thanks.
Tuesday, May 31 2016, 11:39 PM
Share this post:
Responses (9)
  • Accepted Answer

    Wednesday, June 01 2016, 02:05 AM - #Permalink
    If it's a non default template in use, you probably have to edit it to fix it ...
    Give some info about your setup when asking for help please!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 01 2016, 05:09 PM - #Permalink
    It is a fresh install on a local test server (UniServerZ) using the included "Second" theme. I have turned off all the functions associated with the extension, and all appear to work as advertised, except for wishlist. The footer link and the link on the "My Account" page are still there. Thank
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 01 2016, 05:34 PM - #Permalink
    It's a mod made for the Default template and A 1.2, as of today.
    If you take a look at the log in "Extensions -> Modification" you'll see what needs fixing to make it work for Second etc.

    Modification::applyMod - Processing 'disable_functions'

    FILE: admin/controller/setting/setting.php
    FILE: admin/language/en-GB/setting/setting.php
    FILE: admin/language/fr-FR/setting/setting.php
    FILE: admin/language/nb-NO/setting/setting.php
    FILE: admin/view/template/setting/setting.tpl
    FILE: admin/view/theme/basic/template/setting/setting.tpl
    FILE: admin/controller/dashboard/charts.php
    FILE: admin/view/template/dashboard/charts.tpl
    FILE: admin/controller/marketing/contact.php
    FILE: admin/view/template/marketing/contact.tpl
    FILE: admin/view/theme/basic/template/marketing/contact.tpl
    FILE: admin/controller/sale/customer.php
    FILE: admin/view/template/sale/customer_form.tpl
    FILE: admin/view/theme/basic/template/sale/customer_form.tpl
    FILE: admin/controller/sale/order.php
    FILE: admin/view/template/sale/order_form.tpl
    FILE: admin/view/theme/basic/template/sale/order_form.tpl
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/admin/view/theme/basic/template/sale/order_form.tpl'
    search = '<label class="col-sm-2 control-label" for="input-reward"><?php echo $entry_reward; ?></label>'

    NOT FOUND!
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/admin/view/theme/basic/template/sale/order_form.tpl'
    search = '<label class="col-sm-2 control-label" for="input-reward"><?php echo $entry_reward; ?></label>'

    NOT FOUND!
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/admin/view/theme/basic/template/sale/order_form.tpl'
    search = '<label class="col-sm-2 control-label" for="input-affiliate"><?php echo $entry_affiliate; ?></label>'

    NOT FOUND!
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/admin/view/theme/basic/template/sale/order_form.tpl'
    search = '<label class="col-sm-2 control-label" for="input-affiliate"><?php echo $entry_affiliate; ?></label>'

    NOT FOUND!
    FILE: admin/view/template/sale/order_info.tpl
    FILE: admin/view/theme/basic/template/sale/order_info.tpl
    FILE: admin/controller/catalog/product.php
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/admin/controller/catalog/product.php'
    search = '$data['language_code'] = $this->config->get('config_admin_language');'

    NOT FOUND!
    FILE: admin/view/template/catalog/product_form.tpl
    FILE: catalog/controller/product/product.php
    FILE: catalog/view/theme/default/template/product/product.tpl
    FILE: catalog/view/theme/second/template/product/product.tpl
    FILE: catalog/controller/account/account.php
    FILE: catalog/view/theme/default/template/account/account.tpl
    FILE: catalog/view/theme/second/template/account/account.tpl
    FILE: catalog/controller/module/account.php
    FILE: catalog/view/theme/default/template/module/account.tpl
    FILE: catalog/view/theme/second/template/module/account.tpl
    Modification::getFiles - UNABLE TO FIND FILE(S), IGNORED:
    file = '/catalog/controller/checkout/cart.tpl'
    FILE: catalog/view/theme/default/template/checkout/cart.tpl
    FILE: catalog/view/theme/second/template/checkout/cart.tpl
    FILE: catalog/controller/affiliate/login.php
    FILE: catalog/controller/affiliate/account.php
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/catalog/controller/affiliate/account.php'
    search = '$this->load->language('affiliate/login');'

    NOT FOUND!
    FILE: catalog/controller/affiliate/register.php
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/catalog/controller/affiliate/register.php'
    search = '$this->load->language('affiliate/login');'

    NOT FOUND!
    FILE: catalog/controller/common/footer.php
    FILE: catalog/view/theme/default/template/common/footer.tpl
    FILE: catalog/view/theme/second/template/common/footer.tpl
    FILE: catalog/controller/feed/facebook_store.php
    FILE: catalog/view/theme/default/template/feed/facebook_store.tpl
    FILE: catalog/view/theme/second/template/feed/facebook_store.tpl
    FILE: catalog/controller/module/bestseller.php
    FILE: catalog/view/theme/default/template/module/bestseller.tpl
    FILE: catalog/view/theme/second/template/module/bestseller.tpl
    FILE: catalog/controller/module/featured.php
    FILE: catalog/view/theme/default/template/module/featured.tpl
    FILE: catalog/view/theme/second/template/module/featured.tpl
    FILE: catalog/controller/module/latest.php
    FILE: catalog/view/theme/default/template/module/latest.tpl
    FILE: catalog/view/theme/second/template/module/latest.tpl
    FILE: catalog/controller/module/special.php
    FILE: catalog/view/theme/default/template/module/special.tpl
    FILE: catalog/view/theme/second/template/module/special.tpl
    FILE: catalog/controller/product/category.php
    FILE: catalog/view/theme/default/template/product/category.tpl
    FILE: catalog/view/theme/second/template/product/category.tpl
    FILE: catalog/controller/product/manufacturer.php
    FILE: catalog/view/theme/default/template/product/manufacturer_info.tpl
    FILE: catalog/view/theme/second/template/product/manufacturer_info.tpl
    FILE: catalog/controller/product/search.php
    FILE: catalog/view/theme/default/template/product/search.tpl
    FILE: catalog/view/theme/second/template/product/search.tpl
    FILE: catalog/controller/product/special.php
    FILE: catalog/view/theme/default/template/product/special.tpl
    FILE: catalog/view/theme/second/template/product/special.tpl
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/catalog/view/theme/second/template/product/product.tpl'
    search = '<div class="btn-group">'

    NOT FOUND!
    Modification::operationNode - SEARCH NOT FOUND (SKIPPED):
    modification id = 'disable_functions'
    file name = '/catalog/view/theme/second/template/product/product.tpl'
    search = '<div class="btn-group">'

    NOT FOUND!
    Modification::applyMod - Done 'disable_functions'
    ----------------------------------------------------------------
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 02 2016, 05:48 PM - #Permalink
    I am using the latest version of Arassta, and I tried both of the templates that get installed with the application. The wishlist links mentioned in the previous post are not removed from either of them when using this extension. The extension was created by the Arastta team, and therefore I believe it should be fixed by the Arastta team so that it works as expected while using templates supplied by the Arastta team. After all, I am just a user of your application. Thank you.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 02 2016, 06:01 PM - #Permalink
    It's not my application, I'm just a user trying to help another user to help himself.
    This is free software, it's not perfect, nor do we have any right to demand anything.
    Sometimes we just have to help ourself if it's a hurry ... ;)

    Thank you!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 11:03 AM - #Permalink
    I've published new version for disable functions extension.

    Richard I ask you? Did you check extension setting on Arsatta setting page? if you set your setting for this extension. it works default and second theme.

    Also Rune I've solved modification skip log issue and here => https://github.com/arastta/arastta/issues/492
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 12:06 PM - #Permalink
    Cüneyt Şentürk wrote:Also Rune I've solved modification skip log issue and here => https://github.com/arastta/arastta/issues/492


    Not sure why you would do that. If something is wrong, not matching, I personally would like to know so I can make it match if needed.
    How would I now know about mismatch, typos etc in my xml?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 01:51 PM - #Permalink
    You can use LOG for that purpose. SKIP means skip ;)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 07 2016, 01:54 PM - #Permalink
    That means we have to modify the xml's if something is broken by time: https://github.com/arastta/addons/commit/cea1897f97d1daeaefb21626edba2d81491b7178 ;)

    Edit! But OK, the handling of skip is correct now. But I don't agree on changing the xml's, skip should probably only be used for non default files/code.
    https://github.com/vqmod/vqmod/wiki/scripting
    The reply is currently minimized Show
Your Reply