This file contains hidden or 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 | |
//Assuming your product is already loaded | |
$allOptions = $product->getProductOptions(); | |
foreach($allOptions as $option){ | |
echo $option['label'] . ' - ' $option['value'] | |
} |
This file contains hidden or 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 | |
require_once 'app/Mage.php'; | |
umask(0); | |
Mage::app(); | |
//Test Variables | |
$item['sku'] = 'Avent-Soothie-AD-SCF190/01'; | |
$item['qty'] = 2; | |
$orderIncrementId = '100003301'; | |
This file contains hidden or 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
# | |
# Cronjobs for amssusa | |
# | |
10 05 * * * php /srv/www/amssusa.com/public_html/shell/indexer.php reindexall | |
10 05 * * * php /srv/www/amssusa.com/public_html/cron.php | |
# | |
# Cronjobs for combatoptical | |
# | |
40 05 * * * php /srv/www/combatoptical.com/public_html/shell/indexer.php reindexall | |
40 05 * * * php /srv/www/combatoptical.com/public_html/cron.php |
This file contains hidden or 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 | |
/** | |
* Edit Order Items. | |
* | |
* @param $orderIncrementId | |
* @param $orderItems | |
* @param $comment | |
* @return string | |
*/ |
This file contains hidden or 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 | |
/** | |
* Customerreviewimport.php | |
* CommerceExtensions @ InterSEC Solutions LLC. | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the EULA | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: |
This file contains hidden or 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 | |
public function checkout_cart_update_items_before($observer) | |
{ | |
$event = $observer->getEvent(); | |
$products = $event->getInfo(); | |
$customer = Mage::getSingleton('customer/session'); | |
$items = $observer->getCart()->getQuote(); | |
foreach($products as $key => $value){ | |
$product = $items->getItemById($key); |
This file contains hidden or 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 | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: amacgregor | |
* Date: 10/21/11 | |
* Time: 12:38 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
require_once 'app/Mage.php'; |
This file contains hidden or 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
INSERT INTO `eav_attribute` VALUES(132, 3, 'include_in_left_menu', NULL, NULL, 'int', NULL, NULL, 'select', 'Include in Left Navigation Menu', NULL, 'eav/entity_attribute_source_boolean', 0, 0, '1', 0, NULL); | |
<?php | |
$parentid = 3; //Parent category ID | |
$parentCat = Mage::getModel('catalog/category')->load($parentid); | |
$childCategories = explode(',',$parentCat->getChildren()); //Child category IDs separated by commas | |
?> |
This file contains hidden or 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
Crow.controllers :sites do | |
get :index do | |
@sites = Site.all(:order => 'name') | |
render 'sites/index' | |
end | |
get :show, :with => :id do | |
@site = Site.get(params[:id]) | |
render 'sites/show' |
This file contains hidden or 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
rubyrep --verbose scan -c testconf in ~ | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/rubyrep-1.2.0/lib/rubyrep/table_spec_resolver.rb:91: warning: encoding option is ignored - U | |
Exception caught: Mysql::Error: query: not connected: SHOW TABLES | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:243:in `query' | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:243:in `block in execute' | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.2.5/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/activesupport-3.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/home/mbertulli/.rvm/gems/ruby-1.9.2-head/gems/activerecord-3.2.5/lib/active_record |