Version Notes
Newer PHP versions support
Download this release
Release Info
| Developer | PICT |
| Extension | pict |
| Version | 1.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.0 to 1.2.1
- app/code/community/Pict/FeedBuilder/Helper/Data.php +0 -6
- app/code/community/Pict/FeedBuilder/Model/.FeedBuilder.php.swp +0 -0
- app/code/community/Pict/FeedBuilder/Model/FeedBuilder.php +0 -271
- app/code/community/Pict/FeedBuilder/controllers/IndexController.php +0 -24
- app/code/community/Pict/FeedBuilder/etc/adminhtml.xml +0 -23
- app/code/community/Pict/FeedBuilder/etc/config.xml +0 -61
- app/code/community/Pict/FeedBuilder/etc/system.xml +0 -124
- app/etc/modules/Pict_FeedBuilder.xml +0 -17
- package.xml +4 -4
app/code/community/Pict/FeedBuilder/Helper/Data.php
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class Pict_FeedBuilder_Helper_Data extends Mage_Core_Helper_Abstract
|
| 4 |
-
{
|
| 5 |
-
|
| 6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Pict/FeedBuilder/Model/.FeedBuilder.php.swp
DELETED
|
Binary file
|
app/code/community/Pict/FeedBuilder/Model/FeedBuilder.php
DELETED
|
@@ -1,271 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class Pict_FeedBuilder_Model_FeedBuilder extends Mage_Core_Model_Abstract {
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
private $fileName = "";
|
| 7 |
-
|
| 8 |
-
//http://www.edmondscommerce.co.uk/magento/encryping-data-with-magento/
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
protected function _construct() {
|
| 12 |
-
|
| 13 |
-
parent::_construct();
|
| 14 |
-
$this->_init('feedbuilder/feedBuilder');
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
public function validateUser( $password) {
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
if ($password == $this->getPassword())
|
| 21 |
-
return true;
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
return false;
|
| 25 |
-
}
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
public function getFeedFilePath() {
|
| 32 |
-
try {
|
| 33 |
-
$baseDir = Mage::getBaseDir();
|
| 34 |
-
$varDir = $baseDir . DS . 'var';
|
| 35 |
-
$pictfeedDir = $varDir . DS . 'pict_feed';
|
| 36 |
-
$file = new Varien_Io_File();
|
| 37 |
-
$file->checkAndCreateFolder($pictfeedDir);
|
| 38 |
-
$csvFileNamePrefix = Mage::getStoreConfig("pict_extensions_section1/pict_extensions_group2/csv_filename_prefix");
|
| 39 |
-
|
| 40 |
-
//$fileName = $csvFileNamePrefix . Mage::getSingleton('core/date')->date('d-m-Y_H-i-s') . '_csv.csv';
|
| 41 |
-
$fileName = $csvFileNamePrefix . '_csv.csv';
|
| 42 |
-
|
| 43 |
-
$this->setFileName($fileName);
|
| 44 |
-
|
| 45 |
-
$fileNameWithPath = $pictfeedDir . DS . $fileName;
|
| 46 |
-
$canWrite = $file->isWriteable($pictfeedDir);
|
| 47 |
-
|
| 48 |
-
if (!$canWrite) {
|
| 49 |
-
throw new Exception('Permission ISSUE please follow this link http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions');
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
return $fileNameWithPath;
|
| 56 |
-
} catch (Exception $e) {
|
| 57 |
-
// echo $e->getMessage();
|
| 58 |
-
throw new Exception('Something went wrong during creating folder' . $e->getMessage());
|
| 59 |
-
}
|
| 60 |
-
}
|
| 61 |
-
|
| 62 |
-
public function generateProductsFeed() {
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
try {
|
| 66 |
-
|
| 67 |
-
$error = false;
|
| 68 |
-
; //file generation
|
| 69 |
-
//Mage::log("generateProductsFeed:: STARTED", null, "generateProductsFeed.log");
|
| 70 |
-
$feedFilePath = $this->getFeedFilePath();
|
| 71 |
-
$outPutHeaders = array(
|
| 72 |
-
'id', //sku
|
| 73 |
-
'name',
|
| 74 |
-
'description',
|
| 75 |
-
'currency_code',
|
| 76 |
-
'price',
|
| 77 |
-
'product_url', // product image url
|
| 78 |
-
'qty',
|
| 79 |
-
'meta_title', //categoreis
|
| 80 |
-
'categories',
|
| 81 |
-
'image_link', //short desc
|
| 82 |
-
'additional_image_link',
|
| 83 |
-
|
| 84 |
-
);
|
| 85 |
-
$csvData[] = $outPutHeaders;
|
| 86 |
-
//writing headers
|
| 87 |
-
$file = fopen($feedFilePath, 'w');
|
| 88 |
-
//write headers
|
| 89 |
-
$this->writeData($file, $csvData);
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
//paging
|
| 95 |
-
$pageSize = 100;
|
| 96 |
-
$collection = Mage::getModel('catalog/product')->getCollection()
|
| 97 |
-
->addAttributeToFilter('visibility', array('neq' => 1))
|
| 98 |
-
// Ensure the product is enabled
|
| 99 |
-
->addAttributeToFilter('status', 1);
|
| 100 |
-
$productsCount = $collection->count();
|
| 101 |
-
$loopEnd = ceil($productsCount / $pageSize);
|
| 102 |
-
//loop via products
|
| 103 |
-
for ($i = 1; $i <= $loopEnd; $i++) {
|
| 104 |
-
|
| 105 |
-
$csvData = array();
|
| 106 |
-
//writing headers
|
| 107 |
-
//echo "I am in loop ";
|
| 108 |
-
$collection = Mage::getModel('catalog/product')->getCollection()
|
| 109 |
-
|
| 110 |
-
->addAttributeToSelect('sku')
|
| 111 |
-
->addAttributeToSelect('name')
|
| 112 |
-
->addAttributeToSelect('currency_code')
|
| 113 |
-
->addAttributeToSelect('price')
|
| 114 |
-
->addAttributeToSelect('short_description')
|
| 115 |
-
->addAttributeToSelect('meta_title')
|
| 116 |
-
// Ensure the product is visible
|
| 117 |
-
->addAttributeToFilter('visibility', array('neq' => 1))
|
| 118 |
-
// Ensure the product is enabled
|
| 119 |
-
->addAttributeToFilter('status', 1)
|
| 120 |
-
->addAttributeToSort('entity_id', 'desc')
|
| 121 |
-
->setPage($i, $pageSize);
|
| 122 |
-
if (Mage::helper('catalog')->isModuleEnabled('Mage_CatalogInventory')) {
|
| 123 |
-
$collection->joinField('qty', 'cataloginventory/stock_item', 'qty', 'product_id=entity_id', '{{table}}.stock_id=1', 'left');
|
| 124 |
-
}
|
| 125 |
-
|
| 126 |
-
// echo "Going to Split tht";
|
| 127 |
-
#$product_collection->getSelect()->limit(1, 1); //where $limit will be the number of results we want, $starting_from will be the index of the result set to be considered as starting point (note 0 is the index of first row)
|
| 128 |
-
// echo "<br>TOTAL NEW COUNT RESULTS : " . count($collection);
|
| 129 |
-
// echo "<br>PAGE NO : " . $i;
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
$currency_code = Mage::app()->getStore()->getCurrentCurrencyCode();
|
| 133 |
-
|
| 134 |
-
foreach ($collection->getItems() as $_product) {
|
| 135 |
-
|
| 136 |
-
$productRow = array();
|
| 137 |
-
$productRow['id'] = $_product->getSku(); //product's sku
|
| 138 |
-
$productRow['title'] = $_product->getName(); //product name
|
| 139 |
-
$productRow['description'] = $_product->getShortDescription(); //product's short description
|
| 140 |
-
$productRow['currency_code']= $currency_code;
|
| 141 |
-
$productRow['price'] = $_product->getPrice(); //product's regular Price
|
| 142 |
-
//$productRow['special_price']= $_product->getSpecialPrice(); //product's special Price
|
| 143 |
-
$productRow['link'] = $_product->getProductUrl(); //product url
|
| 144 |
-
//$productRow['image_link'] = $_product->getImageUrl(); //product's image url
|
| 145 |
-
$productRow['qty'] = $_product->getQty(); // product's QTY
|
| 146 |
-
$productRow['meta_title'] = $_product->getMetaTitle();
|
| 147 |
-
|
| 148 |
-
//render categories
|
| 149 |
-
$categories = $_product->getCategoryCollection()->addAttributeToSelect('name');
|
| 150 |
-
$categoriesNames = "";
|
| 151 |
-
foreach ($categories as $category) {
|
| 152 |
-
$categoriesNames.=$category->getName() . ";";
|
| 153 |
-
}
|
| 154 |
-
$productRow['product_type'] = $categoriesNames;
|
| 155 |
-
$galleryImages = "";
|
| 156 |
-
|
| 157 |
-
$product = Mage::getModel('catalog/product')->load($_product->getId());
|
| 158 |
-
|
| 159 |
-
$baseImage=false;
|
| 160 |
-
$baseImageUrl="";
|
| 161 |
-
foreach ($product->getMediaGalleryImages() as $image) {
|
| 162 |
-
if($baseImage==false)
|
| 163 |
-
{
|
| 164 |
-
$baseImageUrl= $image->getUrl();
|
| 165 |
-
$baseImage=true;
|
| 166 |
-
continue;
|
| 167 |
-
}
|
| 168 |
-
|
| 169 |
-
$galleryImages.=$image->getUrl(). ";";
|
| 170 |
-
}
|
| 171 |
-
$productRow['image_link'] =$baseImageUrl;
|
| 172 |
-
// $productRow['gallery'] = $galleryImages;
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
// foreach ($product->getMediaGalleryImages() as $image) {
|
| 176 |
-
|
| 177 |
-
// $galleryImages.=$image->getUrl(). ";";
|
| 178 |
-
// }
|
| 179 |
-
|
| 180 |
-
$productRow['additional_image_link'] = $galleryImages;
|
| 181 |
-
//wring products to
|
| 182 |
-
$csvData[] = $productRow;
|
| 183 |
-
$file = fopen($feedFilePath, 'a');
|
| 184 |
-
$this->writeData($file, $csvData);
|
| 185 |
-
unset($_product);
|
| 186 |
-
unset($categories);
|
| 187 |
-
unset($productRow);
|
| 188 |
-
unset($csvData);
|
| 189 |
-
|
| 190 |
-
}
|
| 191 |
-
unset($collection);
|
| 192 |
-
}
|
| 193 |
-
} catch (Exception $e) {
|
| 194 |
-
$error = true;
|
| 195 |
-
throw new Exception(('Something went wrong during product read') . $e->getMessage());
|
| 196 |
-
}
|
| 197 |
-
|
| 198 |
-
//var_dump($feed);
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
}
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
public function getPassword() {
|
| 206 |
-
return Mage::getStoreConfig("pict_extensions_section1/pict_extensions_group1/password");
|
| 207 |
-
}
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
public function getFileName() {
|
| 211 |
-
return $this->fileName;
|
| 212 |
-
}
|
| 213 |
-
|
| 214 |
-
public function setFileName($fname) {
|
| 215 |
-
$this->fileName = $fname;
|
| 216 |
-
}
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
public function writeData($file, $data) {
|
| 221 |
-
$_delimiter = Mage::getStoreConfig("pict_extensions_section1/pict_extensions_group2/feild_delim");
|
| 222 |
-
|
| 223 |
-
if (ord($_delimiter) == 92)
|
| 224 |
-
$_delimiter = "\t";
|
| 225 |
-
|
| 226 |
-
$_enclosure = Mage::getStoreConfig("pict_extensions_section1/pict_extensions_group2/field_enclosure");
|
| 227 |
-
$fh = $file; //fopen($file, 'a');
|
| 228 |
-
foreach ($data as $dataRow) {
|
| 229 |
-
$this->fputcsv($fh, $dataRow, $_delimiter, $_enclosure);
|
| 230 |
-
}
|
| 231 |
-
fclose($fh);
|
| 232 |
-
return $this;
|
| 233 |
-
}
|
| 234 |
-
|
| 235 |
-
public function fputcsv(&$handle, $fields = array(), $delimiter = ',', $enclosure = '"') {
|
| 236 |
-
$str = '';
|
| 237 |
-
$escape_char = '\\';
|
| 238 |
-
foreach ($fields as $value) {
|
| 239 |
-
if (strpos($value, $delimiter) !== false ||
|
| 240 |
-
strpos($value, $enclosure) !== false ||
|
| 241 |
-
strpos($value, "\n") !== false ||
|
| 242 |
-
strpos($value, "\r") !== false ||
|
| 243 |
-
strpos($value, "\t") !== false ||
|
| 244 |
-
strpos($value, ' ') !== false) {
|
| 245 |
-
$str2 = $enclosure;
|
| 246 |
-
$escaped = 0;
|
| 247 |
-
$len = strlen($value);
|
| 248 |
-
for ($i = 0; $i < $len; $i++) {
|
| 249 |
-
if ($value[$i] == $escape_char) {
|
| 250 |
-
$escaped = 1;
|
| 251 |
-
} else if (!$escaped && $value[$i] == $enclosure) {
|
| 252 |
-
$str2 .= $enclosure;
|
| 253 |
-
} else {
|
| 254 |
-
$escaped = 0;
|
| 255 |
-
}
|
| 256 |
-
$str2 .= $value[$i];
|
| 257 |
-
}
|
| 258 |
-
$str2 .= $enclosure;
|
| 259 |
-
$str .= $str2 . $delimiter;
|
| 260 |
-
} else {
|
| 261 |
-
$str .= $enclosure . $value . $enclosure . $delimiter;
|
| 262 |
-
}
|
| 263 |
-
}
|
| 264 |
-
$str = substr($str, 0, -1);
|
| 265 |
-
$str .= "\n";
|
| 266 |
-
return fwrite($handle, $str);
|
| 267 |
-
}
|
| 268 |
-
|
| 269 |
-
}
|
| 270 |
-
|
| 271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Pict/FeedBuilder/controllers/IndexController.php
DELETED
|
@@ -1,24 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
|
| 3 |
-
class Pict_FeedBuilder_IndexController extends Mage_Core_Controller_Front_Action {
|
| 4 |
-
|
| 5 |
-
public function IndexAction() {
|
| 6 |
-
|
| 7 |
-
//$username = $this->getRequest()->getParam('username');
|
| 8 |
-
$password = $this->getRequest()->getParam('secret');
|
| 9 |
-
$requested_file = $this->getRequest()->getParam('requested_file');
|
| 10 |
-
$isUserValidated = Mage::getModel('feedbuilder/feedBuilder')->validateUser($password);
|
| 11 |
-
//$isUserValidated=true;
|
| 12 |
-
if ($isUserValidated) {
|
| 13 |
-
///build product file
|
| 14 |
-
|
| 15 |
-
$feedBuilder = Mage::getModel('feedbuilder/feedBuilder');
|
| 16 |
-
$filePath = $feedBuilder->getFeedFilePath();
|
| 17 |
-
$feedBuilder->generateProductsFeed();
|
| 18 |
-
echo file_get_contents($filePath);
|
| 19 |
-
//$this->_prepareDownloadResponse($feedBuilder->getFileName(), file_get_contents($filePath));
|
| 20 |
-
return;
|
| 21 |
-
}
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Pict/FeedBuilder/etc/adminhtml.xml
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<acl>
|
| 4 |
-
<resources>
|
| 5 |
-
<admin>
|
| 6 |
-
<children>
|
| 7 |
-
<system>
|
| 8 |
-
<children>
|
| 9 |
-
<config>
|
| 10 |
-
<children>
|
| 11 |
-
<pict_extensions_section1 translate="title" module="feedbuilder">
|
| 12 |
-
<title>Products Feed Builder Section</title>
|
| 13 |
-
<sort_order>0</sort_order>
|
| 14 |
-
</pict_extensions_section1>
|
| 15 |
-
</children>
|
| 16 |
-
</config>
|
| 17 |
-
</children>
|
| 18 |
-
</system>
|
| 19 |
-
</children>
|
| 20 |
-
</admin>
|
| 21 |
-
</resources>
|
| 22 |
-
</acl>
|
| 23 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Pict/FeedBuilder/etc/config.xml
DELETED
|
@@ -1,61 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<modules>
|
| 4 |
-
<Pict_FeedBuilder>
|
| 5 |
-
<version>1.0.1</version>
|
| 6 |
-
</Pict_FeedBuilder>
|
| 7 |
-
</modules>
|
| 8 |
-
<frontend>
|
| 9 |
-
<routers>
|
| 10 |
-
<pict>
|
| 11 |
-
<use>standard</use>
|
| 12 |
-
<args>
|
| 13 |
-
<module>Pict_FeedBuilder</module>
|
| 14 |
-
<frontName>pict</frontName>
|
| 15 |
-
</args>
|
| 16 |
-
</pict>
|
| 17 |
-
</routers>
|
| 18 |
-
<!-- <layout>
|
| 19 |
-
<updates>
|
| 20 |
-
<pict>
|
| 21 |
-
<file>feedbuilder.xml</file>
|
| 22 |
-
</pict>
|
| 23 |
-
</updates>
|
| 24 |
-
</layout>-->
|
| 25 |
-
</frontend>
|
| 26 |
-
<global>
|
| 27 |
-
<helpers>
|
| 28 |
-
<feedbuilder>
|
| 29 |
-
<class>Pict_FeedBuilder_Helper</class>
|
| 30 |
-
</feedbuilder>
|
| 31 |
-
</helpers>
|
| 32 |
-
|
| 33 |
-
<models>
|
| 34 |
-
<feedbuilder>
|
| 35 |
-
<class>Pict_FeedBuilder_Model</class>
|
| 36 |
-
|
| 37 |
-
</feedbuilder>
|
| 38 |
-
|
| 39 |
-
</models>
|
| 40 |
-
|
| 41 |
-
</global>
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
<default>
|
| 45 |
-
<pict_extensions_section1>
|
| 46 |
-
<pict_extensions_group1>
|
| 47 |
-
<!-- <user_name>Your User Name to Build Feed By URL</user_name> -->
|
| 48 |
-
<password>pict_secret_9081</password>
|
| 49 |
-
<!-- <feed_url>www.examplesite.com/index.php/feedbuilder/?username={username}&password={password}</feed_url> -->
|
| 50 |
-
<!-- <user_email>Email Address</user_email>-->
|
| 51 |
-
<!-- <is_feed_email_send>0</is_feed_email_send> -->
|
| 52 |
-
</pict_extensions_group1>
|
| 53 |
-
<pict_extensions_group2>
|
| 54 |
-
<feild_delim>\t</feild_delim>
|
| 55 |
-
<field_enclosure>"</field_enclosure>
|
| 56 |
-
<csv_filename_prefix>pict_feed_</csv_filename_prefix>
|
| 57 |
-
|
| 58 |
-
</pict_extensions_group2>
|
| 59 |
-
</pict_extensions_section1>
|
| 60 |
-
</default>
|
| 61 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Pict/FeedBuilder/etc/system.xml
DELETED
|
@@ -1,124 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<tabs>
|
| 4 |
-
<pict_extensions_tab1 translate="label" module="feedbuilder">
|
| 5 |
-
<label>PICT Extensions</label>
|
| 6 |
-
<sort_order>6</sort_order>
|
| 7 |
-
</pict_extensions_tab1>
|
| 8 |
-
</tabs>
|
| 9 |
-
<sections>
|
| 10 |
-
<pict_extensions_section1 translate="label" module="feedbuilder">
|
| 11 |
-
<label>Products Feed Builder</label>
|
| 12 |
-
<tab>pict_extensions_tab1</tab>
|
| 13 |
-
<frontend_type>text</frontend_type>
|
| 14 |
-
<sort_order>0</sort_order>
|
| 15 |
-
<show_in_default>1</show_in_default>
|
| 16 |
-
<show_in_website>1</show_in_website>
|
| 17 |
-
<show_in_store>1</show_in_store>
|
| 18 |
-
<groups>
|
| 19 |
-
<pict_extensions_group1 translate="label">
|
| 20 |
-
<label>Products Feed Builder Settings</label>
|
| 21 |
-
<frontend_type>text</frontend_type>
|
| 22 |
-
<sort_order>0</sort_order>
|
| 23 |
-
<show_in_default>1</show_in_default>
|
| 24 |
-
<show_in_website>1</show_in_website>
|
| 25 |
-
<show_in_store>1</show_in_store>
|
| 26 |
-
<fields>
|
| 27 |
-
<!-- <user_name translate="label">
|
| 28 |
-
<label>User Name</label>
|
| 29 |
-
<frontend_type>text</frontend_type>
|
| 30 |
-
<sort_order>2</sort_order>
|
| 31 |
-
<show_in_default>1</show_in_default>
|
| 32 |
-
<show_in_website>1</show_in_website>
|
| 33 |
-
<show_in_store>1</show_in_store>
|
| 34 |
-
<comment>Feed Builder User Name</comment>
|
| 35 |
-
<validate>required-entry</validate>
|
| 36 |
-
</user_name>-->
|
| 37 |
-
<password translate="label">
|
| 38 |
-
<label>PICT Secret</label>
|
| 39 |
-
<frontend_type>text</frontend_type>
|
| 40 |
-
<sort_order>3</sort_order>
|
| 41 |
-
<show_in_default>1</show_in_default>
|
| 42 |
-
<show_in_website>1</show_in_website>
|
| 43 |
-
<show_in_store>1</show_in_store>
|
| 44 |
-
<comment>PICT Secret to build file for example http://testsite.com/index.php/pict/?secret=admin123</comment>
|
| 45 |
-
<validate>required-entry</validate>
|
| 46 |
-
</password>
|
| 47 |
-
<!-- <feed_url translate="label">
|
| 48 |
-
<label>URL</label>
|
| 49 |
-
<frontend_type>label</frontend_type>
|
| 50 |
-
<sort_order>0</sort_order>
|
| 51 |
-
<show_in_default>1</show_in_default>
|
| 52 |
-
<show_in_website>1</show_in_website>
|
| 53 |
-
<show_in_store>1</show_in_store>
|
| 54 |
-
<comment>Please Save to get the url to generate the feed</comment>
|
| 55 |
-
</feed_url>-->
|
| 56 |
-
<!-- <user_email translate="label">
|
| 57 |
-
<label>Email Address</label>
|
| 58 |
-
<frontend_type>text</frontend_type>
|
| 59 |
-
<sort_order>1</sort_order>
|
| 60 |
-
<show_in_default>1</show_in_default>
|
| 61 |
-
<show_in_website>1</show_in_website>
|
| 62 |
-
<show_in_store>1</show_in_store>
|
| 63 |
-
<comment>User Email Address</comment>
|
| 64 |
-
<validate>required-email</validate>
|
| 65 |
-
<validate>required-entry</validate>
|
| 66 |
-
</user_email>-->
|
| 67 |
-
<!-- <is_feed_email_send translate="label">
|
| 68 |
-
<label>Send Feed Link By Email</label>
|
| 69 |
-
<frontend_type>select</frontend_type>
|
| 70 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 71 |
-
<sort_order>0</sort_order>
|
| 72 |
-
<show_in_default>1</show_in_default>
|
| 73 |
-
<show_in_website>1</show_in_website>
|
| 74 |
-
<show_in_store>1</show_in_store>
|
| 75 |
-
<comment>Feed Link would be send if its enable</comment>
|
| 76 |
-
</is_feed_email_send>-->
|
| 77 |
-
</fields>
|
| 78 |
-
</pict_extensions_group1>
|
| 79 |
-
<pict_extensions_group2 translate="label">
|
| 80 |
-
<label>CSV Options</label>
|
| 81 |
-
<frontend_type>text</frontend_type>
|
| 82 |
-
<sort_order>1</sort_order>
|
| 83 |
-
<show_in_default>1</show_in_default>
|
| 84 |
-
<show_in_website>1</show_in_website>
|
| 85 |
-
<show_in_store>1</show_in_store>
|
| 86 |
-
<fields>
|
| 87 |
-
<feild_delim translate="label">
|
| 88 |
-
<label>Field Delimiter</label>
|
| 89 |
-
<frontend_type>text</frontend_type>
|
| 90 |
-
<sort_order>0</sort_order>
|
| 91 |
-
<show_in_default>1</show_in_default>
|
| 92 |
-
<show_in_website>1</show_in_website>
|
| 93 |
-
<show_in_store>1</show_in_store>
|
| 94 |
-
<comment>Field Delimiter </comment>
|
| 95 |
-
<validate>required-entry</validate>
|
| 96 |
-
</feild_delim>
|
| 97 |
-
<field_enclosure translate="label">
|
| 98 |
-
<label>Field Enclosure </label>
|
| 99 |
-
<frontend_type>text</frontend_type>
|
| 100 |
-
<sort_order>0</sort_order>
|
| 101 |
-
<show_in_default>1</show_in_default>
|
| 102 |
-
<show_in_website>1</show_in_website>
|
| 103 |
-
<show_in_store>1</show_in_store>
|
| 104 |
-
<comment>Field Enclosure </comment>
|
| 105 |
-
<validate>required-entry</validate>
|
| 106 |
-
</field_enclosure>
|
| 107 |
-
<csv_filename_prefix translate="label">
|
| 108 |
-
<label>File Name Prefix</label>
|
| 109 |
-
<frontend_type>text</frontend_type>
|
| 110 |
-
<sort_order>0</sort_order>
|
| 111 |
-
<show_in_default>1</show_in_default>
|
| 112 |
-
<show_in_website>1</show_in_website>
|
| 113 |
-
<show_in_store>1</show_in_store>
|
| 114 |
-
<comment>File Name Prefix </comment>
|
| 115 |
-
</csv_filename_prefix>
|
| 116 |
-
</fields>
|
| 117 |
-
</pict_extensions_group2>
|
| 118 |
-
</groups>
|
| 119 |
-
</pict_extensions_section1>
|
| 120 |
-
</sections>
|
| 121 |
-
</config>
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Pict_FeedBuilder.xml
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* @category Pict
|
| 5 |
-
* @package Pict_FeedBuilder
|
| 6 |
-
* @author ModuleCreator
|
| 7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 8 |
-
*/
|
| 9 |
-
-->
|
| 10 |
-
<config>
|
| 11 |
-
<modules>
|
| 12 |
-
<Pict_FeedBuilder>
|
| 13 |
-
<active>true</active>
|
| 14 |
-
<codePool>community</codePool>
|
| 15 |
-
</Pict_FeedBuilder>
|
| 16 |
-
</modules>
|
| 17 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>pict</name>
|
| 4 |
-
<version>1.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GNU General Public License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -35,8 +35,8 @@ See which photos and products are generating the most revenue and driving the mo
|
|
| 35 |
<notes>Newer PHP versions support</notes>
|
| 36 |
<authors><author><name>PICT</name><user>PICT</user><email>operations@pict.com</email></author><author><name>Sajid Unar</name><user>sajidunnar</user><email>sajidunnar@gmail.com</email></author></authors>
|
| 37 |
<date>2013-11-15</date>
|
| 38 |
-
<time>
|
| 39 |
-
<contents><target name="
|
| 40 |
<compatible/>
|
| 41 |
-
<dependencies><required><php><min>5.2.0</min><max>5.5.
|
| 42 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>pict</name>
|
| 4 |
+
<version>1.2.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>GNU General Public License</license>
|
| 7 |
<channel>community</channel>
|
| 35 |
<notes>Newer PHP versions support</notes>
|
| 36 |
<authors><author><name>PICT</name><user>PICT</user><email>operations@pict.com</email></author><author><name>Sajid Unar</name><user>sajidunnar</user><email>sajidunnar@gmail.com</email></author></authors>
|
| 37 |
<date>2013-11-15</date>
|
| 38 |
+
<time>01:12:45</time>
|
| 39 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Pict_FeedBuilder.xml" hash=""/></dir></target></contents>
|
| 40 |
<compatible/>
|
| 41 |
+
<dependencies><required><php><min>5.2.0</min><max>5.5.6</max></php></required></dependencies>
|
| 42 |
</package>
|
