Skip to content

Instantly share code, notes, and snippets.

@steve-ross
Created May 1, 2014 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steve-ross/11460746 to your computer and use it in GitHub Desktop.
Save steve-ross/11460746 to your computer and use it in GitHub Desktop.
<?php
define('__CURRENTDIR__', dirname(dirname(__FILE__)));
define('__MAGE__', str_replace('/code/local/GaugeInteractive/EbayMipIntegration', '/Mage.php', __CURRENTDIR__));
require_once(__MAGE__);
Mage::app('default');
Mage::register('isSecureArea', 1);
function test_save_model(){
$test = Mage::getModel('ebaymipintegration/inventory');
$test_data = array('productId' => $productId, 'sku' => $sku);
$test->setData($test_data);
$test -> setProductId($productId);
$test -> setSku($sku);
$test -> setParentSku($parentSku);
$test -> setOriginalPrice($originalPrice);
$test -> setSpecialPrice($specialPrice);
$test -> setQtyOrdered($qtyOrdered);
$test -> setQuantity($product_stock);
$test -> setEbayList($parentListOnEbay);
$test->save();
}
test_save_model();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment