This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title><%= appname %></title> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# OS to install on VM | |
config.vm.box = "ubuntu/trusty64" | |
# IP to access VM | |
config.vm.network "private_network", ip: "192.168.33.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update repository | |
config.vm.provision "shell", inline: "sudo apt-get update" | |
# Install apache | |
config.vm.provision "shell", inline: "sudo apt-get install -qq apache2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Edit these | |
hostname = "vagrant.dev" | |
server_ip = "192.168.33.10" | |
mysql_root_password = "root" | |
Vagrant.configure(2) do |config| | |
# OS to install on VM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrantfile: | |
target: local | |
vm: | |
box: puphpet/ubuntu1404-x64 | |
box_url: puphpet/ubuntu1404-x64 | |
hostname: vagrant.dev | |
memory: '768' | |
cpus: '1' | |
chosen_provider: virtualbox | |
network: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<sections> | |
<cataloginventory> | |
<groups> | |
<options> | |
<fields> | |
<min_total_qty translate="label"> | |
<label>Minimum Qty Allowed in Shopping Cart</label> | |
<frontend_model>cataloginventory/adminhtml_form_field_minsaleqty</frontend_model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Jvs_MinTotalQty> | |
<version>1.0.0</version> | |
</Jvs_MinTotalQty> | |
</modules> | |
<global> | |
<models> | |
<jvs_mintotalqty> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Jvs_MinTotalQty_Model_Observer | |
{ | |
public function checkTotalQtyBeforeCheckout(Varien_Event_Observer $observer) | |
{ | |
$quote = $observer->getDataObject(); | |
$customer = Mage::helper('customer')->getCustomer(); | |
// If the minimun total quantity is not met | |
// redirect to cart page with error message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Jvs_MinTotalQty_Helper_Data extends Mage_CatalogInventory_Helper_Minsaleqty | |
{ | |
const XML_PATH_MIN_TOTAL_QTY = 'cataloginventory/options/min_total_qty'; | |
/** | |
* Retrieve min_total_qty value from config | |
* | |
* @param int $customerGroupId | |
* @param mixed $store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Jvs_MinTotalQty> | |
<active>true</active> | |
<codePool>community</codePool> | |
</Jvs_MinTotalQty> | |
<depends> | |
<Mage_CatalogInventory/> | |
</depends> |
OlderNewer