mhauri/mhauri_sample-order

Povides a solution to order a free sample of product through the normal checkout process, configured by a custom attribute.

v1.0.5 2015-04-01 11:07 UTC

This package is auto-updated.

Last update: 2024-04-16 02:10:22 UTC


README

This is my first free Magento extension who provides a solution to order a free sample through the normal checkout pro,,cess of any product in the catalog, configured by a custom attribute.

It doesn’t provide frontend adaptions. To make it work just add a link like /sampleorder/add/product/id/{product_id} in your template file or use the following example instead:

<?php if ($this->helper('sampleorder')->isSampleOrderAllowed($_product)) : ?>
<?php $_sampleorderUrl = $this->helper('sampleorder')->getAddUrl($_product); ?>
    <a href="<?php echo $_sampleorderUrl ?>" class="link-sampleorder"><?php echo $this->helper('sampleorder')->__('Sample Order') ?></a>
<?php endif; ?>

Donation

This extension is absolutely free to use, but if you like it I would appreciate a small donation.

PayPayl donate button

Changelog

  • 1.0.5

    • Several bugfixes
    • CE 1.9 compatible
    • Fix controller filename
  • 1.0.4

    • Add german translations
    • update attribute from type select to type boolean
    • PHP Coding Standards