Wednesday, 13 May 2009

HOWTO: hide 隐藏 SHOPEX footer 'powered by shopex'

Shopex use zend encoder to protect their commercial product. To run it, the 'zend-optimiser' is needed for decoding. Some web servers do not provide this module, such as ONE.COM. Therefore, to remove this 'footer' slogan, you must have their license the override the encoded php file.

Here is a hack to remove this 'powered by shopex' from footer, using 'mootools', which is coming with shopex installation automatically.

  1. go to /themes/THEME NAME/block/footer.html.
    Use '<div id="footer_remove">' and '</div>' to surround the '<{foot}>'
  2. go to /themes/THEME NAME/block/header.html.
    Add the following javascript after '<{head}>'

    <script type="text/javascript">

    window.addEvent('domready', function() {

    var fa=$('footer_remove').getElements('a[href^=]');

    fa.setStyle('display', 'none');

    var fb=fa.getNext('span');

    fb.setStyle('display', 'none');});




No comments:

My photo
London, United Kingdom

Facebook & Twitter