.. You may want to use the usual include line. Uncomment and adjust the path. .. include:: ../Includes.txt ===================== wt\_commerce\_preview ===================== :Author: Kasper Skårhøj :Created: 2002-11-01T00:32:00 :Changed: 2008-01-23T10:04:36 :Classification: Shows one of the last X tx_commerce products via random function :Author: Alexander Kellner :Email: Alexander.Kellner@einpraegsam.net :Info 3: :Info 4: .. _wt-commerce-preview: wt\_commerce\_preview ===================== Extension Key: **wt\_commerce\_preview** Copyright 2005-2008, Alexander Kellner, 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.com .. _Table-of-Contents: Table of Contents ----------------- **wt\_commerce\_preview 1** **Introduction 2** What does it do? 2 Screenshots 3 **How to use 4** **Typoscript example 5** **Available Markers 6** **Todo 7** **Changelog 8** **Additional links 9** .. _Introduction: Introduction ------------ .. _What-does-it-do: What does it do? ^^^^^^^^^^^^^^^^ This is a small extension which shows the last tx\_commerce products via random function. Alternative you can manually choose some products and a random function will show one of theese. .. _Screenshots: Screenshots ^^^^^^^^^^^ |img-1| Example Homepage: `http://www.justpowder.de `_ |img-2| .. _How-to-use: How to use ---------- - Import from online repository - Install a plugin to a new page and choose your settings via Flexform - You can enter number of products to show OR you can choose manually some products - That's all .. _Typoscript-example: Typoscript example ------------------ Alternative you can use typoscript instead of flexform Example for using this plugin on every page – using USER\_INT :: temp.product = USER_INT temp.product { userFunc = tx_wtcommercepreview_pi1->main # HTML Template Path globalconfig.template = fileadmin/ext_wtcommercepreview.html # Choose one (or more) of X products globalconfig.nuofproducts = 25 # Show X products at the same time globalconfig.nuofproducts2show = 3 # Max image width globalconfig.imagew = 80 # Max image height globalconfig.imageh = 180 # Use this, if you want to enter a special product pool globalconfig.productlist = # Like d.m.Y H:i:s (see php function date for more information) globalconfig.dateformat = } page.10.marks.MARKER < temp.product .. _Available-Markers: Available Markers ----------------- You can use new markers in the commerce html templates: .. ### BEGIN~OF~TABLE ### .. _: :: ^^ .. container:: table-row Marker :: ###TITLE### File :: pi1/template.html Description :: Product title Example output :: Super ski .. _: :: ^^ .. container:: table-row Marker :: ###DATE### File :: pi1/template.html Description :: Product create date Example output :: 12.12.2007 .. _: :: ^^ .. container:: table-row Marker :: ###UID### File :: pi1/template.html Description :: Product uid Example output :: 450 .. _: :: ^^ .. container:: table-row Marker :: ###SUBTITLE### File :: pi1/template.html Description :: Product subtitle Example output :: Carving ski .. _: :: ^^ .. container:: table-row Marker :: ###NAVTITLE### File :: pi1/template.html Description :: Navigation title of product Example output :: supercarving .. _: :: ^^ .. container:: table-row Marker :: ###DESCRIPTION### File :: pi1/template.html Description :: Product description Example output :: Description text .. _: :: ^^ .. container:: table-row Marker :: ###TEASER### File :: pi1/template.html Description :: Teaser of product description Example output :: Small desc... .. _: :: ^^ .. container:: table-row Marker :: ###CAT### File :: pi1/template.html Description :: Shows category where the product is listed Example output :: ski .. _: :: ^^ .. container:: table-row Marker :: ###MANUFACTURER### File :: pi1/template.html Description :: Product manufacturer Example output :: Atomic .. _: :: ^^ .. container:: table-row Marker :: ###ATTRIBUTE### File :: pi1/template.html Description :: Current attribute Example output :: red .. _: :: ^^ .. container:: table-row Marker :: ###LABEL_PRICE### File :: pi1/template.html Description :: Pricetext (see locallang.xml) Example output :: from .. _: :: ^^ .. container:: table-row Marker :: ###PRICE### File :: pi1/template.html Description :: Articleprice Example output :: 299,00 .. _: :: ^^ .. container:: table-row Marker :: ###PIC### File :: pi1/template.html Description :: Articlepicture Example output :: .. _: :: ^^ .. container:: table-row Marker :: ###FIXTEXT### File :: pi1/template.html Description :: Pricetext (see locallang.xml) Example output :: With VAT without shipping .. _: :: ^^ .. container:: table-row Marker :: object File :: pi1/template.html Description :: Wraps an object (text or image) with a link to the detail view Example output :: object .. ###### END~OF~TABLE ###### .. _Todo: Todo ---- Is there something to do? .. _Changelog: Changelog --------- .. _generated: ((generated)) ^^^^^^^^^^^^^ .. _First-Release-to-TER-on-25-09-2007-version-0-1-0: First Release to TER on 25.09.2007 version 0.1.0 """""""""""""""""""""""""""""""""""""""""""""""" .. _Update-on-26-09-2007-version-0-1-1: Update on 26.09.2007 version 0.1.1 """""""""""""""""""""""""""""""""" Very very small bugfix .. _Update-on-27-09-2007-version-0-1-2: Update on 27.09.2007 version 0.1.2 """""""""""""""""""""""""""""""""" Small changes in the manual .. _Update-on-03-10-2007-version-0-2-0: Update on 03.10.2007 version 0.2.0 """""""""""""""""""""""""""""""""" Attributes could be shown .. _Update-on-12-11-2007-version-0-3-0: Update on 12.11.2007 version 0.3.0 """""""""""""""""""""""""""""""""" More products can be shown at the same time (thx to Sebastian) .. _Update-on-23-01-2008-version-0-4-0: Update on 23.01.2008 version 0.4.0 """""""""""""""""""""""""""""""""" Bugfix if one product has got more than one picture .. _Additional-links: Additional links ---------------- **You can use one of the following links, to get more informations about this plugin:** - Authors homepage: `http://www.einpraegsam.net `_ - Tuning parts for your car: `http://www.wunschtacho.de `_ - Stuff for snowboarder and skier: `http://www.justpowder.de `_ Do you need help with this plugin: `http://www.typo3.net `_ |img-3| wt\_commerce\_preview - 9 .. ######CUTTER_MARK_IMAGES###### .. |img-1| image:: img-1.jpeg .. :align: left .. :border: 0 .. :height: 337 .. :id: Grafik1 .. :name: Grafik1 .. :width: 558 .. |img-2| image:: img-2.png .. :align: left .. :border: 0 .. :height: 330 .. :id: graphics1 .. :name: graphics1 .. :width: 669 .. |img-3| image:: img-3.png .. :align: left .. :border: 0 .. :height: 32 .. :id: Graphic1 .. :name: Graphic1 .. :width: 102