• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

Customizing the admin panel by hook


Author Message
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Are you familiar working with hooks?

You can create a custom plugin that extends the admin panel with new menu items. You can do this by connecting your plugins method to the adminpanel hook.

If you need to create new pages in the admin you can use the custom_script hook for that.

So to summarize:

- Create a new frontend plugin

Now edit the following file in your newly created plugin: ext_localconf.php

To add new admin panel menu items add the following hook:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['adminPanel'][] = 'tx_yourplugin_pi1->adminPanel';

To add new pages that run inside the Multishop application add the following hook:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['customPage'][] = 'tx_yourplugin_pi1->customPage';

To add new ajax pages that run inside the Multishop application add the following hook:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['customAjaxPage'][] = 'tx_yourplugin_pi1->customAjaxPage';

When linking to your custom pages use the following link structure:

mslib_fe::typolink($this->shop_pid,'&tx_multishop_pi1[page_section]=custom_page&tx_yourplugin[page_section]=your_wonderful_page');

For ajax pages it's:

mslib_fe::typolink($this->shop_pid.',2002','&tx_multishop_pi1[page_section]=custom_page&tx_yourplugin[page_section]=your_wonderful_page');

This way you can customize Multishop further to your needs, but without adjusting the Multishop code itself.
Written on: 08. 01. 2012 [11:12]