This article is machine translated.
The minimum order quantity is set up as follows:
In Product Type under Prices, please enable Extended Pricing.
Then in Product under Price Settings adjust the quantity in the price scales.
You want to customize the output of a text given by Isotope in the frontend.
On GitHub, enter the word you want to change in the search box.
Copy the code line into your system/config/langconfig.php
and replace “Buy” with “Order for a fee”.
$GLOBALS['TL_LANG']['MSC']['confirmOrder'] = 'Kostenpflichtig bestellen';
For a multilingual site, the code must look like this:
if ($GLOBALS['TL_LANGUAGE'] == 'de')
{
$GLOBALS['TL_LANG']['MSC']['confirmOrder'] = 'Kostenpflichtig bestellen';
}
elseif ($GLOBALS['TL_LANGUAGE'] == 'en')
{
$GLOBALS['TL_LANG']['MSC']['confirmOrder'] = 'Order';
}
Create an attribute with the following properties:
Setting | Value | ||||||
---|---|---|---|---|---|---|---|
Name | Available | ||||||
Internal name | deliverable | ||||||
Type | Radio Button Menu | ||||||
Options Wizard |
|
Then activate the attribute in the product type.
Copy the following code into your system/config/dcaconfig.php
.
if(is_array($GLOBALS['TL_DCA']['tl_iso_product']['list']['label']['fields']))
{
if(!in_array('lieferbar',$GLOBALS['TL_DCA']['tl_iso_product']['list']['label']['fields']))
$GLOBALS['TL_DCA']['tl_iso_product']['list']['label']['fields'][] = 'lieferbar';
}
The result
Many thanks to Spooky.
Copy the following code into your system/config/dcaconfig.php
.
$GLOBALS['TL_DCA']['tl_iso_product_collection']['fields']['locked']['eval']['rgxp'] = 'datim';
Before
After
Copy the following code at the desired position into iso_reader_default.html5
.
<?php echo $this->generateAttribute('price_tiers'); ?>
There is deliberately no button for this in the backend, as actual orders should never be deleted. These will then only be marked as cancelled due to the traceability. To delete test orders before the launch, empty (SQL query TRUNCATE
) all tables in the database that begin with tl_iso_product_collection
.