AbanteCart Development > Customization help

validity period

(1/1)

hvashwath:
I want to know how to add different validity period for different quantity ranges and to be shown in the block.
Example
Quantity price per item validity period
10           $10                     30 days
20            $8                       45 days

abantecart:
From what I understand you need instructions how to program a new block in the system.

Basically you need to create following components for the block.

1. Create controller in storefront/controller/blocks/[new_name.php]
2. Create model to get  data from database (You can look for existing models to load needed data)
3. Create template for the block

Last step to load block details into database and add it in layout to desired page(s)

You can learn more about programming blocks in developer'd docs
http://www.abantecart.com/document_wiki/index.php/Developing_Templates_as_Extensions


Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod