Version Notes
- Ajustes e melhorias.
Download this release
Release Info
| Developer | csumarketsystem |
| Extension | CsuMarketSystem_OpteMais |
| Version | 1.3.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.4 to 1.3.0
- app/code/community/CsuMarketSystem/OpteMais/Model/Order.php +0 -4
- app/code/community/CsuMarketSystem/OpteMais/Model/Product.php +54 -24
- app/code/community/CsuMarketSystem/OpteMais/Model/Source/Allattributes.php +44 -0
- app/code/community/CsuMarketSystem/OpteMais/etc/config.xml +1 -1
- app/code/community/CsuMarketSystem/OpteMais/etc/system.xml +3 -3
- package.xml +5 -5
app/code/community/CsuMarketSystem/OpteMais/Model/Order.php
CHANGED
|
@@ -190,10 +190,6 @@ class CsuMarketSystem_OpteMais_Model_Order
|
|
| 190 |
} catch (Exception $e) {
|
| 191 |
throw new Exception($e->getMessage());
|
| 192 |
}
|
| 193 |
-
|
| 194 |
-
Mage::log($customer->getId());
|
| 195 |
-
Mage::log($customer->getEmail());
|
| 196 |
-
|
| 197 |
try {
|
| 198 |
/** @var Mage_Customer_Model_Address $addressCustomer */
|
| 199 |
$addressCustomer = Mage::getModel('customer/address');
|
| 190 |
} catch (Exception $e) {
|
| 191 |
throw new Exception($e->getMessage());
|
| 192 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
try {
|
| 194 |
/** @var Mage_Customer_Model_Address $addressCustomer */
|
| 195 |
$addressCustomer = Mage::getModel('customer/address');
|
app/code/community/CsuMarketSystem/OpteMais/Model/Product.php
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
<?php
|
|
|
|
| 2 |
/**
|
| 3 |
* NOTICE OF LICENSE
|
| 4 |
*
|
|
@@ -50,7 +51,9 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 50 |
$categoryIds = implode("/", array_keys($categories));
|
| 51 |
$skus = array();
|
| 52 |
if ($p->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
|
| 53 |
-
if(!$p->getSku())
|
|
|
|
|
|
|
| 54 |
$childProducts = isset($this->_productParentChildIs[$p->getId()]) ? $this->_productParentChildIs[$p->getId()] : array();
|
| 55 |
if ($childProducts) {
|
| 56 |
$hasChangedParent = strtotime($p->getUpdatedAt()) >= $fromHours;
|
|
@@ -103,7 +106,7 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 103 |
continue;
|
| 104 |
}
|
| 105 |
$skuSpecification = $this->_getSkuSpecifications($p);
|
| 106 |
-
if (!$
|
| 107 |
continue;
|
| 108 |
}
|
| 109 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($p);
|
|
@@ -127,7 +130,7 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 127 |
'Ean' => $p->getData($eanAttribute) && $eanAttribute ? $p->getData($eanAttribute) : '',
|
| 128 |
'RefId' => $p->getData($refIdAttribute) && $refIdAttribute ? $p->getData($refIdAttribute) : '',
|
| 129 |
),
|
| 130 |
-
'EspecificacaoSku' => $
|
| 131 |
'Imagens' => $this->_getImages($p)
|
| 132 |
);
|
| 133 |
}
|
|
@@ -160,7 +163,7 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 160 |
public function getAvailabilityProducts($currentPage = 0)
|
| 161 |
{
|
| 162 |
$items = array();
|
| 163 |
-
$collection = $this->_getProductCollection($currentPage,true);
|
| 164 |
/** @var $p Mage_Catalog_Model_Product */
|
| 165 |
foreach ($collection as $p) {
|
| 166 |
if ($p->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
|
|
@@ -190,7 +193,8 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 190 |
return $result;
|
| 191 |
}
|
| 192 |
|
| 193 |
-
private function _getAvailabilityDataProducts($product)
|
|
|
|
| 194 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product);
|
| 195 |
$stockQty = intval($stockItem->getQty());
|
| 196 |
if (Mage::getStoreConfigFlag('optemais/config_product/discount_min_qty')) {
|
|
@@ -232,32 +236,36 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 232 |
|
| 233 |
/**
|
| 234 |
* @param $currentPage integer
|
| 235 |
-
* @param $onlyStock
|
| 236 |
*
|
| 237 |
* @return Mage_Catalog_Model_Resource_Product_Collection
|
| 238 |
*/
|
| 239 |
-
private function _getProductCollection($currentPage = 0, $onlyStock = false)
|
|
|
|
| 240 |
if (is_null($this->_productCollection)) {
|
| 241 |
-
$this->_prepareProductCollection($currentPage
|
| 242 |
}
|
| 243 |
return $this->_productCollection;
|
| 244 |
}
|
| 245 |
|
| 246 |
-
private function _prepareProductCollection($currentPage = 0, $onlyStock = false)
|
|
|
|
| 247 |
/** @var $collection Mage_Catalog_Model_Resource_Product_Collection */
|
| 248 |
$collection = Mage::getModel('catalog/product')->getCollection();
|
| 249 |
$collection->joinField(
|
| 250 |
'category_id', 'catalog/category_product', 'category_id',
|
| 251 |
'product_id = entity_id', null, 'inner'
|
| 252 |
);
|
| 253 |
-
if(!$onlyStock)
|
|
|
|
|
|
|
| 254 |
$collection->addAttributeToSelect('*')->addCategoryIds();
|
| 255 |
$collection->addAttributeToFilter(
|
| 256 |
'type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE,
|
| 257 |
Mage_Catalog_Model_Product_Type::TYPE_SIMPLE))
|
| 258 |
);
|
| 259 |
$collection->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED);
|
| 260 |
-
if($this->_getProductChildren()) {
|
| 261 |
$collection->addAttributeToFilter('entity_id', array('nin' => $this->_getProductChildren()));
|
| 262 |
}
|
| 263 |
if (Mage::getStoreConfigFlag('optemais/config_product/ignore_invisible')) {
|
|
@@ -290,10 +298,13 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 290 |
return $children;
|
| 291 |
}
|
| 292 |
|
| 293 |
-
private function _getParentId($childId)
|
|
|
|
| 294 |
$this->_getProductChildren();
|
| 295 |
-
foreach($this->_productParentChildIs as $parentId => $childIds) {
|
| 296 |
-
if(in_array($childId
|
|
|
|
|
|
|
| 297 |
}
|
| 298 |
return false;
|
| 299 |
}
|
|
@@ -328,7 +339,8 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 328 |
}
|
| 329 |
}
|
| 330 |
|
| 331 |
-
private function _getParentCategories(Mage_Catalog_Model_Product $product)
|
|
|
|
| 332 |
$tree = array();
|
| 333 |
$categoryCollection = $this->_getCategoryCollection();
|
| 334 |
if (!$categoryCollection) {
|
|
@@ -373,7 +385,8 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 373 |
}
|
| 374 |
|
| 375 |
|
| 376 |
-
private function _getImages(Mage_Catalog_Model_Product $product, $parentProduct = null, $useParentImages = false)
|
|
|
|
| 377 |
/** @var Mage_Catalog_Model_Product $product */
|
| 378 |
if (!$product->getMediaGallery('images')) {
|
| 379 |
$product->load('media_gallery');
|
|
@@ -386,7 +399,9 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 386 |
}
|
| 387 |
$items = array();
|
| 388 |
foreach ($images as $image) {
|
| 389 |
-
if($image['disabled'] == "1")
|
|
|
|
|
|
|
| 390 |
$items[] = array(
|
| 391 |
'ImagemUrl' => $product->getMediaConfig()->getMediaUrl($image['file']),
|
| 392 |
'ImagemNome' => basename($image['file']),
|
|
@@ -412,14 +427,27 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 412 |
return $items;
|
| 413 |
}
|
| 414 |
|
| 415 |
-
private function _getProductSpecifications(Mage_Catalog_Model_Product $product)
|
|
|
|
| 416 |
$items = array();
|
| 417 |
if ($attributes = Mage::getStoreConfig('optemais/config_attribute/product_specifications')) {
|
| 418 |
$attributes = explode(",", $attributes);
|
| 419 |
foreach ($attributes as $attributeCode) {
|
| 420 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 421 |
$attributeLabel = $product->getResource()->getAttribute($attributeCode)->getFrontend()->getLabel();
|
| 422 |
$attributeId = $product->getResource()->getAttribute($attributeCode)->getId();
|
|
|
|
| 423 |
$items[] = array(
|
| 424 |
'IdEspecificacaoProduto' => $attributeId,
|
| 425 |
'NomeEspecificacaoProduto' => $attributeLabel,
|
|
@@ -430,7 +458,8 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 430 |
return $items;
|
| 431 |
}
|
| 432 |
|
| 433 |
-
private function _getSkuSpecifications(Mage_Catalog_Model_Product $product)
|
|
|
|
| 434 |
$items = array();
|
| 435 |
$attributes = array();
|
| 436 |
if ($colorAttribute = Mage::getStoreConfig('optemais/config_attribute/attribute_product_color')) {
|
|
@@ -460,7 +489,8 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 460 |
return $items;
|
| 461 |
}
|
| 462 |
|
| 463 |
-
public function getProductBySku($sku)
|
|
|
|
| 464 |
try {
|
| 465 |
/** @var Mage_Catalog_Model_Product $product */
|
| 466 |
$product = Mage::getModel('catalog/product');
|
|
@@ -468,11 +498,11 @@ class CsuMarketSystem_OpteMais_Model_Product
|
|
| 468 |
if ($product->getId()) {
|
| 469 |
$price = $product->getPrice();
|
| 470 |
$finalPrice = $product->getFinalPrice();
|
| 471 |
-
if($useParentPrice = Mage::getStoreConfigFlag('optemais/config_product/use_parent_price')) {
|
| 472 |
-
if($parentId = $this->_getParentId($product->getId())) {
|
| 473 |
/** @var Mage_Catalog_Model_Product $parent */
|
| 474 |
$parent = Mage::getModel('catalog/product')->load($parentId);
|
| 475 |
-
if($parent->getId()) {
|
| 476 |
$price = $parent->getPrice();
|
| 477 |
$finalPrice = $parent->getFinalPrice();
|
| 478 |
}
|
| 1 |
<?php
|
| 2 |
+
|
| 3 |
/**
|
| 4 |
* NOTICE OF LICENSE
|
| 5 |
*
|
| 51 |
$categoryIds = implode("/", array_keys($categories));
|
| 52 |
$skus = array();
|
| 53 |
if ($p->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
|
| 54 |
+
if (!$p->getSku()) {
|
| 55 |
+
continue;
|
| 56 |
+
}
|
| 57 |
$childProducts = isset($this->_productParentChildIs[$p->getId()]) ? $this->_productParentChildIs[$p->getId()] : array();
|
| 58 |
if ($childProducts) {
|
| 59 |
$hasChangedParent = strtotime($p->getUpdatedAt()) >= $fromHours;
|
| 106 |
continue;
|
| 107 |
}
|
| 108 |
$skuSpecification = $this->_getSkuSpecifications($p);
|
| 109 |
+
if (!$p->getSku()) {
|
| 110 |
continue;
|
| 111 |
}
|
| 112 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($p);
|
| 130 |
'Ean' => $p->getData($eanAttribute) && $eanAttribute ? $p->getData($eanAttribute) : '',
|
| 131 |
'RefId' => $p->getData($refIdAttribute) && $refIdAttribute ? $p->getData($refIdAttribute) : '',
|
| 132 |
),
|
| 133 |
+
'EspecificacaoSku' => $skuSpecification,
|
| 134 |
'Imagens' => $this->_getImages($p)
|
| 135 |
);
|
| 136 |
}
|
| 163 |
public function getAvailabilityProducts($currentPage = 0)
|
| 164 |
{
|
| 165 |
$items = array();
|
| 166 |
+
$collection = $this->_getProductCollection($currentPage, true);
|
| 167 |
/** @var $p Mage_Catalog_Model_Product */
|
| 168 |
foreach ($collection as $p) {
|
| 169 |
if ($p->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
|
| 193 |
return $result;
|
| 194 |
}
|
| 195 |
|
| 196 |
+
private function _getAvailabilityDataProducts($product)
|
| 197 |
+
{
|
| 198 |
$stockItem = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product);
|
| 199 |
$stockQty = intval($stockItem->getQty());
|
| 200 |
if (Mage::getStoreConfigFlag('optemais/config_product/discount_min_qty')) {
|
| 236 |
|
| 237 |
/**
|
| 238 |
* @param $currentPage integer
|
| 239 |
+
* @param $onlyStock boolean
|
| 240 |
*
|
| 241 |
* @return Mage_Catalog_Model_Resource_Product_Collection
|
| 242 |
*/
|
| 243 |
+
private function _getProductCollection($currentPage = 0, $onlyStock = false)
|
| 244 |
+
{
|
| 245 |
if (is_null($this->_productCollection)) {
|
| 246 |
+
$this->_prepareProductCollection($currentPage, $onlyStock);
|
| 247 |
}
|
| 248 |
return $this->_productCollection;
|
| 249 |
}
|
| 250 |
|
| 251 |
+
private function _prepareProductCollection($currentPage = 0, $onlyStock = false)
|
| 252 |
+
{
|
| 253 |
/** @var $collection Mage_Catalog_Model_Resource_Product_Collection */
|
| 254 |
$collection = Mage::getModel('catalog/product')->getCollection();
|
| 255 |
$collection->joinField(
|
| 256 |
'category_id', 'catalog/category_product', 'category_id',
|
| 257 |
'product_id = entity_id', null, 'inner'
|
| 258 |
);
|
| 259 |
+
if (!$onlyStock) {
|
| 260 |
+
$collection->addPriceData();
|
| 261 |
+
}
|
| 262 |
$collection->addAttributeToSelect('*')->addCategoryIds();
|
| 263 |
$collection->addAttributeToFilter(
|
| 264 |
'type_id', array('in' => array(Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE,
|
| 265 |
Mage_Catalog_Model_Product_Type::TYPE_SIMPLE))
|
| 266 |
);
|
| 267 |
$collection->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED);
|
| 268 |
+
if ($this->_getProductChildren()) {
|
| 269 |
$collection->addAttributeToFilter('entity_id', array('nin' => $this->_getProductChildren()));
|
| 270 |
}
|
| 271 |
if (Mage::getStoreConfigFlag('optemais/config_product/ignore_invisible')) {
|
| 298 |
return $children;
|
| 299 |
}
|
| 300 |
|
| 301 |
+
private function _getParentId($childId)
|
| 302 |
+
{
|
| 303 |
$this->_getProductChildren();
|
| 304 |
+
foreach ($this->_productParentChildIs as $parentId => $childIds) {
|
| 305 |
+
if (in_array($childId, $childIds)) {
|
| 306 |
+
return $parentId;
|
| 307 |
+
}
|
| 308 |
}
|
| 309 |
return false;
|
| 310 |
}
|
| 339 |
}
|
| 340 |
}
|
| 341 |
|
| 342 |
+
private function _getParentCategories(Mage_Catalog_Model_Product $product)
|
| 343 |
+
{
|
| 344 |
$tree = array();
|
| 345 |
$categoryCollection = $this->_getCategoryCollection();
|
| 346 |
if (!$categoryCollection) {
|
| 385 |
}
|
| 386 |
|
| 387 |
|
| 388 |
+
private function _getImages(Mage_Catalog_Model_Product $product, $parentProduct = null, $useParentImages = false)
|
| 389 |
+
{
|
| 390 |
/** @var Mage_Catalog_Model_Product $product */
|
| 391 |
if (!$product->getMediaGallery('images')) {
|
| 392 |
$product->load('media_gallery');
|
| 399 |
}
|
| 400 |
$items = array();
|
| 401 |
foreach ($images as $image) {
|
| 402 |
+
if ($image['disabled'] == "1") {
|
| 403 |
+
continue;
|
| 404 |
+
}
|
| 405 |
$items[] = array(
|
| 406 |
'ImagemUrl' => $product->getMediaConfig()->getMediaUrl($image['file']),
|
| 407 |
'ImagemNome' => basename($image['file']),
|
| 427 |
return $items;
|
| 428 |
}
|
| 429 |
|
| 430 |
+
private function _getProductSpecifications(Mage_Catalog_Model_Product $product)
|
| 431 |
+
{
|
| 432 |
$items = array();
|
| 433 |
if ($attributes = Mage::getStoreConfig('optemais/config_attribute/product_specifications')) {
|
| 434 |
$attributes = explode(",", $attributes);
|
| 435 |
foreach ($attributes as $attributeCode) {
|
| 436 |
+
$inputType = $product->getResource()
|
| 437 |
+
->getAttribute($attributeCode)->getFrontend()->getInputType();
|
| 438 |
+
if (in_array($inputType, array('select', 'multiselect'))) {
|
| 439 |
+
$attributeValue = $product->getResource()
|
| 440 |
+
->getAttribute($attributeCode)->getSource()
|
| 441 |
+
->getOptionText($product->getData($attributeCode));
|
| 442 |
+
} else {
|
| 443 |
+
$attributeValue = $product->getResource()
|
| 444 |
+
->getAttribute($attributeCode)->getFrontend()
|
| 445 |
+
->getValue($product);
|
| 446 |
+
}
|
| 447 |
+
if($attributeValue === false) continue;
|
| 448 |
$attributeLabel = $product->getResource()->getAttribute($attributeCode)->getFrontend()->getLabel();
|
| 449 |
$attributeId = $product->getResource()->getAttribute($attributeCode)->getId();
|
| 450 |
+
if(!is_array($attributeValue)) $attributeValue = array($attributeValue);
|
| 451 |
$items[] = array(
|
| 452 |
'IdEspecificacaoProduto' => $attributeId,
|
| 453 |
'NomeEspecificacaoProduto' => $attributeLabel,
|
| 458 |
return $items;
|
| 459 |
}
|
| 460 |
|
| 461 |
+
private function _getSkuSpecifications(Mage_Catalog_Model_Product $product)
|
| 462 |
+
{
|
| 463 |
$items = array();
|
| 464 |
$attributes = array();
|
| 465 |
if ($colorAttribute = Mage::getStoreConfig('optemais/config_attribute/attribute_product_color')) {
|
| 489 |
return $items;
|
| 490 |
}
|
| 491 |
|
| 492 |
+
public function getProductBySku($sku)
|
| 493 |
+
{
|
| 494 |
try {
|
| 495 |
/** @var Mage_Catalog_Model_Product $product */
|
| 496 |
$product = Mage::getModel('catalog/product');
|
| 498 |
if ($product->getId()) {
|
| 499 |
$price = $product->getPrice();
|
| 500 |
$finalPrice = $product->getFinalPrice();
|
| 501 |
+
if ($useParentPrice = Mage::getStoreConfigFlag('optemais/config_product/use_parent_price')) {
|
| 502 |
+
if ($parentId = $this->_getParentId($product->getId())) {
|
| 503 |
/** @var Mage_Catalog_Model_Product $parent */
|
| 504 |
$parent = Mage::getModel('catalog/product')->load($parentId);
|
| 505 |
+
if ($parent->getId()) {
|
| 506 |
$price = $parent->getPrice();
|
| 507 |
$finalPrice = $parent->getFinalPrice();
|
| 508 |
}
|
app/code/community/CsuMarketSystem/OpteMais/Model/Source/Allattributes.php
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* NOTICE OF LICENSE
|
| 4 |
+
*
|
| 5 |
+
* This source file is subject to the Open Software License (OSL).
|
| 6 |
+
* It is also available through the world-wide-web at this URL:
|
| 7 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 8 |
+
*
|
| 9 |
+
* @category CsuMarketSystem
|
| 10 |
+
* @package CsuMarketSystem_OpteMais
|
| 11 |
+
* @copyright Copyright (c) 2016 CSU MarketSystem [www.csu.com.br]
|
| 12 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 13 |
+
*/
|
| 14 |
+
class CsuMarketSystem_OpteMais_Model_Source_Allattributes
|
| 15 |
+
{
|
| 16 |
+
/**
|
| 17 |
+
* Retrieves attributes
|
| 18 |
+
*
|
| 19 |
+
* @return array
|
| 20 |
+
*/
|
| 21 |
+
public function toOptionArray()
|
| 22 |
+
{
|
| 23 |
+
$attributes = Mage::getModel('catalog/product')->getResource()
|
| 24 |
+
->loadAllAttributes()
|
| 25 |
+
->getAttributesByCode();
|
| 26 |
+
|
| 27 |
+
$result = array();
|
| 28 |
+
$result[] = array(
|
| 29 |
+
'value' => '',
|
| 30 |
+
'label' => Mage::helper('adminhtml')->__('-- Please Select --')
|
| 31 |
+
);
|
| 32 |
+
foreach ($attributes as $attribute) {
|
| 33 |
+
/* @var $attribute Mage_Catalog_Model_Resource_Eav_Attribute */
|
| 34 |
+
if ($attribute->getId()) {
|
| 35 |
+
$result[] = array(
|
| 36 |
+
'value' => $attribute->getAttributeCode(),
|
| 37 |
+
'label' => $attribute->getFrontend()->getLabel(),
|
| 38 |
+
);
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
return $result;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
}
|
app/code/community/CsuMarketSystem/OpteMais/etc/config.xml
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
<config>
|
| 17 |
<modules>
|
| 18 |
<CsuMarketSystem_OpteMais>
|
| 19 |
-
<version>1.
|
| 20 |
</CsuMarketSystem_OpteMais>
|
| 21 |
</modules>
|
| 22 |
<global>
|
| 16 |
<config>
|
| 17 |
<modules>
|
| 18 |
<CsuMarketSystem_OpteMais>
|
| 19 |
+
<version>1.3.0</version>
|
| 20 |
</CsuMarketSystem_OpteMais>
|
| 21 |
</modules>
|
| 22 |
<global>
|
app/code/community/CsuMarketSystem/OpteMais/etc/system.xml
CHANGED
|
@@ -24,7 +24,7 @@
|
|
| 24 |
<show_in_website>1</show_in_website>
|
| 25 |
<show_in_store>1</show_in_store>
|
| 26 |
<groups>
|
| 27 |
-
<
|
| 28 |
<label>Instruções para Uso e Configurações</label>
|
| 29 |
<frontend_type>text</frontend_type>
|
| 30 |
<sort_order>0</sort_order>
|
|
@@ -45,7 +45,7 @@
|
|
| 45 |
<li>Produtos desativados, sem categoria ou sem informação para a composição do SKU (como cor, tamanho, etc) não serão considerados na carga;</li>
|
| 46 |
]]>
|
| 47 |
</comment>
|
| 48 |
-
</
|
| 49 |
<config>
|
| 50 |
<label>Configurações gerais</label>
|
| 51 |
<frontend_type>text</frontend_type>
|
|
@@ -225,7 +225,7 @@
|
|
| 225 |
<product_specifications translate="label,comment">
|
| 226 |
<label>Especificações do Produto</label>
|
| 227 |
<frontend_type>multiselect</frontend_type>
|
| 228 |
-
<source_model>
|
| 229 |
<sort_order>8</sort_order>
|
| 230 |
<show_in_default>1</show_in_default>
|
| 231 |
<show_in_website>1</show_in_website>
|
| 24 |
<show_in_website>1</show_in_website>
|
| 25 |
<show_in_store>1</show_in_store>
|
| 26 |
<groups>
|
| 27 |
+
<comment>
|
| 28 |
<label>Instruções para Uso e Configurações</label>
|
| 29 |
<frontend_type>text</frontend_type>
|
| 30 |
<sort_order>0</sort_order>
|
| 45 |
<li>Produtos desativados, sem categoria ou sem informação para a composição do SKU (como cor, tamanho, etc) não serão considerados na carga;</li>
|
| 46 |
]]>
|
| 47 |
</comment>
|
| 48 |
+
</comment>
|
| 49 |
<config>
|
| 50 |
<label>Configurações gerais</label>
|
| 51 |
<frontend_type>text</frontend_type>
|
| 225 |
<product_specifications translate="label,comment">
|
| 226 |
<label>Especificações do Produto</label>
|
| 227 |
<frontend_type>multiselect</frontend_type>
|
| 228 |
+
<source_model>CsuMarketSystem_OpteMais_Model_Source_Allattributes</source_model>
|
| 229 |
<sort_order>8</sort_order>
|
| 230 |
<show_in_default>1</show_in_default>
|
| 231 |
<show_in_website>1</show_in_website>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>CsuMarketSystem_OpteMais</name>
|
| 4 |
-
<version>1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,11 +10,11 @@
|
|
| 10 |
<description>Tenha sua loja totalmente integrada com o maior e mais completo Shopping de E-Commerce.
|
| 11 |

|
| 12 |
Para mais informações: www.optemais.com.br.</description>
|
| 13 |
-
<notes>-
|
| 14 |
<authors><author><name>csumarketsystem</name><user>MAG003432004</user><email>pluginoptemais@csu.com.br</email></author></authors>
|
| 15 |
-
<date>2016-
|
| 16 |
-
<time>
|
| 17 |
-
<contents><target name="magecommunity"><dir><dir name="CsuMarketSystem"><dir name="OpteMais"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Campaign"><dir name="Edit"><file name="Form.php" hash="0224ccec20310daa354451bdb885ed94"/><dir name="Tab"><file name="Form.php" hash="b6420075c95c1fac234d6693c554b1b0"/><dir name="Product"><file name="Grid.php" hash="f807064e42b11f90736d7a9dca6e2e32"/></dir></dir><file name="Tabs.php" hash="6192f47626cae96918725c265de897eb"/></dir><file name="Edit.php" hash="5fb37aa5528c5bc139bb63126367ebd8"/><file name="Grid.php" hash="88ca48431fecc2500781f49c00c91020"/><dir name="Item"><dir name="Edit"><file name="Form.php" hash="16e4a16e4462309f91ced2eabf30dcf8"/></dir></dir><file name="Item.php" hash="b4c60842f3a73b173ffb9145c178549a"/></dir><file name="Campaign.php" hash="44884ffbc6464f2d95031f45db33dc85"/><file name="Paymentmethod.php" hash="bb307881cd64c14c15e2f5f7c89fb466"/></dir><dir name="Payment"><dir name="Info"><file name="Modelc.php" hash="0a84f429477de898996b0235b65c20ca"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7a1db5b05bc92cca0f1b4ce4fd3b9aec"/></dir><dir name="Model"><file name="Abstract.php" hash="bf404d2900f5da8c166905ae974344d5"/><dir name="Auth"><dir name="Adapter"><file name="Http.php" hash="849b630e8ce379aee56f967d2b65129f"/></dir></dir><dir name="Campaign"><file name="Item.php" hash="76ee48d568206a365b353b25e923ca02"/></dir><file name="Campaign.php" hash="88e6b37ee7710e604900ef7e7b33b4da"/><dir name="Estimate"><file name="Rate.php" hash="7ab5fc907916144492899e0a526a29ae"/></dir><file name="Observer.php" hash="d40e07a79f07a1d0617ea97a94ec42a6"/><file name="Order.php" hash="
|
| 18 |
<compatible/>
|
| 19 |
<dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
|
| 20 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>CsuMarketSystem_OpteMais</name>
|
| 4 |
+
<version>1.3.0</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Tenha sua loja totalmente integrada com o maior e mais completo Shopping de E-Commerce.
|
| 11 |

|
| 12 |
Para mais informações: www.optemais.com.br.</description>
|
| 13 |
+
<notes>- Ajustes e melhorias.</notes>
|
| 14 |
<authors><author><name>csumarketsystem</name><user>MAG003432004</user><email>pluginoptemais@csu.com.br</email></author></authors>
|
| 15 |
+
<date>2016-09-23</date>
|
| 16 |
+
<time>15:15:26</time>
|
| 17 |
+
<contents><target name="magecommunity"><dir><dir name="CsuMarketSystem"><dir name="OpteMais"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Campaign"><dir name="Edit"><file name="Form.php" hash="0224ccec20310daa354451bdb885ed94"/><dir name="Tab"><file name="Form.php" hash="b6420075c95c1fac234d6693c554b1b0"/><dir name="Product"><file name="Grid.php" hash="f807064e42b11f90736d7a9dca6e2e32"/></dir></dir><file name="Tabs.php" hash="6192f47626cae96918725c265de897eb"/></dir><file name="Edit.php" hash="5fb37aa5528c5bc139bb63126367ebd8"/><file name="Grid.php" hash="88ca48431fecc2500781f49c00c91020"/><dir name="Item"><dir name="Edit"><file name="Form.php" hash="16e4a16e4462309f91ced2eabf30dcf8"/></dir></dir><file name="Item.php" hash="b4c60842f3a73b173ffb9145c178549a"/></dir><file name="Campaign.php" hash="44884ffbc6464f2d95031f45db33dc85"/><file name="Paymentmethod.php" hash="bb307881cd64c14c15e2f5f7c89fb466"/></dir><dir name="Payment"><dir name="Info"><file name="Modelc.php" hash="0a84f429477de898996b0235b65c20ca"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7a1db5b05bc92cca0f1b4ce4fd3b9aec"/></dir><dir name="Model"><file name="Abstract.php" hash="bf404d2900f5da8c166905ae974344d5"/><dir name="Auth"><dir name="Adapter"><file name="Http.php" hash="849b630e8ce379aee56f967d2b65129f"/></dir></dir><dir name="Campaign"><file name="Item.php" hash="76ee48d568206a365b353b25e923ca02"/></dir><file name="Campaign.php" hash="88e6b37ee7710e604900ef7e7b33b4da"/><dir name="Estimate"><file name="Rate.php" hash="7ab5fc907916144492899e0a526a29ae"/></dir><file name="Observer.php" hash="d40e07a79f07a1d0617ea97a94ec42a6"/><file name="Order.php" hash="9357ef2cb3c3494ac0e38670e4fd0cb8"/><dir name="Payment"><file name="Modelc.php" hash="112fb964895c98495a5a88b580b2720e"/></dir><file name="Product.php" hash="ace237b15c9bca55b14db171cb47317f"/><dir name="Resource"><dir name="Campaign"><file name="Collection.php" hash="e795201d0f518e5e231a69ed4b4016a4"/><dir name="Item"><file name="Collection.php" hash="4e37c2359c649fd9d8a64df7b1ff6915"/></dir><file name="Item.php" hash="8dbba236eda0e15f01b53df639594f63"/></dir><file name="Campaign.php" hash="8d92b66c14476101b684d3bf2f19d985"/></dir><file name="Response.php" hash="46c92e2fde679ce9c68a089143ce9d55"/><file name="Shipping.php" hash="5a3a24a9cb3a76b62ec8b2ca8b4e2be6"/><dir name="Source"><file name="Allattributes.php" hash="635dd51a08d4bf1793b08dfd337bfc5a"/><file name="Attributes.php" hash="a81b2d8547f98268942f9aa5579270b6"/><dir name="Campaign"><file name="Actions.php" hash="be6831dec28e0eac7681fc0cb08cf5bc"/><file name="Statuses.php" hash="e614d614d0a49086693f2a2c28e75158"/></dir><dir name="Customer"><file name="Attributes.php" hash="492032dbe0f81c25d712a50ae123f52d"/></dir><dir name="Select"><file name="Attributes.php" hash="e0761b838ed646a96cc1e7cb80f4fdf0"/></dir><dir name="Shipping"><file name="Pricetype.php" hash="4580b8399fddcad4d6d9a6af9f5a5314"/></dir><file name="Shippingmethods.php" hash="b339f7c3f90f15a8b95f4d3b5d2ecb2c"/><file name="Stores.php" hash="6768255eaacb89d9c72ee8e0e3a232a8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Optemais"><file name="CampaignController.php" hash="7c2a76bb67fe4238a47e3fc0de5501bd"/></dir></dir><dir name="Api"><file name="OrderController.php" hash="ede2f74890e94f8ee15aa34c9347e5ce"/><file name="ProductController.php" hash="f3c88c8f09d6be7df71af47025e1b4ee"/><file name="ShippingController.php" hash="e78e99c63e183872aca0e7b48f590b14"/></dir><file name="ApiController.php" hash="7893369fc96e4c9ebab1048dc49d9241"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5b9452d590d86a1f072b47f772c2d1ff"/><file name="config.xml" hash="fbfd1ecdc663a6499a5adfa4d0a2b09f"/><file name="system.xml" hash="e9996ff7ba593b6d2c73b7ee3335ac15"/></dir><dir name="sql"><dir name="optemais_setup"><file name="mysql4-install-1.0.0.php" hash="319a1b52745b3c20622346e197854842"/><file name="mysql4-upgrade-1.0.0-1.1.0.php" hash="79f1694a928ea66c85aef99d443fe06c"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="optemais"><dir><dir name="payment"><dir name="info"><file name="modelc.phtml" hash="6c2e5bb34b9ae9c97c291fa3bb9c759f"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="CsuMarketSystem_OpteMais.xml" hash="cf6ea247e3b860f2dac4758ac643a767"/></dir></dir></target></contents>
|
| 18 |
<compatible/>
|
| 19 |
<dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
|
| 20 |
</package>
|
