Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: validity period  (Read 5909 times)

Offline hvashwath

  • Newbie
  • *
  • Posts: 2
  • Karma: +1/-0
    • View Profile
validity period
« on: September 04, 2013, 08:52:59 AM »
I want to know how to add different validity period for different quantity ranges and to be shown in the block.
Quantity price per item validity period
10           $10                     30 days
20            $8                       45 days
« Last Edit: September 04, 2013, 08:54:58 AM by hvashwath »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +299/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: validity period
« Reply #1 on: September 04, 2013, 10:23:22 AM »
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

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help


Powered by SMFPacks Social Login Mod