Version Notes
correction compatibilité paypal
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | MondialRelay_Pointsrelais |
| Version | 1.0.8 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.7 to 1.0.8
app/code/community/MondialRelay/Pointsrelais/Block/System/Config/Form.php
CHANGED
|
@@ -32,394 +32,9 @@
|
|
| 32 |
* @package Mage_Adminhtml
|
| 33 |
* @author Magento Core Team <core@magentocommerce.com>
|
| 34 |
*/
|
| 35 |
-
class MondialRelay_Pointsrelais_Block_System_Config_Form extends
|
| 36 |
-
{
|
| 37 |
-
|
| 38 |
-
const SCOPE_DEFAULT = 'default';
|
| 39 |
-
const SCOPE_WEBSITES = 'websites';
|
| 40 |
-
const SCOPE_STORES = 'stores';
|
| 41 |
-
|
| 42 |
-
/**
|
| 43 |
-
* Enter description here...
|
| 44 |
-
*
|
| 45 |
-
* @var Mage_Adminhtml_Model_Config_Data
|
| 46 |
-
*/
|
| 47 |
-
protected $_configData;
|
| 48 |
-
|
| 49 |
-
/**
|
| 50 |
-
* Enter description here...
|
| 51 |
-
*
|
| 52 |
-
* @var Varien_Simplexml_Element
|
| 53 |
-
*/
|
| 54 |
-
protected $_configRoot;
|
| 55 |
-
|
| 56 |
-
/**
|
| 57 |
-
* Enter description here...
|
| 58 |
-
*
|
| 59 |
-
* @var Mage_Adminhtml_Model_Config
|
| 60 |
-
*/
|
| 61 |
-
protected $_configFields;
|
| 62 |
-
|
| 63 |
-
/**
|
| 64 |
-
* Enter description here...
|
| 65 |
-
*
|
| 66 |
-
* @var Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
| 67 |
-
*/
|
| 68 |
-
protected $_defaultFieldsetRenderer;
|
| 69 |
-
|
| 70 |
-
/**
|
| 71 |
-
* Enter description here...
|
| 72 |
-
*
|
| 73 |
-
* @var Mage_Adminhtml_Block_System_Config_Form_Field
|
| 74 |
-
*/
|
| 75 |
-
protected $_defaultFieldRenderer;
|
| 76 |
-
|
| 77 |
-
/**
|
| 78 |
-
* Enter description here...
|
| 79 |
-
*
|
| 80 |
-
* @var array
|
| 81 |
-
*/
|
| 82 |
-
protected $_fieldsets = array();
|
| 83 |
-
|
| 84 |
-
/**
|
| 85 |
-
* Enter description here...
|
| 86 |
-
*
|
| 87 |
-
*/
|
| 88 |
-
public function __construct()
|
| 89 |
-
{
|
| 90 |
-
parent::__construct();
|
| 91 |
-
}
|
| 92 |
-
|
| 93 |
-
/**
|
| 94 |
-
* Enter description here...
|
| 95 |
-
*
|
| 96 |
-
* @return Mage_Adminhtml_Block_System_Config_Form
|
| 97 |
-
*/
|
| 98 |
-
protected function _initObjects()
|
| 99 |
-
{
|
| 100 |
-
$this->_configRoot = Mage::getConfig()->getNode(null, $this->getScope(), $this->getScopeCode());
|
| 101 |
-
|
| 102 |
-
$this->_configData = Mage::getModel('adminhtml/config_data')
|
| 103 |
-
->setSection($this->getSectionCode())
|
| 104 |
-
->setWebsite($this->getWebsiteCode())
|
| 105 |
-
->setStore($this->getStoreCode())
|
| 106 |
-
->load();
|
| 107 |
-
|
| 108 |
-
$this->_configFields = Mage::getSingleton('adminhtml/config');
|
| 109 |
-
|
| 110 |
-
$this->_defaultFieldsetRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_fieldset');
|
| 111 |
-
$this->_defaultFieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field');
|
| 112 |
-
return $this;
|
| 113 |
-
}
|
| 114 |
-
|
| 115 |
-
/**
|
| 116 |
-
* Enter description here...
|
| 117 |
-
*
|
| 118 |
-
* @return Mage_Adminhtml_Block_System_Config_Form
|
| 119 |
-
*/
|
| 120 |
-
public function initForm()
|
| 121 |
-
{
|
| 122 |
-
$this->_initObjects();
|
| 123 |
-
|
| 124 |
-
$form = new Varien_Data_Form();
|
| 125 |
-
|
| 126 |
-
$sections = $this->_configFields->getSection($this->getSectionCode(), $this->getWebsiteCode(), $this->getStoreCode());
|
| 127 |
-
if (empty($sections)) {
|
| 128 |
-
$sections = array();
|
| 129 |
-
}
|
| 130 |
-
foreach ($sections as $section) {
|
| 131 |
-
/* @var $section Varien_Simplexml_Element */
|
| 132 |
-
if (!$this->_canShowField($section)) {
|
| 133 |
-
continue;
|
| 134 |
-
}
|
| 135 |
-
foreach ($section->groups as $groups){
|
| 136 |
-
|
| 137 |
-
$groups = (array)$groups;
|
| 138 |
-
usort($groups, array($this, '_sortForm'));
|
| 139 |
-
|
| 140 |
-
foreach ($groups as $group){
|
| 141 |
-
/* @var $group Varien_Simplexml_Element */
|
| 142 |
-
if (!$this->_canShowField($group)) {
|
| 143 |
-
continue;
|
| 144 |
-
}
|
| 145 |
-
|
| 146 |
-
if ($group->frontend_model) {
|
| 147 |
-
$fieldsetRenderer = Mage::getBlockSingleton((string)$group->frontend_model);
|
| 148 |
-
} else {
|
| 149 |
-
$fieldsetRenderer = $this->_defaultFieldsetRenderer;
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
$fieldsetRenderer->setForm($this);
|
| 153 |
-
$fieldsetRenderer->setConfigData($this->_configData);
|
| 154 |
-
$fieldsetRenderer->setGroup($group);
|
| 155 |
-
|
| 156 |
-
if ($this->_configFields->hasChildren($group, $this->getWebsiteCode(), $this->getStoreCode())) {
|
| 157 |
-
|
| 158 |
-
$helperName = $this->_configFields->getAttributeModule($section, $group);
|
| 159 |
-
|
| 160 |
-
$fieldsetConfig = array('legend' => Mage::helper($helperName)->__((string)$group->label));
|
| 161 |
-
if (!empty($group->comment)) {
|
| 162 |
-
$fieldsetConfig['comment'] = (string)$group->comment;
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
-
$fieldset = $form->addFieldset(
|
| 166 |
-
$section->getName() . '_' . $group->getName(), $fieldsetConfig)
|
| 167 |
-
->setRenderer($fieldsetRenderer);
|
| 168 |
-
$this->_addElementTypes($fieldset);
|
| 169 |
-
|
| 170 |
-
if ($group->clone_fields) {
|
| 171 |
-
if ($group->clone_model) {
|
| 172 |
-
$cloneModel = Mage::getModel((string)$group->clone_model);
|
| 173 |
-
} else {
|
| 174 |
-
Mage::throwException('Config form fieldset clone model required to be able to clone fields');
|
| 175 |
-
}
|
| 176 |
-
foreach ($cloneModel->getPrefixes() as $prefix) {
|
| 177 |
-
$this->initFields($fieldset, $group, $section, $prefix['field'], $prefix['label']);
|
| 178 |
-
}
|
| 179 |
-
} else {
|
| 180 |
-
$this->initFields($fieldset, $group, $section);
|
| 181 |
-
}
|
| 182 |
-
|
| 183 |
-
$this->_fieldsets[$group->getName()] = $fieldset;
|
| 184 |
-
|
| 185 |
-
}
|
| 186 |
-
}
|
| 187 |
-
}
|
| 188 |
-
}
|
| 189 |
-
|
| 190 |
-
$this->setForm($form);
|
| 191 |
-
return $this;
|
| 192 |
-
}
|
| 193 |
-
|
| 194 |
-
/**
|
| 195 |
-
* Init fieldset fields
|
| 196 |
-
*
|
| 197 |
-
* @param Varien_Data_Form_Element_Fieldset $fieldset
|
| 198 |
-
* @param Varien_Simplexml_Element $group
|
| 199 |
-
* @param Varien_Simplexml_Element $section
|
| 200 |
-
* @param string $fieldPrefix
|
| 201 |
-
* @param string $labelPrefix
|
| 202 |
-
* @return Mage_Adminhtml_Block_System_Config_Form
|
| 203 |
-
*/
|
| 204 |
-
public function initFields($fieldset, $group, $section, $fieldPrefix='', $labelPrefix='')
|
| 205 |
-
{
|
| 206 |
-
foreach ($group->fields as $elements) {
|
| 207 |
-
|
| 208 |
-
$elements = (array)$elements;
|
| 209 |
-
// sort either by sort_order or by child node values bypassing the sort_order
|
| 210 |
-
if ($group->sort_fields && $group->sort_fields->by) {
|
| 211 |
-
$fieldset->setSortElementsByAttribute((string)$group->sort_fields->by,
|
| 212 |
-
($group->sort_fields->direction_desc ? SORT_DESC : SORT_ASC)
|
| 213 |
-
);
|
| 214 |
-
} else {
|
| 215 |
-
usort($elements, array($this, '_sortForm'));
|
| 216 |
-
}
|
| 217 |
-
|
| 218 |
-
foreach ($elements as $e) {
|
| 219 |
-
if (!$this->_canShowField($e)) {
|
| 220 |
-
continue;
|
| 221 |
-
}
|
| 222 |
-
$path = $section->getName() . '/' . $group->getName() . '/' . $fieldPrefix . $e->getName();
|
| 223 |
-
$id = $section->getName() . '_' . $group->getName() . '_' . $fieldPrefix . $e->getName();
|
| 224 |
-
|
| 225 |
-
if (isset($this->_configData[$path])) {
|
| 226 |
-
$data = $this->_configData[$path];
|
| 227 |
-
$inherit = false;
|
| 228 |
-
} else {
|
| 229 |
-
$data = $this->_configRoot->descend($path);
|
| 230 |
-
$inherit = true;
|
| 231 |
-
}
|
| 232 |
-
if ($e->frontend_model) {
|
| 233 |
-
$fieldRenderer = Mage::getBlockSingleton((string)$e->frontend_model);
|
| 234 |
-
} else {
|
| 235 |
-
$fieldRenderer = $this->_defaultFieldRenderer;
|
| 236 |
-
}
|
| 237 |
-
|
| 238 |
-
$fieldRenderer->setForm($this);
|
| 239 |
-
$fieldRenderer->setConfigData($this->_configData);
|
| 240 |
-
|
| 241 |
-
$helperName = $this->_configFields->getAttributeModule($section, $group, $e);
|
| 242 |
-
$fieldType = (string)$e->frontend_type ? (string)$e->frontend_type : 'text';
|
| 243 |
-
$name = 'groups['.$group->getName().'][fields]['.$fieldPrefix.$e->getName().'][value]';
|
| 244 |
-
$label = Mage::helper($helperName)->__($labelPrefix).' '.Mage::helper($helperName)->__((string)$e->label);
|
| 245 |
-
$comment = (string)$e->comment ? Mage::helper($helperName)->__((string)$e->comment) : '';
|
| 246 |
-
|
| 247 |
-
if ($e->backend_model) {
|
| 248 |
-
$model = Mage::getModel((string)$e->backend_model);
|
| 249 |
-
if (!$model instanceof Mage_Core_Model_Config_Data) {
|
| 250 |
-
Mage::throwException('Invalid config field backend model: '.(string)$e->backend_model);
|
| 251 |
-
}
|
| 252 |
-
$model->setPath($path)->setValue($data)->afterLoad();
|
| 253 |
-
$data = $model->getValue();
|
| 254 |
-
}
|
| 255 |
-
$field = $fieldset->addField($id, $fieldType, array(
|
| 256 |
-
'name' => $name,
|
| 257 |
-
'label' => $label,
|
| 258 |
-
'comment' => $comment,
|
| 259 |
-
'value' => $data,
|
| 260 |
-
'inherit' => $inherit,
|
| 261 |
-
'class' => $e->frontend_class,
|
| 262 |
-
'field_config' => $e,
|
| 263 |
-
'scope' => $this->getScope(),
|
| 264 |
-
'scope_id' => $this->getScopeId(),
|
| 265 |
-
'can_use_default_value' => $this->canUseDefaultValue((int)$e->show_in_default),
|
| 266 |
-
'can_use_website_value' => $this->canUseWebsiteValue((int)$e->show_in_website),
|
| 267 |
-
));
|
| 268 |
-
|
| 269 |
-
if (isset($e->validate)) {
|
| 270 |
-
$field->addClass($e->validate);
|
| 271 |
-
}
|
| 272 |
-
|
| 273 |
-
if (isset($e->frontend_type) && 'multiselect' === (string)$e->frontend_type && isset($e->can_be_empty)) {
|
| 274 |
-
$field->setCanBeEmpty(true);
|
| 275 |
-
}
|
| 276 |
-
|
| 277 |
-
$field->setRenderer($fieldRenderer);
|
| 278 |
-
|
| 279 |
-
if ($e->source_model) {
|
| 280 |
-
$sourceModel = Mage::getSingleton((string)$e->source_model);
|
| 281 |
-
if ($sourceModel instanceof Varien_Object) {
|
| 282 |
-
$sourceModel->setPath($path);
|
| 283 |
-
}
|
| 284 |
-
$field->setValues($sourceModel->toOptionArray($fieldType == 'multiselect'));
|
| 285 |
-
}
|
| 286 |
-
}
|
| 287 |
-
}
|
| 288 |
-
return $this;
|
| 289 |
-
}
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
/**
|
| 293 |
-
* Enter description here...
|
| 294 |
-
*
|
| 295 |
-
* @param Varien_Simplexml_Element $a
|
| 296 |
-
* @param Varien_Simplexml_Element $b
|
| 297 |
-
* @return boolean
|
| 298 |
-
*/
|
| 299 |
-
protected function _sortForm($a, $b)
|
| 300 |
-
{
|
| 301 |
-
return (int)$a->sort_order < (int)$b->sort_order ? -1 : ((int)$a->sort_order > (int)$b->sort_order ? 1 : 0);
|
| 302 |
-
|
| 303 |
-
}
|
| 304 |
-
|
| 305 |
-
/**
|
| 306 |
-
* Enter description here...
|
| 307 |
-
*
|
| 308 |
-
* @param Varien_Simplexml_Element $field
|
| 309 |
-
* @return boolean
|
| 310 |
-
*/
|
| 311 |
-
public function canUseDefaultValue($field)
|
| 312 |
-
{
|
| 313 |
-
if ($this->getScope() == self::SCOPE_STORES && $field) {
|
| 314 |
-
return true;
|
| 315 |
-
}
|
| 316 |
-
if ($this->getScope() == self::SCOPE_WEBSITES && $field) {
|
| 317 |
-
return true;
|
| 318 |
-
}
|
| 319 |
-
return false;
|
| 320 |
-
}
|
| 321 |
-
|
| 322 |
-
/**
|
| 323 |
-
* Enter description here...
|
| 324 |
-
*
|
| 325 |
-
* @param Varien_Simplexml_Element $field
|
| 326 |
-
* @return boolean
|
| 327 |
-
*/
|
| 328 |
-
public function canUseWebsiteValue($field)
|
| 329 |
-
{
|
| 330 |
-
if ($this->getScope() == self::SCOPE_STORES && $field) {
|
| 331 |
-
return true;
|
| 332 |
-
}
|
| 333 |
-
return false;
|
| 334 |
-
}
|
| 335 |
-
|
| 336 |
-
/**
|
| 337 |
-
* Checking field visibility
|
| 338 |
-
*
|
| 339 |
-
* @param Varien_Simplexml_Element $field
|
| 340 |
-
* @return bool
|
| 341 |
-
*/
|
| 342 |
-
protected function _canShowField($field)
|
| 343 |
-
{
|
| 344 |
-
switch ($this->getScope()) {
|
| 345 |
-
case self::SCOPE_DEFAULT:
|
| 346 |
-
return (int)$field->show_in_default;
|
| 347 |
-
break;
|
| 348 |
-
case self::SCOPE_WEBSITES:
|
| 349 |
-
return (int)$field->show_in_website;
|
| 350 |
-
break;
|
| 351 |
-
case self::SCOPE_STORES:
|
| 352 |
-
return (int)$field->show_in_store;
|
| 353 |
-
break;
|
| 354 |
-
}
|
| 355 |
-
return true;
|
| 356 |
-
}
|
| 357 |
-
|
| 358 |
-
/**
|
| 359 |
-
* Retrieve current scope
|
| 360 |
-
*
|
| 361 |
-
* @return string
|
| 362 |
-
*/
|
| 363 |
-
public function getScope()
|
| 364 |
-
{
|
| 365 |
-
$scope = $this->getData('scope');
|
| 366 |
-
if (is_null($scope)) {
|
| 367 |
-
if ($this->getStoreCode()) {
|
| 368 |
-
$scope = self::SCOPE_STORES;
|
| 369 |
-
} elseif ($this->getWebsiteCode()) {
|
| 370 |
-
$scope = self::SCOPE_WEBSITES;
|
| 371 |
-
} else {
|
| 372 |
-
$scope = self::SCOPE_DEFAULT;
|
| 373 |
-
}
|
| 374 |
-
$this->setScope($scope);
|
| 375 |
-
}
|
| 376 |
-
|
| 377 |
-
return $scope;
|
| 378 |
-
}
|
| 379 |
-
|
| 380 |
-
/**
|
| 381 |
-
* Get current scope code
|
| 382 |
-
*
|
| 383 |
-
* @return string
|
| 384 |
-
*/
|
| 385 |
-
public function getScopeCode()
|
| 386 |
-
{
|
| 387 |
-
$scopeCode = $this->getData('scope_code');
|
| 388 |
-
if (is_null($scopeCode)) {
|
| 389 |
-
if ($this->getStoreCode()) {
|
| 390 |
-
$scopeCode = $this->getStoreCode();
|
| 391 |
-
} elseif ($this->getWebsiteCode()) {
|
| 392 |
-
$scopeCode = $this->getWebsiteCode();
|
| 393 |
-
} else {
|
| 394 |
-
$scopeCode = '';
|
| 395 |
-
}
|
| 396 |
-
$this->setScopeCode($scopeCode);
|
| 397 |
-
}
|
| 398 |
-
|
| 399 |
-
return $scopeCode;
|
| 400 |
-
}
|
| 401 |
-
|
| 402 |
-
/**
|
| 403 |
-
* Get current scope code
|
| 404 |
-
*
|
| 405 |
-
* @return int|string
|
| 406 |
-
*/
|
| 407 |
-
public function getScopeId()
|
| 408 |
-
{
|
| 409 |
-
$scopeId = $this->getData('scope_id');
|
| 410 |
-
if (is_null($scopeId)) {
|
| 411 |
-
if ($this->getStoreCode()) {
|
| 412 |
-
$scopeId = Mage::app()->getStore($this->getStoreCode())->getId();
|
| 413 |
-
} elseif ($this->getWebsiteCode()) {
|
| 414 |
-
$scopeId = Mage::app()->getWebsite($this->getWebsiteCode())->getId();
|
| 415 |
-
} else {
|
| 416 |
-
$scopeId = '';
|
| 417 |
-
}
|
| 418 |
-
$this->setScopeId($scopeId);
|
| 419 |
-
}
|
| 420 |
-
return $scopeId;
|
| 421 |
-
}
|
| 422 |
-
|
| 423 |
/**
|
| 424 |
* Enter description here...
|
| 425 |
*
|
|
@@ -436,41 +51,4 @@ class MondialRelay_Pointsrelais_Block_System_Config_Form extends Mage_Adminhtml_
|
|
| 436 |
);
|
| 437 |
}
|
| 438 |
|
| 439 |
-
/**
|
| 440 |
-
* Temporary moved those $this->getRequest()->getParam('blabla') from the code accross this block
|
| 441 |
-
* to getBlala() methods to be later set from controller with setters
|
| 442 |
-
*/
|
| 443 |
-
/**
|
| 444 |
-
* Enter description here...
|
| 445 |
-
*
|
| 446 |
-
* @TODO delete this methods when {^see above^} is done
|
| 447 |
-
* @return string
|
| 448 |
-
*/
|
| 449 |
-
public function getSectionCode()
|
| 450 |
-
{
|
| 451 |
-
return $this->getRequest()->getParam('section', '');
|
| 452 |
}
|
| 453 |
-
|
| 454 |
-
/**
|
| 455 |
-
* Enter description here...
|
| 456 |
-
*
|
| 457 |
-
* @TODO delete this methods when {^see above^} is done
|
| 458 |
-
* @return string
|
| 459 |
-
*/
|
| 460 |
-
public function getWebsiteCode()
|
| 461 |
-
{
|
| 462 |
-
return $this->getRequest()->getParam('website', '');
|
| 463 |
-
}
|
| 464 |
-
|
| 465 |
-
/**
|
| 466 |
-
* Enter description here...
|
| 467 |
-
*
|
| 468 |
-
* @TODO delete this methods when {^see above^} is done
|
| 469 |
-
* @return string
|
| 470 |
-
*/
|
| 471 |
-
public function getStoreCode()
|
| 472 |
-
{
|
| 473 |
-
return $this->getRequest()->getParam('store', '');
|
| 474 |
-
}
|
| 475 |
-
|
| 476 |
-
}
|
| 32 |
* @package Mage_Adminhtml
|
| 33 |
* @author Magento Core Team <core@magentocommerce.com>
|
| 34 |
*/
|
| 35 |
+
class MondialRelay_Pointsrelais_Block_System_Config_Form extends Mage_Adminhtml_Block_System_Config_Form
|
| 36 |
+
{
|
| 37 |
+
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
/**
|
| 39 |
* Enter description here...
|
| 40 |
*
|
| 51 |
);
|
| 52 |
}
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/MondialRelay/Pointsrelais/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<MondialRelay_Pointsrelais>
|
| 5 |
-
<version>1.0.
|
| 6 |
<depends>
|
| 7 |
<Mage_Adminhtml />
|
| 8 |
<Mage_Shipping />
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<MondialRelay_Pointsrelais>
|
| 5 |
+
<version>1.0.8</version>
|
| 6 |
<depends>
|
| 7 |
<Mage_Adminhtml />
|
| 8 |
<Mage_Shipping />
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>MondialRelay_Pointsrelais</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Module de livraison Mondial Relay</summary>
|
| 10 |
<description>Module de livraison Mondial Relay</description>
|
| 11 |
-
<notes>correction
|
| 12 |
<authors><author><name>cyrille guillaud</name><user>auto-converted</user><email>cguillaud@cg-consulting.fr</email></author></authors>
|
| 13 |
<date>2010-04-07</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="pointsrelais.css" hash="229d09977ee2eac2e72dcb89bf8eb05c"/></dir><dir name="images"><dir name="mondialrelay"><file name="img_fermer.gif" hash="5901eaf779aa6fa3eac84d1dd9520113"/><file name="img_fleche.gif" hash="908f8a69124b7b16e3ec2caefc78d948"/><file name="logo_PR_01.gif" hash="7066eb60e2645b304d1b926d0a4c31e2"/><file name="Thumbs.db" hash="51da41310be9652f9360715494dc6b03"/></dir></dir><dir name="js"><file name="pointsrelais.js" hash="8008e112e4dd2f468b5726c561a5f8b4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="pointsrelais.xml" hash="cecd44caa45a4124f3ed64a36137fd17"/></dir><dir name="template"><dir name="pointsrelais"><file name="baseurl.phtml" hash="ddbe6d60de42248171c32ac6279ae46d"/><file name="info.phtml" hash="bd616597f35a48a71bcd7bd1e4ad6575"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="MondialRelay_Pointsrelais.csv" hash="0397e023998b05e06539fe9cbc46633a"/></dir></target><target name="mageetc"><dir name="modules"><file name="MondialRelay_All.xml" hash="8257e76c52b260553f8ce663c2a8b3d1"/></dir></target><target name="magecommunity"><dir name="MondialRelay"><dir name="Pointsrelais"><dir name="Block"><dir name="Sales"><dir name="Order"><dir name="Shipment"><file name="View.php" hash="913bad19edb072f54a3037fa2a860e5e"/></dir></dir><dir name="Shipment"><file name="Grid.php" hash="5b2c413145a1d077bd7503ef8302a0a2"/></dir><file name="Impression.php" hash="0685fabf03cb81a76a643e2fbc7d90bd"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Exportpointsrelais.php" hash="e55ace0129fe156dbeb32a341d384d6a"/></dir></dir><file name="Form.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>MondialRelay_Pointsrelais</name>
|
| 4 |
+
<version>1.0.8</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Module de livraison Mondial Relay</summary>
|
| 10 |
<description>Module de livraison Mondial Relay</description>
|
| 11 |
+
<notes>correction compatibilité paypal</notes>
|
| 12 |
<authors><author><name>cyrille guillaud</name><user>auto-converted</user><email>cguillaud@cg-consulting.fr</email></author></authors>
|
| 13 |
<date>2010-04-07</date>
|
| 14 |
+
<time>18:27:27</time>
|
| 15 |
+
<contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="pointsrelais.css" hash="229d09977ee2eac2e72dcb89bf8eb05c"/></dir><dir name="images"><dir name="mondialrelay"><file name="img_fermer.gif" hash="5901eaf779aa6fa3eac84d1dd9520113"/><file name="img_fleche.gif" hash="908f8a69124b7b16e3ec2caefc78d948"/><file name="logo_PR_01.gif" hash="7066eb60e2645b304d1b926d0a4c31e2"/><file name="Thumbs.db" hash="51da41310be9652f9360715494dc6b03"/></dir></dir><dir name="js"><file name="pointsrelais.js" hash="8008e112e4dd2f468b5726c561a5f8b4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="pointsrelais.xml" hash="cecd44caa45a4124f3ed64a36137fd17"/></dir><dir name="template"><dir name="pointsrelais"><file name="baseurl.phtml" hash="ddbe6d60de42248171c32ac6279ae46d"/><file name="info.phtml" hash="bd616597f35a48a71bcd7bd1e4ad6575"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="MondialRelay_Pointsrelais.csv" hash="0397e023998b05e06539fe9cbc46633a"/></dir></target><target name="mageetc"><dir name="modules"><file name="MondialRelay_All.xml" hash="8257e76c52b260553f8ce663c2a8b3d1"/></dir></target><target name="magecommunity"><dir name="MondialRelay"><dir name="Pointsrelais"><dir name="Block"><dir name="Sales"><dir name="Order"><dir name="Shipment"><file name="View.php" hash="913bad19edb072f54a3037fa2a860e5e"/></dir></dir><dir name="Shipment"><file name="Grid.php" hash="5b2c413145a1d077bd7503ef8302a0a2"/></dir><file name="Impression.php" hash="0685fabf03cb81a76a643e2fbc7d90bd"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Exportpointsrelais.php" hash="e55ace0129fe156dbeb32a341d384d6a"/></dir></dir><file name="Form.php" hash="603ef66cf74c32c06ec8d37a16b6bd83"/></dir></dir><file name="Info.php" hash="d24bd6bcffe1eae00144d320f595d40d"/></dir><dir name="controllers"><dir name="Sales"><dir name="Order"><file name="ShipmentController.php" hash="562d1105e31f5d6cf100d74e2db1a03a"/></dir><file name="ImpressionController.php" hash="3d4201841e0dfc10f96f5f4a77d5f214"/></dir><dir name="System"><file name="ConfigController.php" hash="495f6d405adf5fba5a32570a56b3770f"/></dir><file name="IndexController.php" hash="0b3068c6075d1ad50f32f802a91bdf38"/></dir><dir name="etc"><file name="config.xml" hash="6468d85e70b13e995433a4500ed2a7b6"/><file name="system.xml" hash="0d3db29ea0b056990b4d990e8351bd29"/></dir><dir name="Helper"><file name="Data.php" hash="e81c10d80df89ecbd51715672c710d3e"/></dir><dir name="Model"><dir name="Carrier"><file name="Pointsrelais.php" hash="0241fa09cb426ecc3c85813646f3dff6"/></dir><dir name="Mysql4"><dir name="Carrier"><dir name="Pointsrelais"><file name="Collection.php" hash="8c7735c2b69a53f234628b8ac0d946cd"/></dir><file name="Pointsrelais.php" hash="c1d5c5f50611d060612ad557111152ce"/></dir></dir><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Shipping"><file name="Pointsrelais.php" hash="39881a493e895b1921f27b3b144450ee"/></dir></dir><dir name="Source"><dir name="Shipping"><file name="Pointsrelais.php" hash="a75b6978fea52d78b0aabce1401cf9d3"/></dir></dir></dir></dir><file name="Observer.php" hash="1538e54242450741dc7a64a74174584b"/></dir><dir name="sql"><dir name="pointsrelais_setup"><file name="mysql4-install-0.1.0.php" hash="bcef01a55bfd48286a132bba6a202ac4"/><file name="mysql4-uninstall-0.1.0.php" hash="fe48b6326faa98cadaa69b3c54973b10"/><file name="mysql4-update-1.0.4.php" hash="5c2027a8336b10aba6ec8cf4a2e2e9e0"/></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
