DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: GSA Admin

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Rainer Kuhn
Changed:2009-12-10T17:45:09.930000000
Author:Rainer Kuhn
Email:t3extensions@punkt.de
Info 3:
Info 4:

EXT: GSA Admin

Extension Key: pt_gsaadmin

Copyright 2007-2009, Rainer Kuhn, Fabrizio Branca <t3extensions@punkt.de>

Extension maintaining transfered to punkt.de GmbH<t3extensions@punkt.de> from 2010 on.

Manual revised for pt_gsaadmin version 0.1.0, 2009-12-10

Extension development sponsored by punkt.de GmbH ( `http://punkt.de/ <http://punkt.de/>`_ )

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

EXT: GSA Admin 1

Introduction 1

What does it do? 1

Credits and history 2

Screenshots 2

Users manual 3

The Articles module 3

The Dispatch Cost module 4

The Tax Rates module 4

Administration 5

System requirements 5

Installation recommendations 5

Installation and Extension Manager Settings 5

Configuration 6

Extension Configuration in Constant Editor 6

Known problems 7

To-Do list 7

Changelog 8

Introduction

What does it do?

GSA Admin provides a bunch of TYPO3 backend administration interfaces for data handled by GSA Shop (ext. pt_gsashop) or other extensions of the “General Shop Applications” (GSA) extension family. Furthermore some other GSA extensions hook into GSA Admin to provide their functionality in TYPO3's backend.

GSA Admin is intended to be used for the GSA Shop TYPO3 standalone version (without the ERP system GSA Shop is able to interact with). GSA Admin's tax rate module must not be used in combination with the ERP system currently (see chapter “Known Problems” below)!

GSA Admin is already in use for some production environment websites, e.g. http://www.klickbilderbox.de , http://www.vth.de . and http://www.stn- international.de/workshops.html .

The extension is still under development and not all features have been implemented completely! Don't expect all APIs and templates staying unchanged in future versions!

This manual is just a short introduction to GSA Admin and may be extended in upcoming versions.

Credits and history

