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.

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

Extension Key: wt_commerce_preview

Copyright 2005-2008, Alexander Kellner, <Alexander.Kellner@einpraegsam.net>

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

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

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

img-1 Example Homepage: http://www.justpowder.de

img-2

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

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

You can use new markers in the commerce html templates:

::

Marker

###TITLE###

File

pi1/template.html

Description

Product title

Example output

Super ski

::

Marker

###DATE###

File

pi1/template.html

Description

Product create date

Example output

12.12.2007

::

Marker

###UID###

File

pi1/template.html

Description

Product uid

Example output

450

::

Marker

###SUBTITLE###

File

pi1/template.html

Description

Product subtitle

Example output

Carving ski

::

Marker

###NAVTITLE###

File

pi1/template.html

Description

Navigation title of product

Example output

supercarving

::

Marker

###DESCRIPTION###

File

pi1/template.html

Description

Product description

Example output

Description text

::

Marker

###TEASER###

File

pi1/template.html

Description

Teaser of product description

Example output

Small desc...

::

Marker

###CAT###

File

pi1/template.html

Description

Shows category where the product is listed

Example output

ski

::

Marker

###MANUFACTURER###

File

pi1/template.html

Description

Product manufacturer

Example output

Atomic

::

Marker

###ATTRIBUTE###

File

pi1/template.html

Description

Current attribute

Example output

red

::

Marker

###LABEL_PRICE###

File

pi1/template.html

Description

Pricetext (see locallang.xml)

Example output

from

::

Marker

###PRICE###

File

pi1/template.html

Description

Articleprice

Example output

299,00

::

Marker

###PIC###

File

pi1/template.html

Description

Articlepicture

Example output

<img src=... />

::

Marker

###FIXTEXT###

File

pi1/template.html

Description

Pricetext (see locallang.xml)

Example output

With VAT without shipping

::

Marker

<!-- ###LINK### -->
object
<!-- ###LINK### -->

File

pi1/template.html

Description

Wraps an object (text or image) with a link to the detail view

Example output

<a href=..>object</a>

Todo

Is there something to do?

Changelog

((generated))

First Release to TER on 25.09.2007 version 0.1.0
Update on 26.09.2007 version 0.1.1

Very very small bugfix

Update on 27.09.2007 version 0.1.2

Small changes in the manual

Update on 03.10.2007 version 0.2.0

Attributes could be shown

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

Bugfix if one product has got more than one picture