You are now viewing the documentation of eZ Publish legacy (4.x series and the legacy "stack" in 5.x). For 5.x versions this documentation must be complemented with the latest, more current documentation available at confluence.ez.no. Happy learning!

Multi-price

Summary

Stores prices in different currencies (inc/ex VAT). [Webshop]

Properties

NameInternal nameSearchableInformation collector
Multi-price ezmultiprice Yes. No.

Description

This datatype allows the storage of prices in multiple currencies and thus makes it possible to connect content objects with the e-commerce subsystem. The e-commerce features of eZ Publish are described in the "Webshop" section of the "Concepts and basics" chapter and in the "Multi-currency" section of the "Features" chapter. The following screenshot shows the class attribute edit interface for this datatype.

Class attribute edit interface for the "Multi-price" datatype.

Class attribute edit interface for the "Multi-price" datatype.

Parameters and usage

This is a special datatype which plugs more deeply into the system. Instances of any class containing the multi-price datatype will automatically be treated as products. This datatype works with VATs in the same way as the "Price" datatype. (Please note that price and multi-price datatypes are incompatible. A content class can only contain one price attribute or one multi-price attribute.)

It is possible to set one of the predefined currencies as "default currency" on the class level so that the system will create a custom price in this currency and auto prices in all other currencies when a new object is created. Note that a custom price can be always modified or removed for each individual product / object.

Object attribute edit interface

The following screenshot shows the object attribute edit interface for this datatype.

Object attribute edit interface for the "Multi-price" datatype.

Object attribute edit interface for the "Multi-price" datatype.

Raw output

The ".content" of an ezcontentobjectattribute object using this datatype returns an ezmultiprice object.

Svitlana Shatokhina (04/05/2006 5:10 pm)

Svitlana Shatokhina (05/05/2006 3:07 pm)


Comments

There are no comments.