Credits go to punkt.de GmbH ( http://punkt.de/ ) for sponsoring the extension development, toFabrizio Branca for support and addition of several improvements of this extension's functionality from 2007 to 2008 and to Martin Alker for creating the extension's backend icons.

The original author of GSA Admin, Rainer Kuhn, transfers the further development of GSA Admin and all GSA extensions to punkt.de GmbH ( http://punkt.de/ ) at the end of 2009, since he meets new challenges from 2010 on. Please contact the email address “t3extensions<at>punkt.de” for any questions about GSA Admin.

Screenshots

img-1 Screenshot of the Articles module's list view

Users manual

After correct installation and configuration of the extension (see chapters “Administration” and “Configuration” below), the extension offers a new backend module section “ GSA Admin” in the TYPO3 backend. If this section does not appear directly after installation, you have to clear TYPO3's conf cache and reload the backend in your browser.

Within the new section, currently there three new backend modules available: “Articles”, Dispatch cost” and “Tax rates”.

The Articles module

All available articles are listed in the Article module's list view (see screenshot at chapter “Screenshots” above). To enter a new article or to edit/delete an existing article please use the appropriate TYPO3 backend button.

To enter a new article or edit an existing article the module offers a complex form to enter the article's basic properties, scale prices, images and texts. There are only a few fields required (others are optional), and these are marked with a red star.

img-2 Screenshot of the Articles module's edit form

In the field “Web Address” you can define the type of linking to an article's detail page by choosing from the following options:

  • leave field blank (default): link to the default article single view page of GSA Shop (requires articleSingleViewPage config in pt_gsashop)
  • enter a TYPO3 PID or alias for an individual article detail page
  • enter an external URL
  • enter -1 if you do not want the article to be linked to any detail page

Please note: if you want to enter fixed costs (= one-time article basic cost independently of ordered article quantity) in the “Calculation” section, these price always have to be entered as net prices (excluding tax), independently of the “Gross prices” checkbox in the “Article master data” section.

The Dispatch Cost module

This modules offers the possibility to enter different dispatch cost types. To switch between entering a new record or editing an existing one please use the selectorbox at the top right of the screen.

Every dispatch cost type can be splitted into 4 cost components with individual allowances. Dispatch costs currently have to be entered once for the gross version and once for the net version of each dispatch cost type due the the structure of the underlying ERP system data GSA Shop is based on.(this may be changed in future versions).

img-3 Screenshot of the dispatch cost module's edit form

Do not forget to adjust your dispatch cost type names with the configuration done in GSA Shop's Constant Editor (category “PT_GSASHOP::GSA SETTING”, “GSA dispatch *” options).

The Tax Rates module

This module s a temporary solution to enter tax rates and must not be used in combination with the ERP system (please refer to chapter “Known problems” below). The module can be disabled in GSA Admin's Extension Manager configuration.

To switch between entering a new record or editing an existing one please use the selectorbox at the top right of the screen.

Tax rate types (e.g. “full tax”, “reduced tax”) are grouped with tax codes from '00' to '19'. Each tax code may have several tax rate records starting from different dates. Please note that a tax code description entered for one tax rate will be used for all tax rates belonging to the same tax code!

img-4 Screenshot of the tax rates module's edit form

Administration

System requirements

Since the installation of GSA Admin is not trivial and requires additional server modules and databases, this should be done by an administrator or someone with the appropriate technical background! These are the current requirements to install and run GSA Admin:

  • PHP 5.1 or higher
  • TYPO3 4.1 or higher
  • PEAR HTML_QuickForm: this PEAR module has to be installed on your server to run pt_gsaadmin (please refer to http://pear.php.net/package/HTML_QuickForm and http://pear.php.net/manual/en/installation.php for details). Alternatively you may use the TYPO3 extension “PEAR Manager” (pear) to install this package ( http://typo3.org/extensions/repository/view/pear/current/info/ ). Independent of the way to install the HTML_Quickform package, the path to the PEAR main directory on your server must be contained in the PHP search patch finally (since the package is included using “HTML/QuickForm.php” include statements in pt_gsaadmin's classes).
  • A valid MySQL GSA database - please refer to the manuals of the extension pt_gsashop ( http://typo3.org/documentation/document- library/extension-manuals/pt_gsashop/current/ ) and pt_gsasocket ( http://typo3.org/documentation/document-library/extension- manuals/pt_gsasocket/current/ ) for details
  • TYPO3 Extensions (the version numbers of the currently required extension versions are regulary updated under 'constraints'->'depends' in the ext_emconf.php file of pt_gsaadmin):
  • 'smarty':TYPO3 integration for Smarty templating framework (see http://www.smarty.net/ ).
  • 'jquery'':TYPO3 integration for the jQuery Javascript library (see http://jquery.com/ ). This extension requires the 'jsmanager' extension to be installed before.
  • 'pt_tools'':A PHP5 toolbox and library for extensions.
  • 'pt_gsasocket'':A socket for accessing the GSA data layer (needed for all extensions of the pt_gsa* extension family). This extension has to be configured in Ext. Manager to enable access to the GSA database, please refer to that extension's manual.
  • 'pt_gsashop'':GSA Shop is the core of the GSA extension family and provides libraries used by GSA Admin.

Installation recommendations

To run GSA Shop with GSA Admin as a standalone installation without the ERP, the following extension is recommended in its particular up- to-date version:

'pt_gsaminidb':A minimal MySQL database to run the General Shop Applications (GSA) extensions as a TYPO3 standalone version. The extension provides an SQL script to import to your MySQL database server, please refer to that extension's manual.

Installation and Extension Manager Settings

Install the extension in TYPO3's extension manager and follow the instructions given there. After having installed the extension itself, you have to include the static extension template “GSA Shop: Admin interface (pt\_gsaadmin)” into your appropriate Typoscript template (it is recommended to use the same TS template where you've included the main shop static template “GSA Shop (pt_gsashop)”. The PID of the page/sysfolder, where you are using this template, has to be entered to the “TS configuration PID” configuration field in the Extension Manager (see below).

Please note : if your Typoscript template is stored in a sysfolder, you don't have to set the PID of the sysfolder there, but the PID of the page where the template is included/used!

Now the extension'sbasic settings have to be configured in TYPO3's Extension Manager. The available options are listed here:

IMPORTANT: The tax rate module must not be used in combination with the ERP system, please disable this module if you want to use the ERP system (since both do currently not work together due to some bugs of the ERP system concerning the tax data storage – this leads to ERP software crashes, overwritten DB records etc.)!


a

a

TS configuration PID

b

[tsConfigurationPid]

a

PID of the page where to find the main typoscript configuration of GSA Admin (the page where you've integrated the static template of GSA Admin). Note: if your Typoscript template is stored in a sysfolder, you don't have to set the PID of the sysfolder here, but the PID of the page where the template is included/used!

Default: 1

a

Enabled tax rate module

b

[enableTaxRatesModule]

a

Flag whether the 'Tax Rates' backend module should be displayed/used. IMPORTANT: Do NOT use this module in combination with the ERP system since both do currently not work together (leads to ERP software crashes, overwritten DB records etc.)! If you use the ERP with the GSA Shop extensions, you should disable this module and administrate your tax rates with the ERP software.

Default: 1

Configuration

Extension Configuration in Constant Editor

The extension can be adapted to your individual needs by TypoScript respective by using TYPO3's Constant editor. The options are labeled in Constant Editor and should be self-explaining.

Category: PT_GSAADMIN
Article list display template

a

Article list display template

b

[config.tx_ptgsaadmin.templateArticleListViewLabel]

Template string for the displayed properties of articles in the list

a

Template string for the displayed properties of articles in the list view of the 'Articles' module. Use the pipe symbol '|' to separate columns.

Default: ###ARTNO###|[###ID###]|###MATCH1###

Article list label template

a

Article list label template

b

[config.tx_ptgsaadmin.templateArticleListViewTitle]

Template string for the label of articles in the table header cells in

a

Template string for the label of articles in the table header cells in the list view of the 'Articles' module. Use the pipe symbol '|' to separate columns. LLLs are supported here for multilanguage labels.

Default: LLL:EXT:pt_gsaadmin/mod_articles/locallang.xml:artForm_artNo|ID|LLL:EXT:pt_gsaadmin/mod_articles/locallang.xml:artForm_ match1

Articles per page

a

Articles per page

b

[config.tx_ptgsaadmin.articlesPerPage]

Amount of articles displayed at once on a page of the article list of

a

Amount of articles displayed at once on a page of the article list of the 'Articles' module.

Range: 0 -

Default: 20

Known problems

  • The extension is still under development and not all features have been implemented completely! Don't expect all APIs and templates staying unchanged in future versions!
  • The Tax Rates module is a temporary implementation and must not be used in combination with the ERP system and has to be disabled in the Extension manager if you want to use the ERP system (see chapter “Extension Configuration in the Extension Manager” above). This is due to a currently very buggy implementation of the tax rate storage of the ERP system and will hopefully be solved in future versions. Using both the ERP system and GSA Admin together leads to ERP software crashes, overwritten DB records of GSA Admin entries, non-used tax rate descriptions etc.!
  • The Articles module currently flickers for a moment after opening the article form due to Javascript effects – this should be solved in one of the upcoming versions of the extension

To-Do list

  • adapt presentation of Dispatch Cost module and Tax Rate module to TYPO3 default layout similar to Articles module
  • advance and complete the existing modules for missing fields/functions
  • add an article relations interface to the Articles module
  • re-implementation of the Tax Rates module after getting a new bugfixed and cleaned-up version of the ERP system
  • add configurable naming labels for dispatch cost components
  • add additional modules

Changelog

Note: Changes marked as “**IMPORTANT** ” contain changes of the default behaviour or the dependencies – this may require user action when updating the extension!

((generated))

v0.1.0
  • updated extension dependencies, updated this manual to the current state of things
  • changed extension state to 'beta' after successful usage in some production environment websites
v0.0.8

adaptation for new optional "2-in-1" database concept (see extension manuals of pt_gsaminidb and pt_gsasocket). **IMPORTANT** : this requires the extensions pt_gsaminidb version 0.0.4 or higher, pt_gsasocket version 0.3.0 or higher, pt_gsashop version 0.14.0 or higher and pt_tools version 0.4.1 or higher

v0.0.7
  • major performance improvements (especially for the article module's list view) due to new dependency to an improved GSA Shop core version. **IMPORTANT** : this requires the extensions pt_gsashop version 0.13.0 or higher and pt_tools version 0.4.0 or higher
  • added handling of EAN numbers to the articles module(European Article Number is a barcoding standard)
  • the web address field length in articles module is configurable now via the static var tx_ptgsaadmin_module2::webAddressFieldLength (the default length is set to 40 chars due to the original ERP database restriction) - if you're not using the ERP and you need a longer field update your GSA database field definition for ARTIKEL.WEBADRESSE and set this static variable to the required length (e.g. in extTables.php)
  • changed TCA definition of tx_ptgsaadmin_virtualarticle to allow access for non-admins as well
v0.0.6
  • fixed bug with possible error message "Basic configuration for extension "pt_gsaadmin" not found!" after extension installation
  • removed the admin restrictions for all modules – they are now available for non-admin users as well
  • added new individual backend icons for all modules of GSA Admin and for articles (based on the icon concept of pt_gsashop v. 0.12.0)
  • fixed bugs in articles module when editing articles with TYPO3 4.2, added database table tx_ptgsaadmin_virtualarticle to avoid error messages - **IMPORTANT** : this requires a database update in the extension manager after updating the extension
  • fixed bug in articles module when editing articles with TYPO3 4.2
  • fixed scale prices bug in articles module
  • articles module GUI: added “net” note for fix costs, adapted “Web address” field description to changed handling of article linking (based on this field's configuration) of pt_gsashop since version 0.12.0 - see chapter “The Articles module” above and changelog of pt_gsashop for version 0.12.0 for details
  • changed sorting of dispatch costs in the appropriate modules selectorbox
  • removed TS config “articleImageStoragePid” (legacy option here, to be found in extension pt_gsashop)
  • revised this manual
v0.0.5

initial TER version

EXT: GSA Admin - 8

img-5