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: Commerce Dual Currency

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed:2009-10-07T19:26:33
Classification:commercedualcurrency
Keywords:commerce, dual, currency
Author:Christian Bernet
Email:christian.bernet@bernetimux.ch
Info 4:
Language:en

img-1 img-2 EXT: Commerce Dual Currency - commercedualcurrency

EXT: Commerce Dual Currency

Extension Key: commercedualcurrency

Language: en

Keywords: commerce, dual, currency

Copyright 2000-2008, Christian Bernet, <christian.bernet@bernetimux.ch>

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: Commerce Dual Currency 1

`Sponsors 1 <#1.1.Sponsors|outline>`_

Introduction 2

What does it do? 2

Screenshots 2

`Users manual 3 <#2.1.Users%20manual|outline>`_

`Administration 3 <#2.2.Administration|outline>`_

`Configuration 3 <#2.3.Configuration|outline>`_

Reference 3

`Tutorial 4 <#2.4.Tutorial|outline>`_

`Known problems 4 <#2.5.Known%20problems|outline>`_

`To-Do list 4 <#2.6.To-Do%20list|outline>`_

`ChangeLog 4 <#2.7.ChangeLog|outline>`_

Sponsors

Development: BERNETimux.ch

Introduction

((generated))

What does it do?

Displays a second currency in the commerce shop and calculates a price for a foreign currency with a statc factor.

The foreign currency price will be round in 10 cents steppes.

Screenshots

((generated))
product view

img-3

The extension is running on http://www.bernetverlag.ch.

shopping card view

img-4

The extension is running on http://www.bernetverlag.ch.

Users manual

No user manual needed.

Administration

You can change the static factor in the typoscript constants.

plugin.tx_commercedualcurrency {
     factor = 0.7
}

Configuration

Reference

Possible subsections: Reference (TypoScript)

factor

Property

factor

Data type

double

Description

Wraps the whole item

Default

1.7

[plugin.tx_commercedualcurrency]

((generated))
Example typoscript
# in typo script constants
plugin.tx_commerce_lib {
   currency = CHF
   currencyId = 31
}
# E is for the foreign currency, don't use another key
[globalVar = GP:C = E]
   plugin.tx_commerce_lib {
      currency = EUR
      currencyId = 49
   }
[global]



# in typo script setup
plugin.tx_commercedualcurrency {
     factor = 0.7
}



# so that the selected currency will be rest
config.linkVars = C





# currency navigation
lib.currencySelector = COA
lib.currencySelector {
        10 = TEXT
        10.value = CHF
        10.typolink = 1
        10.typolink {
                parameter.data = TSFE:id
                additionalParams = &C=
                addQueryString = 1
                addQueryString.exclude = C
                useCacheHash = 1
        }
        10.wrap = <span class="currencyNavigationAct">|</span>&nbsp;&nbsp;

        20 < .10
        20.value = EUR
        20.typolink.additionalParams = &C=E
        20.wrap = <span class="currencyNavigation">|</span>&nbsp;&nbsp;
}

[globalVar = GP:C = E]
lib.currencySelector {
        10.wrap = <span class="currencyNavigation">|</span>&nbsp;&nbsp;
        20.wrap = <span class="currencyNavigationAct">|</span>&nbsp;&nbsp;
}
[global]

Tutorial

Install the extension in the Extension Manger

Add the static typo script (commercedualcurrency)

Add the typo script like the example

Known problems

No problems known.

To-Do list

Nothing known.

ChangeLog

Version 0.1, initial version

Version 0.2, documentation added, currency change in basket fixed

4