ibexa

Path

ez publish / technical manual / 4.x / reference / datatypes / multi-price


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

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 3:10 pm)

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


Comments

There are no comments.