Version Notes
Fixes:-
1) Free shipping issue fix if minimum quantity set.
2) Paypal issue resolved.
3) Payu issue resolved.
4) Banner conflicting resolved.
5) Push Notification issue resolved.
6) coupon issue resolved.
Download this release
Release Info
Developer | mss |
Extension | Mss_Connector |
Version | 2.4.9 |
Comparing to | |
See all releases |
Code changes from version 2.4.8 to 2.4.9
- app/code/local/Mss/Bannerslider/Block/Adminhtml/Bannerslider/Edit.php +0 -29
- app/code/local/Mss/Bannerslider/Block/Adminhtml/Bannerslider/Edit/Tabs.php +0 -24
- app/code/local/Mss/Bannerslider/Block/Adminhtml/Grid.php +0 -12
- app/code/local/Mss/Bannerslider/Model/Bannerslider.php +0 -12
- app/code/local/Mss/Bannerslider/Model/Mysql4/Bannerslider.php +0 -8
- app/code/local/Mss/Bannerslider/Model/Mysql4/Bannerslider/Collection.php +0 -13
- app/code/local/Mss/Bannerslider/Model/Observer.php +0 -6
- app/code/local/Mss/Bannerslider/etc/config.xml +0 -89
- app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Bannersliderapp/Edit.php +29 -0
- app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Edit/Form.php +1 -1
- app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Edit/Tab/Form.php +10 -10
- app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Bannersliderapp/Edit/Tabs.php +24 -0
- app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Grid.php +3 -3
- app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Helper/Image.php +2 -2
- app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Grid.php +12 -0
- app/code/local/Mss/{Bannerslider → Bannersliderapp}/Block/Adminhtml/Renderer/Image.php +2 -2
- app/code/local/Mss/{Bannerslider → Bannersliderapp}/Helper/Data.php +1 -1
- app/code/local/Mss/Bannersliderapp/Model/Bannersliderapp.php +12 -0
- app/code/local/Mss/Bannersliderapp/Model/Mysql4/Bannersliderapp.php +8 -0
- app/code/local/Mss/Bannersliderapp/Model/Mysql4/Bannersliderapp/Collection.php +13 -0
- app/code/local/Mss/Bannersliderapp/Model/Observer.php +6 -0
- app/code/local/Mss/{Bannerslider/controllers/Adminhtml/BannersliderController.php → Bannersliderapp/controllers/Adminhtml/BannersliderappController.php} +17 -17
- app/code/local/Mss/{Bannerslider → Bannersliderapp}/controllers/BannerController.php +3 -3
- app/code/local/Mss/{Bannerslider → Bannersliderapp}/etc/adminhtml.xml +2 -2
- app/code/local/Mss/Bannersliderapp/etc/config.xml +89 -0
- app/code/local/Mss/{Bannerslider/sql/bannerslider_setup/mysql4-install-0.1.0.php → Bannersliderapp/sql/bannersliderapp_setup/mysql4-install-0.1.1.php} +1 -1
- app/code/local/Mss/Connector/controllers/CartController.php +81 -43
- app/code/local/Mss/Connector/controllers/CustomerController.php +1 -1
- app/code/local/Mss/Connector/controllers/IndexController.php +12 -7
- app/code/local/Mss/Connector/controllers/ItemsController.php +1 -0
- app/code/local/Mss/Connector/controllers/ProductsController.php +364 -207
- app/code/local/Mss/Connector/controllers/StaticpagesController.php +0 -2
- app/code/local/Mss/Connector/controllers/StoreinfoController.php +30 -32
- app/code/local/Mss/Connector/etc/config.xml +1 -1
- app/design/adminhtml/default/default/layout/bannerslider.xml +0 -8
- app/design/adminhtml/default/default/layout/bannersliderapp.xml +8 -0
- app/design/frontend/base/default/template/payu/index.phtml +4 -4
- app/etc/modules/{Mss_Bannerslider.xml → Mss_Bannersliderapp.xml} +2 -2
- package.xml +12 -5
app/code/local/Mss/Bannerslider/Block/Adminhtml/Bannerslider/Edit.php
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
|
9 |
-
$this->_objectId = 'id';
|
10 |
-
$this->_blockGroup = 'bannerslider';
|
11 |
-
$this->_controller = 'adminhtml_bannerslider';
|
12 |
-
|
13 |
-
$this->_updateButton('save', 'label', Mage::helper('bannerslider')->__('Save Banner'));
|
14 |
-
$this->_updateButton('delete', 'label', Mage::helper('bannerslider')->__('Delete Banner'));
|
15 |
-
|
16 |
-
|
17 |
-
}
|
18 |
-
|
19 |
-
public function getHeaderText()
|
20 |
-
{
|
21 |
-
if( Mage::registry('banner_data') && Mage::registry('banner_data')->getId() ) {
|
22 |
-
return Mage::helper('bannerslider')->__("Edit Banner '%s'", $this->htmlEscape(Mage::registry('banner_data')->getName()));
|
23 |
-
} else {
|
24 |
-
return Mage::helper('bannerslider')->__('Add Banner');
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
|
29 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Block/Adminhtml/Bannerslider/Edit/Tabs.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
-
{
|
5 |
-
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setId('banner_tabs');
|
10 |
-
$this->setDestElementId('edit_form');
|
11 |
-
$this->setTitle(Mage::helper('bannerslider')->__('Banner Manager'));
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _beforeToHtml()
|
15 |
-
{
|
16 |
-
$this->addTab('form_section', array(
|
17 |
-
'label' => Mage::helper('bannerslider')->__('Banner Information'),
|
18 |
-
'title' => Mage::helper('bannerslider')->__('Banner Information'),
|
19 |
-
'content' => $this->getLayout()->createBlock('bannerslider/adminhtml_bannerslider_edit_tab_form')->toHtml(),
|
20 |
-
));
|
21 |
-
|
22 |
-
return parent::_beforeToHtml();
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Block/Adminhtml/Grid.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Mss_Bannerslider_Block_Adminhtml_Grid extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
$this->_controller = 'adminhtml_bannerslider';
|
7 |
-
$this->_blockGroup = 'bannerslider';
|
8 |
-
$this->_headerText = Mage::helper('bannerslider')->__('Banner Manager');
|
9 |
-
$this->_addButtonLabel = Mage::helper('bannerslider')->__('Add Banner');
|
10 |
-
parent::__construct();
|
11 |
-
}
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Model/Bannerslider.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Mss_Bannerslider_Model_Bannerslider extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct(){
|
6 |
-
|
7 |
-
$this->_init("bannerslider/bannerslider");
|
8 |
-
|
9 |
-
}
|
10 |
-
|
11 |
-
}
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Model/Mysql4/Bannerslider.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Mss_Bannerslider_Model_Mysql4_Bannerslider extends Mage_Core_Model_Mysql4_Abstract
|
3 |
-
{
|
4 |
-
protected function _construct()
|
5 |
-
{
|
6 |
-
$this->_init("bannerslider/bannerslider", "banner_id");
|
7 |
-
}
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Model/Mysql4/Bannerslider/Collection.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Mss_Bannerslider_Model_Mysql4_Bannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
3 |
-
{
|
4 |
-
|
5 |
-
public function _construct(){
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init("bannerslider/bannerslider");
|
8 |
-
}
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
}
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/Model/Observer.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Mss_Bannerslider_Model_Observer
|
3 |
-
{
|
4 |
-
|
5 |
-
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannerslider/etc/config.xml
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Mss_Bannerslider>
|
5 |
-
<version>0.1.0</version>
|
6 |
-
</Mss_Bannerslider>
|
7 |
-
</modules>
|
8 |
-
|
9 |
-
<frontend>
|
10 |
-
<routers>
|
11 |
-
<bannerslider>
|
12 |
-
<use>standard</use>
|
13 |
-
<args>
|
14 |
-
<module>Mss_Bannerslider</module>
|
15 |
-
<frontName>bannerslider</frontName>
|
16 |
-
</args>
|
17 |
-
</bannerslider>
|
18 |
-
</routers>
|
19 |
-
</frontend>
|
20 |
-
|
21 |
-
<global>
|
22 |
-
<helpers>
|
23 |
-
<bannerslider>
|
24 |
-
<class>Mss_Bannerslider_Helper</class>
|
25 |
-
</bannerslider>
|
26 |
-
|
27 |
-
</helpers>
|
28 |
-
<blocks>
|
29 |
-
<bannerslider>
|
30 |
-
<class>Mss_Bannerslider_Block</class>
|
31 |
-
</bannerslider>
|
32 |
-
</blocks>
|
33 |
-
<models>
|
34 |
-
<bannerslider>
|
35 |
-
<class>Mss_Bannerslider_Model</class>
|
36 |
-
<resourceModel>bannerslider_mysql4</resourceModel>
|
37 |
-
</bannerslider>
|
38 |
-
<bannerslider_mysql4>
|
39 |
-
<class>Mss_Bannerslider_Model_Mysql4</class>
|
40 |
-
<entities>
|
41 |
-
<bannerslider>
|
42 |
-
<table>magentomobile_bannerslider</table>
|
43 |
-
</bannerslider>
|
44 |
-
</entities>
|
45 |
-
</bannerslider_mysql4>
|
46 |
-
</models>
|
47 |
-
<resources>
|
48 |
-
<bannerslider_setup>
|
49 |
-
<setup>
|
50 |
-
<module>Mss_Bannerslider</module>
|
51 |
-
</setup>
|
52 |
-
<connection>
|
53 |
-
<use>core_setup</use>
|
54 |
-
</connection>
|
55 |
-
</bannerslider_setup>
|
56 |
-
<bannerslider_write>
|
57 |
-
<connection>
|
58 |
-
<use>core_write</use>
|
59 |
-
</connection>
|
60 |
-
</bannerslider_write>
|
61 |
-
<bannerslider_read>
|
62 |
-
<connection>
|
63 |
-
<use>core_read</use>
|
64 |
-
</connection>
|
65 |
-
</bannerslider_read>
|
66 |
-
</resources>
|
67 |
-
|
68 |
-
</global>
|
69 |
-
<admin>
|
70 |
-
<routers>
|
71 |
-
<bannerslider>
|
72 |
-
<use>admin</use>
|
73 |
-
<args>
|
74 |
-
<module>Mss_Bannerslider</module>
|
75 |
-
<frontName>admin_bannerslider</frontName>
|
76 |
-
</args>
|
77 |
-
</bannerslider>
|
78 |
-
</routers>
|
79 |
-
</admin>
|
80 |
-
<adminhtml>
|
81 |
-
<layout>
|
82 |
-
<updates>
|
83 |
-
<bannerslider>
|
84 |
-
<file>bannerslider.xml</file>
|
85 |
-
</bannerslider>
|
86 |
-
</updates>
|
87 |
-
</layout>
|
88 |
-
</adminhtml>
|
89 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Bannersliderapp/Edit.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
+
{
|
5 |
+
public function __construct()
|
6 |
+
{
|
7 |
+
parent::__construct();
|
8 |
+
|
9 |
+
$this->_objectId = 'id';
|
10 |
+
$this->_blockGroup = 'bannersliderapp';
|
11 |
+
$this->_controller = 'adminhtml_bannersliderapp';
|
12 |
+
|
13 |
+
$this->_updateButton('save', 'label', Mage::helper('bannersliderapp')->__('Save Banner'));
|
14 |
+
$this->_updateButton('delete', 'label', Mage::helper('bannersliderapp')->__('Delete Banner'));
|
15 |
+
|
16 |
+
|
17 |
+
}
|
18 |
+
|
19 |
+
public function getHeaderText()
|
20 |
+
{
|
21 |
+
if( Mage::registry('banner_data') && Mage::registry('banner_data')->getId() ) {
|
22 |
+
return Mage::helper('bannersliderapp')->__("Edit Banner '%s'", $this->htmlEscape(Mage::registry('banner_data')->getName()));
|
23 |
+
} else {
|
24 |
+
return Mage::helper('bannersliderapp')->__('Add Banner');
|
25 |
+
}
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
}
|
app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Edit/Form.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
{
|
5 |
protected function _prepareForm()
|
6 |
{
|
1 |
<?php
|
2 |
|
3 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
{
|
5 |
protected function _prepareForm()
|
6 |
{
|
app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Edit/Tab/Form.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
|
5 |
protected function _prepareForm() {
|
6 |
$form = new Varien_Data_Form();
|
@@ -9,28 +9,28 @@ class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Edit_Tab_Form extends Mage_A
|
|
9 |
array('legend'=>'Banner Information'));
|
10 |
$fieldset->addField('name', 'text',
|
11 |
array(
|
12 |
-
'label' => Mage::helper('
|
13 |
'class' => 'required-entry',
|
14 |
'required' => true,
|
15 |
'name' => 'name',
|
16 |
));
|
17 |
-
$fieldset->addType('thumbnail','
|
18 |
|
19 |
$fieldset->addField('image', 'thumbnail', array(
|
20 |
-
'label' => Mage::helper('
|
21 |
'required' => true,
|
22 |
'name' => 'image',
|
23 |
));
|
24 |
$fieldset->addField('image_alt', 'textarea',
|
25 |
array(
|
26 |
-
'label' => Mage::helper('
|
27 |
|
28 |
|
29 |
'name' => 'image_alt',
|
30 |
));
|
31 |
$fieldset->addField('order_banner', 'text',
|
32 |
array(
|
33 |
-
'label' => Mage::helper('
|
34 |
|
35 |
|
36 |
|
@@ -38,7 +38,7 @@ class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Edit_Tab_Form extends Mage_A
|
|
38 |
));
|
39 |
$fieldset->addField('url_type', 'select',
|
40 |
array(
|
41 |
-
'label' => Mage::helper('
|
42 |
'values' => array(
|
43 |
|
44 |
|
@@ -57,21 +57,21 @@ class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Edit_Tab_Form extends Mage_A
|
|
57 |
|
58 |
$fieldset->addField('product_id', 'text',
|
59 |
array(
|
60 |
-
'label' => Mage::helper('
|
61 |
|
62 |
|
63 |
'name' => 'product_id',
|
64 |
));
|
65 |
$fieldset->addField('category_id', 'text',
|
66 |
array(
|
67 |
-
'label' => Mage::helper('
|
68 |
|
69 |
|
70 |
'name' => 'category_id',
|
71 |
));
|
72 |
$fieldset->addField('status', 'select',
|
73 |
array(
|
74 |
-
'label' => Mage::helper('
|
75 |
|
76 |
'values' => array(
|
77 |
|
1 |
<?php
|
2 |
|
3 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form {
|
4 |
|
5 |
protected function _prepareForm() {
|
6 |
$form = new Varien_Data_Form();
|
9 |
array('legend'=>'Banner Information'));
|
10 |
$fieldset->addField('name', 'text',
|
11 |
array(
|
12 |
+
'label' => Mage::helper('bannersliderapp')->__('Title'),
|
13 |
'class' => 'required-entry',
|
14 |
'required' => true,
|
15 |
'name' => 'name',
|
16 |
));
|
17 |
+
$fieldset->addType('thumbnail','Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Helper_Image');
|
18 |
|
19 |
$fieldset->addField('image', 'thumbnail', array(
|
20 |
+
'label' => Mage::helper('bannersliderapp')->__('Image'),
|
21 |
'required' => true,
|
22 |
'name' => 'image',
|
23 |
));
|
24 |
$fieldset->addField('image_alt', 'textarea',
|
25 |
array(
|
26 |
+
'label' => Mage::helper('bannersliderapp')->__('Description'),
|
27 |
|
28 |
|
29 |
'name' => 'image_alt',
|
30 |
));
|
31 |
$fieldset->addField('order_banner', 'text',
|
32 |
array(
|
33 |
+
'label' => Mage::helper('bannersliderapp')->__('Order'),
|
34 |
|
35 |
|
36 |
|
38 |
));
|
39 |
$fieldset->addField('url_type', 'select',
|
40 |
array(
|
41 |
+
'label' => Mage::helper('bannersliderapp')->__('Link With Type'),
|
42 |
'values' => array(
|
43 |
|
44 |
|
57 |
|
58 |
$fieldset->addField('product_id', 'text',
|
59 |
array(
|
60 |
+
'label' => Mage::helper('bannersliderapp')->__('Product Id to Display'),
|
61 |
|
62 |
|
63 |
'name' => 'product_id',
|
64 |
));
|
65 |
$fieldset->addField('category_id', 'text',
|
66 |
array(
|
67 |
+
'label' => Mage::helper('bannersliderapp')->__('Category Id to Display'),
|
68 |
|
69 |
|
70 |
'name' => 'category_id',
|
71 |
));
|
72 |
$fieldset->addField('status', 'select',
|
73 |
array(
|
74 |
+
'label' => Mage::helper('bannersliderapp')->__('Status'),
|
75 |
|
76 |
'values' => array(
|
77 |
|
app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Bannersliderapp/Edit/Tabs.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
+
{
|
5 |
+
|
6 |
+
public function __construct()
|
7 |
+
{
|
8 |
+
parent::__construct();
|
9 |
+
$this->setId('banner_tabs');
|
10 |
+
$this->setDestElementId('edit_form');
|
11 |
+
$this->setTitle(Mage::helper('bannersliderapp')->__('Banner Manager'));
|
12 |
+
}
|
13 |
+
|
14 |
+
protected function _beforeToHtml()
|
15 |
+
{
|
16 |
+
$this->addTab('form_section', array(
|
17 |
+
'label' => Mage::helper('bannersliderapp')->__('Banner Information'),
|
18 |
+
'title' => Mage::helper('bannersliderapp')->__('Banner Information'),
|
19 |
+
'content' => $this->getLayout()->createBlock('bannersliderapp/adminhtml_bannersliderapp_edit_tab_form')->toHtml(),
|
20 |
+
));
|
21 |
+
|
22 |
+
return parent::_beforeToHtml();
|
23 |
+
}
|
24 |
+
}
|
app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Grid.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
|
5 |
public function __construct()
|
6 |
{
|
@@ -13,7 +13,7 @@ class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Grid extends Mage_Adminhtml_
|
|
13 |
}
|
14 |
protected function _prepareCollection()
|
15 |
{
|
16 |
-
$collection = Mage::getModel('
|
17 |
$this->setCollection($collection);
|
18 |
return parent::_prepareCollection();
|
19 |
}
|
@@ -41,7 +41,7 @@ class Mss_Bannerslider_Block_Adminhtml_Bannerslider_Grid extends Mage_Adminhtml_
|
|
41 |
'header' => 'Image',
|
42 |
'align' =>'left',
|
43 |
'index' => 'image',
|
44 |
-
'renderer' => '
|
45 |
));
|
46 |
return parent::_prepareColumns();
|
47 |
}
|
1 |
<?php
|
2 |
|
3 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Grid extends Mage_Adminhtml_Block_Widget_Grid {
|
4 |
|
5 |
public function __construct()
|
6 |
{
|
13 |
}
|
14 |
protected function _prepareCollection()
|
15 |
{
|
16 |
+
$collection = Mage::getModel('bannersliderapp/bannersliderapp')->getCollection();
|
17 |
$this->setCollection($collection);
|
18 |
return parent::_prepareCollection();
|
19 |
}
|
41 |
'header' => 'Image',
|
42 |
'align' =>'left',
|
43 |
'index' => 'image',
|
44 |
+
'renderer' => 'Mss_Bannersliderapp_Block_Adminhtml_Renderer_Image',
|
45 |
));
|
46 |
return parent::_prepareColumns();
|
47 |
}
|
app/code/local/Mss/{Bannerslider/Block/Adminhtml/Bannerslider → Bannersliderapp/Block/Adminhtml/Bannersliderapp}/Helper/Image.php
RENAMED
@@ -1,12 +1,12 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
class
|
5 |
extends Varien_Data_Form_Element_Image {
|
6 |
protected function _getUrl(){
|
7 |
$url = false;
|
8 |
if ($this->getValue()) {
|
9 |
-
$path = Mage::helper('
|
10 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)."media/bannerslider/".$path;
|
11 |
}
|
12 |
return $url;
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Bannersliderapp_Helper_Image
|
5 |
extends Varien_Data_Form_Element_Image {
|
6 |
protected function _getUrl(){
|
7 |
$url = false;
|
8 |
if ($this->getValue()) {
|
9 |
+
$path = Mage::helper('bannersliderapp')->reImageName($this->getValue());
|
10 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)."media/bannerslider/".$path;
|
11 |
}
|
12 |
return $url;
|
app/code/local/Mss/Bannersliderapp/Block/Adminhtml/Grid.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mss_Bannersliderapp_Block_Adminhtml_Grid extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
+
{
|
4 |
+
public function __construct()
|
5 |
+
{
|
6 |
+
$this->_controller = 'adminhtml_bannersliderapp';
|
7 |
+
$this->_blockGroup = 'bannersliderapp';
|
8 |
+
$this->_headerText = Mage::helper('bannersliderapp')->__('Banner Manager');
|
9 |
+
$this->_addButtonLabel = Mage::helper('bannersliderapp')->__('Add Banner');
|
10 |
+
parent::__construct();
|
11 |
+
}
|
12 |
+
}
|
app/code/local/Mss/{Bannerslider → Bannersliderapp}/Block/Adminhtml/Renderer/Image.php
RENAMED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php class
|
2 |
{
|
3 |
public function render(Varien_Object $row)
|
4 |
{
|
@@ -6,7 +6,7 @@
|
|
6 |
if($row->getData('image') != NULL)
|
7 |
{
|
8 |
$image=$row->getData('image');
|
9 |
-
$path = Mage::helper('
|
10 |
return '<img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'media/bannerslider/'.$path.'" width="100px" alt="brandlogo"/>';
|
11 |
}
|
12 |
}
|
1 |
+
<?php class Mss_Bannersliderapp_Block_Adminhtml_Renderer_Image extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
2 |
{
|
3 |
public function render(Varien_Object $row)
|
4 |
{
|
6 |
if($row->getData('image') != NULL)
|
7 |
{
|
8 |
$image=$row->getData('image');
|
9 |
+
$path = Mage::helper('bannersliderapp')->reImageName($image);
|
10 |
return '<img src="'.Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'media/bannerslider/'.$path.'" width="100px" alt="brandlogo"/>';
|
11 |
}
|
12 |
}
|
app/code/local/Mss/{Bannerslider → Bannersliderapp}/Helper/Data.php
RENAMED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
class
|
3 |
{
|
4 |
|
5 |
public function deleteImageFile($image) {
|
1 |
<?php
|
2 |
+
class Mss_Bannersliderapp_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
{
|
4 |
|
5 |
public function deleteImageFile($image) {
|
app/code/local/Mss/Bannersliderapp/Model/Bannersliderapp.php
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Mss_Bannersliderapp_Model_Bannersliderapp extends Mage_Core_Model_Abstract
|
4 |
+
{
|
5 |
+
protected function _construct(){
|
6 |
+
|
7 |
+
$this->_init("bannersliderapp/bannersliderapp");
|
8 |
+
|
9 |
+
}
|
10 |
+
|
11 |
+
}
|
12 |
+
|
app/code/local/Mss/Bannersliderapp/Model/Mysql4/Bannersliderapp.php
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mss_Bannersliderapp_Model_Mysql4_Bannersliderapp extends Mage_Core_Model_Mysql4_Abstract
|
3 |
+
{
|
4 |
+
protected function _construct()
|
5 |
+
{
|
6 |
+
$this->_init("bannersliderapp/bannersliderapp", "banner_id");
|
7 |
+
}
|
8 |
+
}
|
app/code/local/Mss/Bannersliderapp/Model/Mysql4/Bannersliderapp/Collection.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mss_Bannersliderapp_Model_Mysql4_Bannersliderapp_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
3 |
+
{
|
4 |
+
|
5 |
+
public function _construct(){
|
6 |
+
parent::_construct();
|
7 |
+
$this->_init("bannersliderapp/bannersliderapp");
|
8 |
+
}
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
}
|
13 |
+
|
app/code/local/Mss/Bannersliderapp/Model/Observer.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mss_Bannersliderapp_Model_Observer
|
3 |
+
{
|
4 |
+
|
5 |
+
|
6 |
+
}
|
app/code/local/Mss/{Bannerslider/controllers/Adminhtml/BannersliderController.php → Bannersliderapp/controllers/Adminhtml/BannersliderappController.php}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
|
3 |
|
4 |
-
class
|
5 |
|
6 |
/**
|
7 |
* init layout and set active for current menu
|
@@ -10,7 +10,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
10 |
*/
|
11 |
protected function _initAction() {
|
12 |
$this->loadLayout()
|
13 |
-
->_setActiveMenu('
|
14 |
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
15 |
return $this;
|
16 |
}
|
@@ -29,7 +29,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
29 |
public function editAction() {
|
30 |
$id = $this->getRequest()->getParam('id');
|
31 |
$store = $this->getRequest()->getParam('store');
|
32 |
-
$model = Mage::getModel('
|
33 |
|
34 |
if ($model->getId() || $id == 0) {
|
35 |
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
@@ -39,18 +39,18 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
39 |
Mage::register('banner_data', $model);
|
40 |
|
41 |
$this->loadLayout();
|
42 |
-
$this->_setActiveMenu('
|
43 |
|
44 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
45 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
46 |
|
47 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
48 |
-
$this->_addContent($this->getLayout()->createBlock('
|
49 |
-
->_addLeft($this->getLayout()->createBlock('
|
50 |
|
51 |
$this->renderLayout();
|
52 |
} else {
|
53 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
54 |
$this->_redirect('*/*/');
|
55 |
}
|
56 |
}
|
@@ -61,14 +61,14 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
61 |
|
62 |
public function addinAction() {
|
63 |
$this->loadLayout();
|
64 |
-
$this->_setActiveMenu('
|
65 |
|
66 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
67 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
68 |
|
69 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
70 |
|
71 |
-
$this->_addContent($this->getLayout()->createBlock('
|
72 |
|
73 |
$this->renderLayout();
|
74 |
}
|
@@ -79,11 +79,11 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
79 |
public function saveAction() {
|
80 |
if ($data = $this->getRequest()->getPost()) {
|
81 |
|
82 |
-
$model = Mage::getModel('
|
83 |
if (isset($data['image']['delete'])) {
|
84 |
-
Mage::helper('
|
85 |
}
|
86 |
-
$image = Mage::helper('
|
87 |
|
88 |
if(!$image):
|
89 |
|
@@ -104,7 +104,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
104 |
|
105 |
|
106 |
$model->save();
|
107 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('
|
108 |
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
109 |
//Zend_debug::dump($this->getRequest()->getParam('slider'));die();
|
110 |
if($this->getRequest()->getParam('slider') == 'check'){
|
@@ -124,7 +124,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
124 |
return;
|
125 |
}
|
126 |
}
|
127 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('
|
128 |
$this->_redirect('*/*/');
|
129 |
}
|
130 |
|
@@ -134,7 +134,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
134 |
public function deleteAction() {
|
135 |
if ($this->getRequest()->getParam('id') > 0) {
|
136 |
try {
|
137 |
-
$model = Mage::getModel('
|
138 |
$model->setId($this->getRequest()->getParam('id'))
|
139 |
->delete();
|
140 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Banner was successfully deleted'));
|
@@ -157,7 +157,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
157 |
} else {
|
158 |
try {
|
159 |
foreach ($bannersliderIds as $bannersliderId) {
|
160 |
-
$bannerslider = Mage::getModel('
|
161 |
$bannerslider->delete();
|
162 |
}
|
163 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Total of %d record(s) were successfully deleted', count($bannersliderIds)));
|
@@ -178,7 +178,7 @@ class Mss_Bannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_C
|
|
178 |
} else {
|
179 |
try {
|
180 |
foreach ($bannerIds as $bannerId) {
|
181 |
-
$banner = Mage::getSingleton('
|
182 |
->load($bannerId)
|
183 |
->setStatus($this->getRequest()->getParam('status'))
|
184 |
->setIsMassupdate(true)
|
1 |
<?php
|
2 |
|
3 |
|
4 |
+
class Mss_Bannersliderapp_Adminhtml_BannersliderappController extends Mage_Adminhtml_Controller_Action {
|
5 |
|
6 |
/**
|
7 |
* init layout and set active for current menu
|
10 |
*/
|
11 |
protected function _initAction() {
|
12 |
$this->loadLayout()
|
13 |
+
->_setActiveMenu('bannersliderapp/bannersliderapp')
|
14 |
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
15 |
return $this;
|
16 |
}
|
29 |
public function editAction() {
|
30 |
$id = $this->getRequest()->getParam('id');
|
31 |
$store = $this->getRequest()->getParam('store');
|
32 |
+
$model = Mage::getModel('bannersliderapp/bannersliderapp')->setStoreId($store)->load($id);
|
33 |
|
34 |
if ($model->getId() || $id == 0) {
|
35 |
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
39 |
Mage::register('banner_data', $model);
|
40 |
|
41 |
$this->loadLayout();
|
42 |
+
$this->_setActiveMenu('bannersliderapp/bannersliderapp');
|
43 |
|
44 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
45 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
46 |
|
47 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
48 |
+
$this->_addContent($this->getLayout()->createBlock('bannersliderapp/adminhtml_bannersliderapp_edit'))
|
49 |
+
->_addLeft($this->getLayout()->createBlock('bannersliderapp/adminhtml_bannersliderapp_edit_tabs'));
|
50 |
|
51 |
$this->renderLayout();
|
52 |
} else {
|
53 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannersliderapp')->__($this->__('Item does not exist')));
|
54 |
$this->_redirect('*/*/');
|
55 |
}
|
56 |
}
|
61 |
|
62 |
public function addinAction() {
|
63 |
$this->loadLayout();
|
64 |
+
$this->_setActiveMenu('bannersliderapp/bannersliderapp');
|
65 |
|
66 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
67 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
68 |
|
69 |
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
70 |
|
71 |
+
$this->_addContent($this->getLayout()->createBlock('bannersliderapp/adminhtml_addbutton')->setTemplate('bannersliderapp/addbanner.phtml'));
|
72 |
|
73 |
$this->renderLayout();
|
74 |
}
|
79 |
public function saveAction() {
|
80 |
if ($data = $this->getRequest()->getPost()) {
|
81 |
|
82 |
+
$model = Mage::getModel('bannersliderapp/bannersliderapp');
|
83 |
if (isset($data['image']['delete'])) {
|
84 |
+
Mage::helper('bannersliderapp')->deleteImageFile($data['image']['value']);
|
85 |
}
|
86 |
+
$image = Mage::helper('bannersliderapp')->uploadBannerImage();
|
87 |
|
88 |
if(!$image):
|
89 |
|
104 |
|
105 |
|
106 |
$model->save();
|
107 |
+
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('bannersliderapp')->__('Banner was successfully saved'));
|
108 |
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
109 |
//Zend_debug::dump($this->getRequest()->getParam('slider'));die();
|
110 |
if($this->getRequest()->getParam('slider') == 'check'){
|
124 |
return;
|
125 |
}
|
126 |
}
|
127 |
+
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bannersliderapp')->__( $this->__('Unable to find banner to save')));
|
128 |
$this->_redirect('*/*/');
|
129 |
}
|
130 |
|
134 |
public function deleteAction() {
|
135 |
if ($this->getRequest()->getParam('id') > 0) {
|
136 |
try {
|
137 |
+
$model = Mage::getModel('bannersliderapp/bannersliderapp');
|
138 |
$model->setId($this->getRequest()->getParam('id'))
|
139 |
->delete();
|
140 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Banner was successfully deleted'));
|
157 |
} else {
|
158 |
try {
|
159 |
foreach ($bannersliderIds as $bannersliderId) {
|
160 |
+
$bannerslider = Mage::getModel('bannersliderapp/bannersliderapp')->load($bannersliderId);
|
161 |
$bannerslider->delete();
|
162 |
}
|
163 |
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Total of %d record(s) were successfully deleted', count($bannersliderIds)));
|
178 |
} else {
|
179 |
try {
|
180 |
foreach ($bannerIds as $bannerId) {
|
181 |
+
$banner = Mage::getSingleton('bannersliderapp/bannersliderapp')
|
182 |
->load($bannerId)
|
183 |
->setStatus($this->getRequest()->getParam('status'))
|
184 |
->setIsMassupdate(true)
|
app/code/local/Mss/{Bannerslider → Bannersliderapp}/controllers/BannerController.php
RENAMED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
class
|
4 |
|
5 |
private $key = 'bannerslider';
|
6 |
private $store = '1';
|
@@ -16,7 +16,7 @@ class Mss_Bannerslider_BannerController extends Mage_Core_Controller_Front_Actio
|
|
16 |
}
|
17 |
|
18 |
public function bannerAction(){
|
19 |
-
$bannerCollection = Mage::getModel('
|
20 |
$bannerCollection->addFieldToFilter( 'status', '1' );
|
21 |
|
22 |
/*check for cache*/
|
@@ -26,7 +26,7 @@ class Mss_Bannerslider_BannerController extends Mage_Core_Controller_Front_Actio
|
|
26 |
foreach($bannerCollection->getData() as $bannerdata){
|
27 |
|
28 |
|
29 |
-
$path = Mage::helper('
|
30 |
|
31 |
$imgeurl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'media/bannerslider/'.$path;
|
32 |
|
1 |
<?php
|
2 |
|
3 |
+
class Mss_Bannersliderapp_BannerController extends Mage_Core_Controller_Front_Action {
|
4 |
|
5 |
private $key = 'bannerslider';
|
6 |
private $store = '1';
|
16 |
}
|
17 |
|
18 |
public function bannerAction(){
|
19 |
+
$bannerCollection = Mage::getModel('bannersliderapp/bannersliderapp')->getCollection();
|
20 |
$bannerCollection->addFieldToFilter( 'status', '1' );
|
21 |
|
22 |
/*check for cache*/
|
26 |
foreach($bannerCollection->getData() as $bannerdata){
|
27 |
|
28 |
|
29 |
+
$path = Mage::helper('bannersliderapp')->reImageName( $bannerdata['image']);
|
30 |
|
31 |
$imgeurl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'media/bannerslider/'.$path;
|
32 |
|
app/code/local/Mss/{Bannerslider → Bannersliderapp}/etc/adminhtml.xml
RENAMED
@@ -4,10 +4,10 @@
|
|
4 |
<menu>
|
5 |
<connector>
|
6 |
<children>
|
7 |
-
<banner module="
|
8 |
<title>Manage Banners</title>
|
9 |
<sort_order>2</sort_order>
|
10 |
-
<action>
|
11 |
</banner>
|
12 |
</children>
|
13 |
</connector>
|
4 |
<menu>
|
5 |
<connector>
|
6 |
<children>
|
7 |
+
<banner module="bannersliderapp" translate="title">
|
8 |
<title>Manage Banners</title>
|
9 |
<sort_order>2</sort_order>
|
10 |
+
<action>admin_bannersliderapp/adminhtml_bannersliderapp</action>
|
11 |
</banner>
|
12 |
</children>
|
13 |
</connector>
|
app/code/local/Mss/Bannersliderapp/etc/config.xml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Mss_Bannersliderapp>
|
5 |
+
<version>0.1.1</version>
|
6 |
+
</Mss_Bannersliderapp>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<frontend>
|
10 |
+
<routers>
|
11 |
+
<bannersliderapp>
|
12 |
+
<use>standard</use>
|
13 |
+
<args>
|
14 |
+
<module>Mss_Bannersliderapp</module>
|
15 |
+
<frontName>bannersliderapp</frontName>
|
16 |
+
</args>
|
17 |
+
</bannersliderapp>
|
18 |
+
</routers>
|
19 |
+
</frontend>
|
20 |
+
|
21 |
+
<global>
|
22 |
+
<helpers>
|
23 |
+
<bannersliderapp>
|
24 |
+
<class>Mss_Bannersliderapp_Helper</class>
|
25 |
+
</bannersliderapp>
|
26 |
+
|
27 |
+
</helpers>
|
28 |
+
<blocks>
|
29 |
+
<bannersliderapp>
|
30 |
+
<class>Mss_Bannersliderapp_Block</class>
|
31 |
+
</bannersliderapp>
|
32 |
+
</blocks>
|
33 |
+
<models>
|
34 |
+
<bannersliderapp>
|
35 |
+
<class>Mss_Bannersliderapp_Model</class>
|
36 |
+
<resourceModel>bannersliderapp_mysql4</resourceModel>
|
37 |
+
</bannersliderapp>
|
38 |
+
<bannersliderapp_mysql4>
|
39 |
+
<class>Mss_Bannersliderapp_Model_Mysql4</class>
|
40 |
+
<entities>
|
41 |
+
<bannersliderapp>
|
42 |
+
<table>magentomobile_bannersliderapp</table>
|
43 |
+
</bannersliderapp>
|
44 |
+
</entities>
|
45 |
+
</bannersliderapp_mysql4>
|
46 |
+
</models>
|
47 |
+
<resources>
|
48 |
+
<bannersliderapp_setup>
|
49 |
+
<setup>
|
50 |
+
<module>Mss_Bannersliderapp</module>
|
51 |
+
</setup>
|
52 |
+
<connection>
|
53 |
+
<use>core_setup</use>
|
54 |
+
</connection>
|
55 |
+
</bannersliderapp_setup>
|
56 |
+
<bannersliderapp_write>
|
57 |
+
<connection>
|
58 |
+
<use>core_write</use>
|
59 |
+
</connection>
|
60 |
+
</bannersliderapp_write>
|
61 |
+
<bannersliderapp_read>
|
62 |
+
<connection>
|
63 |
+
<use>core_read</use>
|
64 |
+
</connection>
|
65 |
+
</bannersliderapp_read>
|
66 |
+
</resources>
|
67 |
+
|
68 |
+
</global>
|
69 |
+
<admin>
|
70 |
+
<routers>
|
71 |
+
<bannersliderapp>
|
72 |
+
<use>admin</use>
|
73 |
+
<args>
|
74 |
+
<module>Mss_Bannersliderapp</module>
|
75 |
+
<frontName>admin_bannersliderapp</frontName>
|
76 |
+
</args>
|
77 |
+
</bannersliderapp>
|
78 |
+
</routers>
|
79 |
+
</admin>
|
80 |
+
<adminhtml>
|
81 |
+
<layout>
|
82 |
+
<updates>
|
83 |
+
<bannersliderapp>
|
84 |
+
<file>bannersliderapp.xml</file>
|
85 |
+
</bannersliderapp>
|
86 |
+
</updates>
|
87 |
+
</layout>
|
88 |
+
</adminhtml>
|
89 |
+
</config>
|
app/code/local/Mss/{Bannerslider/sql/bannerslider_setup/mysql4-install-0.1.0.php → Bannersliderapp/sql/bannersliderapp_setup/mysql4-install-0.1.1.php}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
$installer = $this;
|
3 |
$installer->startSetup();
|
4 |
-
$sql="CREATE TABLE {$this->getTable('
|
5 |
`banner_id` int(11) unsigned NOT NULL auto_increment,
|
6 |
`name` varchar(255) NOT NULL default '',
|
7 |
`order_banner` int(11) NULL default '0',
|
1 |
<?php
|
2 |
$installer = $this;
|
3 |
$installer->startSetup();
|
4 |
+
$sql="CREATE TABLE {$this->getTable('magentomobile_bannersliderapp')} (
|
5 |
`banner_id` int(11) unsigned NOT NULL auto_increment,
|
6 |
`name` varchar(255) NOT NULL default '',
|
7 |
`order_banner` int(11) NULL default '0',
|
app/code/local/Mss/Connector/controllers/CartController.php
CHANGED
@@ -40,15 +40,25 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
40 |
}
|
41 |
|
42 |
public function getMinimumorderAction(){
|
|
|
|
|
43 |
|
44 |
-
$cart_data
|
|
|
|
|
|
|
|
|
45 |
|
46 |
-
|
47 |
-
|
|
|
|
|
|
|
|
|
48 |
echo json_encode(array('status'=>'error','message'=> $this->__('Nothing to add in cart, cart is empty.')));
|
49 |
exit;
|
50 |
endif;
|
51 |
-
|
52 |
$cart = Mage::helper ( 'checkout/cart' )->getCart ();
|
53 |
$cart->truncate();
|
54 |
|
@@ -57,14 +67,13 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
57 |
'name' => 'frontend'
|
58 |
) );
|
59 |
|
60 |
-
foreach($cart_data as $params):
|
61 |
-
|
62 |
-
|
63 |
try {
|
64 |
|
65 |
|
66 |
$product = Mage::getModel ('catalog/product')->load ($params['product']);
|
67 |
-
|
68 |
if ($product->getData('has_options')):
|
69 |
# validate options
|
70 |
$options=$params['options'];
|
@@ -213,26 +222,54 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
213 |
'name' => 'frontend'
|
214 |
) );
|
215 |
$cart = Mage::helper ( 'checkout/cart' )->getCart ();
|
216 |
-
|
217 |
-
|
218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
|
220 |
-
if(isset($params['options'])):
|
221 |
$params = array("product"=>$params ['product'],"options"=>$params['options'],"super_attribute"=>json_decode($params ['super_attribute'],1),
|
222 |
-
'qty' => $params ['qty']
|
223 |
);
|
224 |
-
|
|
|
225 |
$params = array("product"=>$params ['product'],"super_attribute"=>json_decode($params ['super_attribute'],1),
|
226 |
-
'qty' => $params ['qty']
|
227 |
);
|
228 |
-
|
229 |
-
|
230 |
$cart->addProduct ( $product,$params);
|
231 |
-
|
232 |
-
|
233 |
|
234 |
-
|
235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
|
237 |
|
238 |
$session->setLastAddedProductId ( $product->getId () );
|
@@ -417,7 +454,7 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
417 |
|
418 |
if (! $cart->getItemsCount ()) {
|
419 |
echo json_encode ( array (
|
420 |
-
'
|
421 |
'message' => $this->__("You can't use coupon code with an empty shopping cart"
|
422 |
) ));
|
423 |
return false;
|
@@ -428,7 +465,7 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
428 |
$oldCouponCode = $cart->getQuote ()->getCouponCode ();
|
429 |
if (! strlen ( $couponCode ) && ! strlen ( $oldCouponCode )) {
|
430 |
echo json_encode ( array (
|
431 |
-
'
|
432 |
'message' => "Emptyed."
|
433 |
) );
|
434 |
return false;
|
@@ -443,29 +480,29 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
443 |
if ($codeLength) {
|
444 |
if ($isCodeLengthValid && $couponCode == $cart->getQuote ()->getCouponCode ()) {
|
445 |
$messages = array (
|
446 |
-
'
|
447 |
'message' => $this->__ ( 'Coupon code "%s" was applied.', Mage::helper ( 'core' )->escapeHtml ( $couponCode ) )
|
448 |
);
|
449 |
} else {
|
450 |
$messages = array (
|
451 |
-
'
|
452 |
'message' => $this->__ ( 'Coupon code "%s" is not valid.', Mage::helper ( 'core' )->escapeHtml ( $couponCode ) )
|
453 |
);
|
454 |
}
|
455 |
} else {
|
456 |
$messages = array (
|
457 |
-
'
|
458 |
'message' => $this->__ ( 'Coupon code was canceled.' )
|
459 |
);
|
460 |
}
|
461 |
} catch ( Mage_Core_Exception $e ) {
|
462 |
$messages = array (
|
463 |
-
'
|
464 |
'message' => $e->getMessage ()
|
465 |
);
|
466 |
} catch ( Exception $e ) {
|
467 |
$messages = array (
|
468 |
-
'
|
469 |
'message' => $this->__ ( 'Cannot apply the coupon code.' )
|
470 |
);
|
471 |
}
|
@@ -967,13 +1004,11 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
967 |
try {
|
968 |
$addressData=Mage::getModel('customer/address')->load($addressId)->getData();
|
969 |
$quote=Mage::getSingleton ( 'checkout/session' )->getQuote();
|
970 |
-
|
971 |
|
972 |
$billingAddress = $quote->getBillingAddress()->addData($addressData);
|
973 |
$shippingAddress = $quote->getShippingAddress()->addData($addressData);
|
974 |
-
|
975 |
-
$shippingAddress->setCollectShippingRates(true)->collectShippingRates()
|
976 |
-
->setShippingMethod($shipping_method);
|
977 |
|
978 |
if($paymentmethod != 'authorizenet'):
|
979 |
$shippingAddress->setPaymentMethod($paymentmethod);
|
@@ -1001,8 +1036,11 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1001 |
|
1002 |
|
1003 |
$service = Mage::getModel('sales/service_quote', $quote);
|
|
|
1004 |
$service->submitAll();
|
1005 |
$order = $service->getOrder();
|
|
|
|
|
1006 |
$order->setMms_order_type('app')->save();
|
1007 |
$order->sendNewOrderEmail();
|
1008 |
$quote->delete();
|
@@ -1015,7 +1053,8 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1015 |
|
1016 |
$result=array( 'message'=>$this->__('Order placed successfully.'),
|
1017 |
'orderid'=>$order->getIncrementId(),
|
1018 |
-
|
|
|
1019 |
|
1020 |
);
|
1021 |
|
@@ -1041,7 +1080,7 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1041 |
}else{
|
1042 |
|
1043 |
|
1044 |
-
|
1045 |
|
1046 |
$getParams = $this->getRequest()->getParams();
|
1047 |
|
@@ -1063,7 +1102,7 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1063 |
endif;
|
1064 |
|
1065 |
$checkout_session =Mage::getModel ( 'checkout/session' )->getQuoteId();
|
1066 |
-
|
1067 |
|
1068 |
$quote = Mage::getModel('sales/quote')->load($checkout_session);
|
1069 |
$quote->setStoreId(Mage::app()->getStore()->getId());
|
@@ -1096,14 +1135,11 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1096 |
else
|
1097 |
$billingAddress['region_id']=$getParams['region_id'];
|
1098 |
|
1099 |
-
$quote->getBillingAddress()
|
1100 |
-
->addData($billingAddress);
|
1101 |
|
1102 |
-
|
1103 |
-
->addData($billingAddress)
|
1104 |
-
->setShippingMethod($shipping_method);
|
1105 |
|
1106 |
-
$quote->getShippingAddress()->setCollectShippingRates(true)
|
1107 |
$quote->collectTotals();
|
1108 |
|
1109 |
if($payment_method != 'authorizenet'):
|
@@ -1133,7 +1169,9 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1133 |
$order = $service->getOrder();
|
1134 |
$order->setMms_order_type('app')->save();
|
1135 |
$order->sendNewOrderEmail();
|
1136 |
-
|
|
|
|
|
1137 |
$increment_id = $order->getRealOrderId();
|
1138 |
$quote = $customer = $service = null;
|
1139 |
|
@@ -1143,7 +1181,7 @@ class Mss_Connector_CartController extends Mage_Core_Controller_Front_Action {
|
|
1143 |
Mage::getSingleton('checkout/cart')->truncate()->save();
|
1144 |
}
|
1145 |
Mage::getSingleton('checkout/session')->clear();
|
1146 |
-
echo json_encode(array('status' =>'success','orderid' => $increment_id));
|
1147 |
exit;
|
1148 |
}
|
1149 |
catch (Exception $e)
|
40 |
}
|
41 |
|
42 |
public function getMinimumorderAction(){
|
43 |
+
$data = $this->getRequest()->getParams();
|
44 |
+
$cart_data = json_decode($data['cart_data'],1);
|
45 |
|
46 |
+
foreach ($cart_data['items'] as $key => $value) {
|
47 |
+
|
48 |
+
if($value['custom_image_name']) {
|
49 |
+
$datas = base64_decode($value['custom_image']);
|
50 |
+
file_put_contents(Mage::getBaseDir().'/tmp/'.$cart_data['custom_image_name'], $datas);
|
51 |
|
52 |
+
$_FILES['options_'.$value['attribute_id'].'_file'] = array ( 'name' => $value['custom_image_name'], 'type' => "image/jpeg" ,"tmp_name" => Mage::getBaseDir().'/tmp/'.$value['custom_image_name'] ,"error" => 0 ,"size" => getimagesize(Mage::getBaseDir().'/tmp/'.$value['custom_image_name']),'app'=>true );
|
53 |
+
$value['options_'.$value['attribute_id'].'_file_action'] = 'save_new';
|
54 |
+
$value['uenc']='aHR0cDovL21hc3RlcnNvZnR3YXJldGVjaG5vbG9naWVzLmNvbS9tbXNfZGV2ZWxvcG1lbnQvZGVmYXVsdC90ZXN0LXByb2R1Y3QuaHRtbA';
|
55 |
+
}
|
56 |
+
}
|
57 |
+
/*if(!sizeof($value)):
|
58 |
echo json_encode(array('status'=>'error','message'=> $this->__('Nothing to add in cart, cart is empty.')));
|
59 |
exit;
|
60 |
endif;
|
61 |
+
*/
|
62 |
$cart = Mage::helper ( 'checkout/cart' )->getCart ();
|
63 |
$cart->truncate();
|
64 |
|
67 |
'name' => 'frontend'
|
68 |
) );
|
69 |
|
70 |
+
foreach($cart_data['items'] as $params):
|
71 |
+
|
|
|
72 |
try {
|
73 |
|
74 |
|
75 |
$product = Mage::getModel ('catalog/product')->load ($params['product']);
|
76 |
+
|
77 |
if ($product->getData('has_options')):
|
78 |
# validate options
|
79 |
$options=$params['options'];
|
222 |
'name' => 'frontend'
|
223 |
) );
|
224 |
$cart = Mage::helper ( 'checkout/cart' )->getCart ();
|
225 |
+
/*bundle product code start*/
|
226 |
+
|
227 |
+
|
228 |
+
if (isset ($params['bundle_option']) ){
|
229 |
+
|
230 |
+
if(isset($params['options'])) {
|
231 |
+
$params = array("product"=>$params ['product'],"options"=>$params['options'],
|
232 |
+
"bundle_option"=>json_decode($params['bundle_option'],1),'qty' => $params ['qty']);
|
233 |
+
}else{
|
234 |
+
$params = array("product"=>$params ['product'],
|
235 |
+
"bundle_option"=>json_decode($params['bundle_option'],1),'qty' => $params ['qty']);
|
236 |
+
}
|
237 |
+
$cart->addProduct ( $product,$params);
|
238 |
+
}elseif (isset ( $params ['super_attribute'] )) {
|
239 |
+
|
240 |
+
|
241 |
+
if(isset($params['options'])) {
|
242 |
+
|
243 |
+
|
244 |
|
|
|
245 |
$params = array("product"=>$params ['product'],"options"=>$params['options'],"super_attribute"=>json_decode($params ['super_attribute'],1),
|
246 |
+
'qty' => $params ['qty']
|
247 |
);
|
248 |
+
|
249 |
+
}else{
|
250 |
$params = array("product"=>$params ['product'],"super_attribute"=>json_decode($params ['super_attribute'],1),
|
251 |
+
'qty' => $params ['qty']
|
252 |
);
|
253 |
+
}
|
|
|
254 |
$cart->addProduct ( $product,$params);
|
255 |
+
}else{
|
256 |
+
if($params['custom_image_name']) { // die('log');
|
257 |
|
258 |
+
$data = base64_decode($params['custom_image']);
|
259 |
+
file_put_contents(Mage::getBaseDir().'/tmp/'.$params['custom_image_name'], $data);
|
260 |
+
|
261 |
+
$_FILES['options_'.$params['attribute_id'].'_file'] = array ( 'name' => $params['custom_image_name'], 'type' => "image/jpeg" ,"tmp_name" => Mage::getBaseDir().'/tmp/'.$params['custom_image_name'] ,"error" => 0 ,"size" => getimagesize(Mage::getBaseDir().'/tmp/'.$params['custom_image_name']),'app'=>true );
|
262 |
+
|
263 |
+
//$params ='';
|
264 |
+
//$params['product'] = $product_id;
|
265 |
+
$options['options_'.$params['attribute_id'].'_file_action'] = 'save_new';
|
266 |
+
$params['options_'.$params['attribute_id'].'_file_action'] = 'save_new';
|
267 |
+
$params['uenc']='aHR0cDovL21hc3RlcnNvZnR3YXJldGVjaG5vbG9naWVzLmNvbS9tbXNfZGV2ZWxvcG1lbnQvZGVmYXVsdC90ZXN0LXByb2R1Y3QuaHRtbA';
|
268 |
+
// $params['qty'] = 1;
|
269 |
+
//$result['data'] = $params;
|
270 |
+
}
|
271 |
+
$cart->addProduct ( $product, $params);
|
272 |
+
}
|
273 |
|
274 |
|
275 |
$session->setLastAddedProductId ( $product->getId () );
|
454 |
|
455 |
if (! $cart->getItemsCount ()) {
|
456 |
echo json_encode ( array (
|
457 |
+
'status' => 'error',
|
458 |
'message' => $this->__("You can't use coupon code with an empty shopping cart"
|
459 |
) ));
|
460 |
return false;
|
465 |
$oldCouponCode = $cart->getQuote ()->getCouponCode ();
|
466 |
if (! strlen ( $couponCode ) && ! strlen ( $oldCouponCode )) {
|
467 |
echo json_encode ( array (
|
468 |
+
'status' => 'error',
|
469 |
'message' => "Emptyed."
|
470 |
) );
|
471 |
return false;
|
480 |
if ($codeLength) {
|
481 |
if ($isCodeLengthValid && $couponCode == $cart->getQuote ()->getCouponCode ()) {
|
482 |
$messages = array (
|
483 |
+
'status' => 'true',
|
484 |
'message' => $this->__ ( 'Coupon code "%s" was applied.', Mage::helper ( 'core' )->escapeHtml ( $couponCode ) )
|
485 |
);
|
486 |
} else {
|
487 |
$messages = array (
|
488 |
+
'status' => 'error',
|
489 |
'message' => $this->__ ( 'Coupon code "%s" is not valid.', Mage::helper ( 'core' )->escapeHtml ( $couponCode ) )
|
490 |
);
|
491 |
}
|
492 |
} else {
|
493 |
$messages = array (
|
494 |
+
'status' => 'error',
|
495 |
'message' => $this->__ ( 'Coupon code was canceled.' )
|
496 |
);
|
497 |
}
|
498 |
} catch ( Mage_Core_Exception $e ) {
|
499 |
$messages = array (
|
500 |
+
'status' => 'error',
|
501 |
'message' => $e->getMessage ()
|
502 |
);
|
503 |
} catch ( Exception $e ) {
|
504 |
$messages = array (
|
505 |
+
'status' => 'error',
|
506 |
'message' => $this->__ ( 'Cannot apply the coupon code.' )
|
507 |
);
|
508 |
}
|
1004 |
try {
|
1005 |
$addressData=Mage::getModel('customer/address')->load($addressId)->getData();
|
1006 |
$quote=Mage::getSingleton ( 'checkout/session' )->getQuote();
|
1007 |
+
$quote->setMms_order_type('app')->save();
|
1008 |
|
1009 |
$billingAddress = $quote->getBillingAddress()->addData($addressData);
|
1010 |
$shippingAddress = $quote->getShippingAddress()->addData($addressData);
|
1011 |
+
$shippingAddress->setCollectShippingRates(true)->setShippingMethod($shipping_method);
|
|
|
|
|
1012 |
|
1013 |
if($paymentmethod != 'authorizenet'):
|
1014 |
$shippingAddress->setPaymentMethod($paymentmethod);
|
1036 |
|
1037 |
|
1038 |
$service = Mage::getModel('sales/service_quote', $quote);
|
1039 |
+
|
1040 |
$service->submitAll();
|
1041 |
$order = $service->getOrder();
|
1042 |
+
$items = $order->getAllItems();
|
1043 |
+
$itemcount = count($items);
|
1044 |
$order->setMms_order_type('app')->save();
|
1045 |
$order->sendNewOrderEmail();
|
1046 |
$quote->delete();
|
1053 |
|
1054 |
$result=array( 'message'=>$this->__('Order placed successfully.'),
|
1055 |
'orderid'=>$order->getIncrementId(),
|
1056 |
+
'items_count'=>$itemcount,
|
1057 |
+
'result'=>'success'
|
1058 |
|
1059 |
);
|
1060 |
|
1080 |
}else{
|
1081 |
|
1082 |
|
1083 |
+
ini_set('memory_limit', '128M');
|
1084 |
|
1085 |
$getParams = $this->getRequest()->getParams();
|
1086 |
|
1102 |
endif;
|
1103 |
|
1104 |
$checkout_session =Mage::getModel ( 'checkout/session' )->getQuoteId();
|
1105 |
+
Mage::getSingleton ( 'checkout/session' )->getQuote()->setMms_order_type('app')->save();
|
1106 |
|
1107 |
$quote = Mage::getModel('sales/quote')->load($checkout_session);
|
1108 |
$quote->setStoreId(Mage::app()->getStore()->getId());
|
1135 |
else
|
1136 |
$billingAddress['region_id']=$getParams['region_id'];
|
1137 |
|
1138 |
+
$quote->getBillingAddress()->addData($billingAddress);
|
|
|
1139 |
|
1140 |
+
$quote->getShippingAddress()->addData($billingAddress)->setShippingMethod($shipping_method);
|
|
|
|
|
1141 |
|
1142 |
+
$quote->getShippingAddress()->setCollectShippingRates(true);
|
1143 |
$quote->collectTotals();
|
1144 |
|
1145 |
if($payment_method != 'authorizenet'):
|
1169 |
$order = $service->getOrder();
|
1170 |
$order->setMms_order_type('app')->save();
|
1171 |
$order->sendNewOrderEmail();
|
1172 |
+
$items = $order->getAllItems();
|
1173 |
+
$itemcount = count($items);
|
1174 |
+
|
1175 |
$increment_id = $order->getRealOrderId();
|
1176 |
$quote = $customer = $service = null;
|
1177 |
|
1181 |
Mage::getSingleton('checkout/cart')->truncate()->save();
|
1182 |
}
|
1183 |
Mage::getSingleton('checkout/session')->clear();
|
1184 |
+
echo json_encode(array('status' =>'success','orderid' => $increment_id,'items_count'=>$itemcount));
|
1185 |
exit;
|
1186 |
}
|
1187 |
catch (Exception $e)
|
app/code/local/Mss/Connector/controllers/CustomerController.php
CHANGED
@@ -514,7 +514,7 @@ class Mss_Connector_CustomerController extends Mage_Core_Controller_Front_Action
|
|
514 |
if($states->getData()):
|
515 |
$countriesArray[]=array('value'=>$country['value'],'name'=>$country['label'],'state'=>$states->getData());
|
516 |
else:
|
517 |
-
$countriesArray[]=array('value'=>$country['value'],'name'=>$country['label'],'state'=>
|
518 |
endif;
|
519 |
|
520 |
|
514 |
if($states->getData()):
|
515 |
$countriesArray[]=array('value'=>$country['value'],'name'=>$country['label'],'state'=>$states->getData());
|
516 |
else:
|
517 |
+
$countriesArray[]=array('value'=>$country['value'],'name'=>$country['label'],'state'=>array());
|
518 |
endif;
|
519 |
|
520 |
|
app/code/local/Mss/Connector/controllers/IndexController.php
CHANGED
@@ -465,9 +465,10 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
465 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
466 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
467 |
'qty'=>(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId())->getQty(),
|
|
|
468 |
'rating' => $rating_final,
|
469 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
470 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
471 |
|
472 |
);
|
473 |
}
|
@@ -523,7 +524,7 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
523 |
'news_to_date' => $product->getNewsToDate (),
|
524 |
'special_from_date' => $product->getSpecialFromDate (),
|
525 |
'special_to_date' => $product->getSpecialToDate (),
|
526 |
-
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product','300','300'),
|
527 |
'url_key' => $product->getProductUrl (),
|
528 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
529 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert (
|
@@ -532,9 +533,10 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
532 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
533 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
534 |
'qty'=>$qty,
|
|
|
535 |
'rating' => $rating_final,
|
536 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
537 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
538 |
);
|
539 |
endif;
|
540 |
else:
|
@@ -547,7 +549,7 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
547 |
'news_to_date' => $product->getNewsToDate (),
|
548 |
'special_from_date' => $product->getSpecialFromDate (),
|
549 |
'special_to_date' => $product->getSpecialToDate (),
|
550 |
-
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product','300','300'),
|
551 |
'url_key' => $product->getProductUrl (),
|
552 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
553 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert (
|
@@ -556,9 +558,10 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
556 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
557 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
558 |
'qty'=>$qty,
|
|
|
559 |
'rating' => $rating_final,
|
560 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
561 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
562 |
);
|
563 |
endif;
|
564 |
endforeach;
|
@@ -652,9 +655,10 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
652 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
653 |
'symbol'=>Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
654 |
'qty'=>$qty,
|
|
|
655 |
'rating' => $rating_final,
|
656 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
657 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
658 |
);
|
659 |
}
|
660 |
return $new_productlist;
|
@@ -726,9 +730,10 @@ class Mss_Connector_IndexController extends Mage_Core_Controller_Front_Action {
|
|
726 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
727 |
'symbol'=>Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
728 |
'qty'=>$qty,
|
|
|
729 |
'rating' => $rating_final,
|
730 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
731 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
732 |
);
|
733 |
}
|
734 |
|
465 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
466 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
467 |
'qty'=>(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId())->getQty(),
|
468 |
+
'product_type'=>$product->getTypeId(),
|
469 |
'rating' => $rating_final,
|
470 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
471 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
472 |
|
473 |
);
|
474 |
}
|
524 |
'news_to_date' => $product->getNewsToDate (),
|
525 |
'special_from_date' => $product->getSpecialFromDate (),
|
526 |
'special_to_date' => $product->getSpecialToDate (),
|
527 |
+
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage()?:$product->getSmallImage(),'product','300','300'),
|
528 |
'url_key' => $product->getProductUrl (),
|
529 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
530 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert (
|
533 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
534 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
535 |
'qty'=>$qty,
|
536 |
+
'product_type'=>$product->getTypeId(),
|
537 |
'rating' => $rating_final,
|
538 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
539 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
540 |
);
|
541 |
endif;
|
542 |
else:
|
549 |
'news_to_date' => $product->getNewsToDate (),
|
550 |
'special_from_date' => $product->getSpecialFromDate (),
|
551 |
'special_to_date' => $product->getSpecialToDate (),
|
552 |
+
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage()?:$product->getSmallImage(),'product','300','300'),
|
553 |
'url_key' => $product->getProductUrl (),
|
554 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
555 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert (
|
558 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
559 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
560 |
'qty'=>$qty,
|
561 |
+
'product_type'=>$product->getTypeId(),
|
562 |
'rating' => $rating_final,
|
563 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
564 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
565 |
);
|
566 |
endif;
|
567 |
endforeach;
|
655 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
656 |
'symbol'=>Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
657 |
'qty'=>$qty,
|
658 |
+
'product_type'=>$product->getTypeId(),
|
659 |
'rating' => $rating_final,
|
660 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
661 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
662 |
);
|
663 |
}
|
664 |
return $new_productlist;
|
730 |
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
731 |
'symbol'=>Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
732 |
'qty'=>$qty,
|
733 |
+
'product_type'=>$product->getTypeId(),
|
734 |
'rating' => $rating_final,
|
735 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
736 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
737 |
);
|
738 |
}
|
739 |
|
app/code/local/Mss/Connector/controllers/ItemsController.php
CHANGED
@@ -85,6 +85,7 @@ class Mss_Connector_ItemsController extends Mage_Core_Controller_Front_Action {
|
|
85 |
'image_url' => $product->getImageUrl (),
|
86 |
'url_key' => $product->getProductUrl (),
|
87 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
|
|
88 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getSpecialPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
89 |
'symbol' => Mage::app ()->getLocale ()->currency ( Mage::app ()->getStore ()->getCurrentCurrencyCode () )->getSymbol ()
|
90 |
);
|
85 |
'image_url' => $product->getImageUrl (),
|
86 |
'url_key' => $product->getProductUrl (),
|
87 |
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
88 |
+
'product_type'=>$product->getTypeId(),
|
89 |
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getSpecialPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
90 |
'symbol' => Mage::app ()->getLocale ()->currency ( Mage::app ()->getStore ()->getCurrentCurrencyCode () )->getSymbol ()
|
91 |
);
|
app/code/local/Mss/Connector/controllers/ProductsController.php
CHANGED
@@ -78,6 +78,32 @@ class Mss_Connector_ProductsController extends Mage_Core_Controller_Front_Action
|
|
78 |
$newPrice = Mage::helper('directory')->currencyConvert($price, $from, $to);
|
79 |
return $newPrice;
|
80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
public function getproductdetailAction() {
|
83 |
$this->productdetail($this->getRequest ()->getParam ( 'productid' ));
|
@@ -145,234 +171,364 @@ class Mss_Connector_ProductsController extends Mage_Core_Controller_Front_Action
|
|
145 |
|
146 |
/*get product rating*/
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
151 |
|
152 |
-
|
153 |
-
|
154 |
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
$c_ops=array();
|
161 |
-
|
162 |
-
if($product->getData('has_options')):
|
163 |
-
$has_custom_options = true;
|
164 |
-
// Start custom options
|
165 |
-
$all_custom_option_array = array();
|
166 |
-
$attVal = $product->getOptions();
|
167 |
-
$optStr = "";
|
168 |
-
$inc=0;
|
169 |
-
$has_custom_option = 0;
|
170 |
-
|
171 |
-
foreach($attVal as $optionKey => $optionVal):
|
172 |
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
$
|
177 |
-
|
178 |
-
$all_custom_option_array
|
179 |
-
$
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
|
|
|
|
|
|
212 |
endforeach;
|
213 |
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
$has_custom_options = false;
|
220 |
-
endif;
|
221 |
-
|
222 |
-
$addtionatt=$this->_getAditional();
|
223 |
-
|
224 |
-
/*get confiogurable product attributes*/
|
225 |
-
Mage::register('product', $product);
|
226 |
-
Mage::helper('catalog/product')->setSkipSaleableCheck(true);
|
227 |
-
$config_attributes = new Mage_Catalog_Block_Product_View_Type_Configurable;
|
228 |
-
$condigurable_data = json_decode($config_attributes->getJsonConfig(),1);
|
229 |
-
$configurable = array();
|
230 |
-
|
231 |
-
foreach($condigurable_data['attributes'] as $key => $value)
|
232 |
-
$configurable[] = $value;
|
233 |
|
234 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
-
|
237 |
-
|
238 |
-
'sku' => $product->getSku (),
|
239 |
-
'name' => $product->getName (),
|
240 |
-
'news_from_date' => $product->getNewsFromDate (),
|
241 |
-
'news_to_date' => $product->getNewsToDate (),
|
242 |
-
'special_from_date' => $product->getSpecialFromDate (),
|
243 |
-
'special_to_date' => $product->getSpecialToDate (),
|
244 |
-
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product','500','500'),
|
245 |
-
'url_key' => $product->getProductUrl().'?shareid='.$product->getId(),
|
246 |
-
'is_in_stock' => $product->isAvailable (),
|
247 |
-
'has_custom_options' => $has_custom_options,
|
248 |
-
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
249 |
-
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )
|
250 |
-
->currencyConvert (
|
251 |
-
Mage::helper('tax')->getPrice($product, $product->getFinalPrice(),
|
252 |
-
true, null, null, null, null, false),
|
253 |
-
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
254 |
-
'storeUrl' => $storeUrl,
|
255 |
-
'description' => $description,
|
256 |
-
'short_description'=>nl2br ($product->getShortDescription()),
|
257 |
-
'symbol' => Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
258 |
-
'weight'=>$product->getWeight(),
|
259 |
-
'review'=>$reviews,
|
260 |
-
'rating'=>$rating,
|
261 |
-
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
262 |
-
'additional'=>$addtionatt,
|
263 |
-
'specialprice'=>Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()),
|
264 |
-
);
|
265 |
|
266 |
-
|
267 |
-
|
|
|
|
|
|
|
|
|
268 |
|
269 |
-
if(count($configurable))
|
270 |
-
$productdetail["configurable"] = $configurable;
|
271 |
-
|
272 |
-
echo json_encode ( $productdetail );
|
273 |
-
else:
|
274 |
$storeUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
|
275 |
$description = nl2br ( $product->getDescription () );
|
276 |
$description = str_replace("{{media url=\"",$storeUrl,$description);
|
277 |
$description = str_replace("\"}}","",$description);
|
278 |
-
|
279 |
-
|
280 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
$
|
310 |
-
|
311 |
-
|
312 |
-
foreach($optionVal->getValues() as $valuesKey => $valuesVal):
|
313 |
-
|
314 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['id'] = $valuesVal->getId();
|
315 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['title'] = $valuesVal->getTitle();
|
316 |
-
$defaultcustomprice = str_replace(",","",($valuesVal->getPrice()));
|
317 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
318 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price_type'] = $valuesVal->getPriceType();
|
319 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sku'] = $valuesVal->getSku();
|
320 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sort_order'] = $valuesVal->getSortOrder();
|
321 |
-
|
322 |
-
if($valuesVal->getPriceType() == "percent"):
|
323 |
-
$defaultcustomprice = str_replace(",","", ($product->getFinalPrice()));
|
324 |
-
$customproductprice = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
325 |
-
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = str_replace(",","", round((floatval($customproductprice) * floatval(round($valuesVal->getPrice(),1))/100),2));
|
326 |
-
endif;
|
327 |
-
|
328 |
-
$inner_inc++;
|
329 |
-
endforeach;
|
330 |
-
$inc++;
|
331 |
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
|
|
336 |
|
337 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
$productdetail = array (
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
|
|
368 |
if(count($all_custom_option_array))
|
369 |
-
|
370 |
|
371 |
-
|
372 |
-
|
373 |
echo json_encode ( $productdetail );
|
|
|
374 |
|
375 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
}
|
377 |
|
378 |
|
@@ -571,9 +727,10 @@ class Mss_Connector_ProductsController extends Mage_Core_Controller_Front_Action
|
|
571 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
572 |
'qty'=>(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId())->getQty(),
|
573 |
'rating' => $rating_final,
|
|
|
574 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
575 |
-
|
576 |
-
|
577 |
);
|
578 |
}
|
579 |
|
78 |
$newPrice = Mage::helper('directory')->currencyConvert($price, $from, $to);
|
79 |
return $newPrice;
|
80 |
}
|
81 |
+
public function getrelatedProductAction(){
|
82 |
+
|
83 |
+
$product_id =$this->getRequest ()->getParam ( 'productid' );
|
84 |
+
$productdetail = array ();
|
85 |
+
$relArray = array();
|
86 |
+
$RelProduct = Mage::getModel('catalog/product')->load($product_id)->getRelatedProductIds();
|
87 |
+
|
88 |
+
foreach ($RelProduct as $id) {
|
89 |
+
$product = Mage::getModel('catalog/product')->load($id)->getData();
|
90 |
+
|
91 |
+
$relArray['entity_id'] = $product['entity_id'];
|
92 |
+
$relArray['sku'] = $product['sku'];
|
93 |
+
$relArray['name'] = $product['name'];
|
94 |
+
$relArray['image']= $product['image'];
|
95 |
+
$relArray['small_image'] = $product['small_image'];
|
96 |
+
$relArray['thumbnail']= $product['url_key'];
|
97 |
+
$relArray['url_path']= $product['url_path'];
|
98 |
+
$relArray['url_key'] = $product['url_key'];
|
99 |
+
$relArray['price'] = $product['price'];
|
100 |
+
$relArray['cost'] = $product['cost'];
|
101 |
+
|
102 |
+
array_push($productdetail, $relArray);
|
103 |
+
}
|
104 |
+
echo json_encode($productdetail);
|
105 |
+
}
|
106 |
+
|
107 |
|
108 |
public function getproductdetailAction() {
|
109 |
$this->productdetail($this->getRequest ()->getParam ( 'productid' ));
|
171 |
|
172 |
/*get product rating*/
|
173 |
|
174 |
+
if($product->getTypeId() == "configurable")
|
175 |
+
{
|
176 |
+
$productdetail = array();
|
177 |
+
$config = $product->getTypeInstance(true);
|
178 |
|
179 |
+
$conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
|
180 |
+
$simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions()->getData();
|
181 |
|
182 |
+
$storeUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
|
183 |
+
$description = nl2br ( $product->getDescription () );
|
184 |
+
$description = str_replace("{{media url=\"",$storeUrl,$description);
|
185 |
+
$description = str_replace("\"}}","",$description);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
+
$c_ops=array();
|
188 |
+
|
189 |
+
if($product->getData('has_options')){
|
190 |
+
$has_custom_options = true;
|
191 |
+
// Start custom options
|
192 |
+
$all_custom_option_array = array();
|
193 |
+
$attVal = $product->getOptions();
|
194 |
+
$optStr = "";
|
195 |
+
$inc=0;
|
196 |
+
$has_custom_option = 0;
|
197 |
+
|
198 |
+
foreach($attVal as $optionKey => $optionVal):
|
199 |
|
200 |
+
$has_custom_option = 1;
|
201 |
+
$all_custom_option_array[$inc]['custom_option_name']=$optionVal->getTitle();
|
202 |
+
$all_custom_option_array[$inc]['custom_option_id']=$optionVal->getId();
|
203 |
+
$all_custom_option_array[$inc]['custom_option_is_required']=$optionVal->getIsRequire();
|
204 |
+
$all_custom_option_array[$inc]['custom_option_type']=$optionVal->getType();
|
205 |
+
$all_custom_option_array[$inc]['sort_order'] = $optionVal->getSortOrder();
|
206 |
+
$all_custom_option_array[$inc]['all'] = $optionVal->getData();
|
207 |
+
|
208 |
+
if($all_custom_option_array[$inc]['all']['default_price_type'] == "percent")
|
209 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format((($product->getFinalPrice()*round($all_custom_option_array[$inc]['all']['price']*10,2)/10)/100),2);
|
210 |
+
else
|
211 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format($all_custom_option_array[$inc]['all']['price'],2);
|
212 |
+
|
213 |
|
214 |
+
$all_custom_option_array[$inc]['all']['price'] = str_replace(",","",$all_custom_option_array[$inc]['all']['price']);
|
215 |
+
$all_custom_option_array[$inc]['all']['price'] = strval(round($this->convert_currency($all_custom_option_array[$inc]['all']['price'],$basecurrencycode,$currentcurrencycode),2));
|
216 |
+
|
217 |
+
$all_custom_option_array[$inc]['custom_option_value_array'];
|
218 |
+
$inner_inc =0;
|
219 |
+
|
220 |
+
foreach($optionVal->getValues() as $valuesKey => $valuesVal):
|
221 |
+
|
222 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['id'] = $valuesVal->getId();
|
223 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['title'] = $valuesVal->getTitle();
|
224 |
+
|
225 |
+
$defaultcustomprice = str_replace(",","",($valuesVal->getPrice()));
|
226 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
227 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price_type'] = $valuesVal->getPriceType();
|
228 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sku'] = $valuesVal->getSku();
|
229 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sort_order'] = $valuesVal->getSortOrder();
|
230 |
+
|
231 |
+
if($valuesVal->getPriceType() == "percent"){
|
232 |
+
|
233 |
+
$defaultcustomprice = str_replace(",","", ($product->getFinalPrice()));
|
234 |
+
$customproductprice = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
235 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = str_replace(",","", round((floatval($customproductprice) * floatval(round($valuesVal->getPrice(),1))/100),2));
|
236 |
+
}
|
237 |
+
|
238 |
+
$inner_inc++;
|
239 |
+
endforeach;
|
240 |
+
|
241 |
+
$inc++;
|
242 |
endforeach;
|
243 |
|
244 |
+
}
|
245 |
+
else
|
246 |
+
{
|
247 |
+
$has_custom_options = false;
|
248 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
|
250 |
+
$addtionatt=$this->_getAditional();
|
251 |
+
|
252 |
+
/*get confiogurable product attributes*/
|
253 |
+
Mage::register('product', $product);
|
254 |
+
Mage::helper('catalog/product')->setSkipSaleableCheck(true);
|
255 |
+
$config_attributes = new Mage_Catalog_Block_Product_View_Type_Configurable;
|
256 |
+
$condigurable_data = json_decode($config_attributes->getJsonConfig(),1);
|
257 |
+
$configurable = array();
|
258 |
+
|
259 |
+
foreach($condigurable_data['attributes'] as $key => $value)
|
260 |
+
$configurable[] = $value;
|
261 |
+
|
262 |
+
/*get configurable product attributes*/
|
263 |
+
|
264 |
+
$productdetail = array (
|
265 |
+
'entity_id' => $product->getId (),
|
266 |
+
'product_type'=> $product->getTypeId(),
|
267 |
+
'sku' => $product->getSku (),
|
268 |
+
'name' => $product->getName (),
|
269 |
+
'news_from_date' => $product->getNewsFromDate (),
|
270 |
+
'news_to_date' => $product->getNewsToDate (),
|
271 |
+
'special_from_date' => $product->getSpecialFromDate (),
|
272 |
+
'special_to_date' => $product->getSpecialToDate (),
|
273 |
+
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product','500','500'),
|
274 |
+
'url_key' => $product->getProductUrl().'?shareid='.$product->getId(),
|
275 |
+
'is_in_stock' => $product->isAvailable (),
|
276 |
+
'has_custom_options' => $has_custom_options,
|
277 |
+
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
278 |
+
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )
|
279 |
+
->currencyConvert (
|
280 |
+
Mage::helper('tax')->getPrice($product, $product->getFinalPrice(),
|
281 |
+
true, null, null, null, null, false),
|
282 |
+
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
283 |
+
'storeUrl' => $storeUrl,
|
284 |
+
'description' => $description,
|
285 |
+
'short_description'=>nl2br ($product->getShortDescription()),
|
286 |
+
'symbol' => Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
287 |
+
'weight'=>$product->getWeight(),
|
288 |
+
'review'=>$reviews,
|
289 |
+
'rating'=>$rating,
|
290 |
+
'product_type'=>$product->getTypeId(),
|
291 |
+
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
292 |
+
'additional'=>$addtionatt,
|
293 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
294 |
+
);
|
295 |
|
296 |
+
if(count($all_custom_option_array))
|
297 |
+
$productdetail["custom_option"] = $all_custom_option_array;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
|
299 |
+
if(count($configurable))
|
300 |
+
$productdetail["configurable"] = $configurable;
|
301 |
+
|
302 |
+
echo json_encode ( $productdetail );
|
303 |
+
/*Bundle product type*/
|
304 |
+
} elseif($product->getTypeId() == "bundle") {
|
305 |
|
|
|
|
|
|
|
|
|
|
|
306 |
$storeUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
|
307 |
$description = nl2br ( $product->getDescription () );
|
308 |
$description = str_replace("{{media url=\"",$storeUrl,$description);
|
309 |
$description = str_replace("\"}}","",$description);
|
310 |
+
if($product->getData('has_options')){
|
311 |
+
$has_custom_options = true;
|
312 |
+
// Start custom options
|
313 |
+
$all_custom_option_array = array();
|
314 |
+
$attVal = $product->getOptions();
|
315 |
+
$optStr = "";
|
316 |
+
$inc=0;
|
317 |
+
$has_custom_option = 0;
|
318 |
+
|
319 |
+
foreach($attVal as $optionKey => $optionVal):
|
320 |
+
|
321 |
+
$has_custom_option = 1;
|
322 |
+
$all_custom_option_array[$inc]['custom_option_name']=$optionVal->getTitle();
|
323 |
+
$all_custom_option_array[$inc]['custom_option_id']=$optionVal->getId();
|
324 |
+
$all_custom_option_array[$inc]['custom_option_is_required']=$optionVal->getIsRequire();
|
325 |
+
$all_custom_option_array[$inc]['custom_option_type']=$optionVal->getType();
|
326 |
+
$all_custom_option_array[$inc]['sort_order'] = $optionVal->getSortOrder();
|
327 |
+
$all_custom_option_array[$inc]['all'] = $optionVal->getData();
|
328 |
+
|
329 |
+
if($all_custom_option_array[$inc]['all']['default_price_type'] == "percent")
|
330 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format((($product->getFinalPrice()*round($all_custom_option_array[$inc]['all']['price']*10,2)/10)/100),2);
|
331 |
+
else
|
332 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format($all_custom_option_array[$inc]['all']['price'],2);
|
333 |
+
|
334 |
|
335 |
+
$all_custom_option_array[$inc]['all']['price'] = str_replace(",","",$all_custom_option_array[$inc]['all']['price']);
|
336 |
+
$all_custom_option_array[$inc]['all']['price'] = strval(round($this->convert_currency($all_custom_option_array[$inc]['all']['price'],$basecurrencycode,$currentcurrencycode),2));
|
337 |
+
|
338 |
+
$all_custom_option_array[$inc]['custom_option_value_array'];
|
339 |
+
$inner_inc =0;
|
340 |
+
|
341 |
+
foreach($optionVal->getValues() as $valuesKey => $valuesVal):
|
342 |
+
|
343 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['id'] = $valuesVal->getId();
|
344 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['title'] = $valuesVal->getTitle();
|
345 |
+
|
346 |
+
$defaultcustomprice = str_replace(",","",($valuesVal->getPrice()));
|
347 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
348 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price_type'] = $valuesVal->getPriceType();
|
349 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sku'] = $valuesVal->getSku();
|
350 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sort_order'] = $valuesVal->getSortOrder();
|
351 |
+
|
352 |
+
if($valuesVal->getPriceType() == "percent"){
|
353 |
+
|
354 |
+
$defaultcustomprice = str_replace(",","", ($product->getFinalPrice()));
|
355 |
+
$customproductprice = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
356 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = str_replace(",","", round((floatval($customproductprice) * floatval(round($valuesVal->getPrice(),1))/100),2));
|
357 |
+
}
|
358 |
+
|
359 |
+
$inner_inc++;
|
360 |
+
endforeach;
|
361 |
+
|
362 |
+
$inc++;
|
363 |
+
endforeach;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
|
365 |
+
}
|
366 |
+
else
|
367 |
+
{
|
368 |
+
$has_custom_options = false;
|
369 |
+
}
|
370 |
|
371 |
+
$bundleProduct = Mage::getModel('catalog/product')->load($productid);
|
372 |
+
$collection = $product->getTypeInstance(true)
|
373 |
+
->getSelectionsCollection($product->getTypeInstance(true)
|
374 |
+
->getOptionsIds($bundleProduct), $bundleProduct)
|
375 |
+
->getData();
|
376 |
+
|
377 |
+
$bundle = array();
|
378 |
+
$array = array();
|
379 |
+
foreach($collection as $item) {
|
380 |
+
$array['entity_id'] = $item['entity_id'];
|
381 |
+
$array['entity_type_id'] = $item['entity_type_id'];
|
382 |
+
$array['attribute_set_id'] = $item['attribute_set_id'];
|
383 |
+
$array['type_id'] = $item['type_id'];
|
384 |
+
$array['sku'] = $item['sku'];
|
385 |
+
$array['is_default'] = $item['is_default'];
|
386 |
+
$array['required_options'] = $item['required_options'];
|
387 |
+
$array['selection_id'] = $item['selection_id'];
|
388 |
+
$array['price_value'] = $item['selection_price_value'];
|
389 |
+
$array['section_quantity'] = $item['selection_qty'];
|
390 |
+
$array['selection_can_change_qty'] = $item['selection_can_change_qty'];
|
391 |
+
$array['selection_price_type'] = $item['selection_price_type'];
|
392 |
+
$array['selection_qty'] = $item['selection_qty'];
|
393 |
+
array_push($bundle,$array);
|
394 |
+
}
|
395 |
$productdetail = array (
|
396 |
+
'entity_id' => $product->getId (),
|
397 |
+
'product_type'=> $product->getTypeId(),
|
398 |
+
'sku' => $product->getSku (),
|
399 |
+
'name' => $product->getName (),
|
400 |
+
'news_from_date' => $product->getNewsFromDate (),
|
401 |
+
'news_to_date' => $product->getNewsToDate (),
|
402 |
+
'special_from_date' => $product->getSpecialFromDate (),
|
403 |
+
'special_to_date' => $product->getSpecialToDate (),
|
404 |
+
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product','500','500'),
|
405 |
+
'url_key' => $product->getProductUrl().'?shareid='.$product->getId(),
|
406 |
+
'is_in_stock' => $product->isAvailable (),
|
407 |
+
/*'has_custom_options' => $has_custom_options,*/
|
408 |
+
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
409 |
+
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )
|
410 |
+
->currencyConvert (
|
411 |
+
Mage::helper('tax')->getPrice($product, $product->getFinalPrice(),
|
412 |
+
true, null, null, null, null, false),
|
413 |
+
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
414 |
+
'storeUrl' => $storeUrl,
|
415 |
+
'description' => $description,
|
416 |
+
'short_description'=>nl2br ($product->getShortDescription()),
|
417 |
+
'symbol' => Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
418 |
+
'weight'=>$product->getWeight(),
|
419 |
+
'review'=>$reviews,
|
420 |
+
'rating'=>$rating,
|
421 |
+
'product_type'=>$product->getTypeId(),
|
422 |
+
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
423 |
+
'additional'=>$addtionatt,
|
424 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
425 |
+
);
|
426 |
if(count($all_custom_option_array))
|
427 |
+
$productdetail["custom_option"] = $all_custom_option_array;
|
428 |
|
429 |
+
if(count($bundle))
|
430 |
+
$productdetail["bundleProduct"] = $bundle;
|
431 |
echo json_encode ( $productdetail );
|
432 |
+
}
|
433 |
|
434 |
+
else
|
435 |
+
{
|
436 |
+
$storeUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
|
437 |
+
$description = nl2br ( $product->getDescription () );
|
438 |
+
$description = str_replace("{{media url=\"",$storeUrl,$description);
|
439 |
+
$description = str_replace("\"}}","",$description);
|
440 |
+
$c_ops=array();
|
441 |
+
if ($product->getData('has_options')){
|
442 |
+
$has_custom_options = true;
|
443 |
+
$all_custom_option_array = array();
|
444 |
+
$attVal = $product->getOptions();
|
445 |
+
$optStr = "";
|
446 |
+
$inc=0;
|
447 |
+
$has_custom_option = 0;
|
448 |
+
foreach($attVal as $optionKey => $optionVal):
|
449 |
+
$has_custom_option = 1;
|
450 |
+
$all_custom_option_array[$inc]['custom_option_name']=$optionVal->getTitle();
|
451 |
+
$all_custom_option_array[$inc]['custom_option_id']=$optionVal->getId();
|
452 |
+
$all_custom_option_array[$inc]['custom_option_is_required']=$optionVal->getIsRequire();
|
453 |
+
$all_custom_option_array[$inc]['custom_option_type']=$optionVal->getType();
|
454 |
+
$all_custom_option_array[$inc]['sort_order'] = $optionVal->getSortOrder();
|
455 |
+
$all_custom_option_array[$inc]['all'] = $optionVal->getData();
|
456 |
+
|
457 |
+
if($all_custom_option_array[$inc]['all']['default_price_type'] == "percent")
|
458 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format((($product->getFinalPrice()*round($all_custom_option_array[$inc]['all']['price']*10,2)/10)/100),2);
|
459 |
+
else
|
460 |
+
$all_custom_option_array[$inc]['all']['price'] = number_format($all_custom_option_array[$inc]['all']['price'],2);
|
461 |
+
|
462 |
+
$all_custom_option_array[$inc]['all']['price'] = str_replace(",","",$all_custom_option_array[$inc]['all']['price']);
|
463 |
+
$all_custom_option_array[$inc]['all']['price'] = strval(round($this->convert_currency($all_custom_option_array[$inc]['all']['price'],$basecurrencycode,$currentcurrencycode),2));
|
464 |
+
|
465 |
+
$all_custom_option_array[$inc]['custom_option_value_array'];
|
466 |
+
$inner_inc =0;
|
467 |
+
|
468 |
+
foreach($optionVal->getValues() as $valuesKey => $valuesVal):
|
469 |
+
|
470 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['id'] = $valuesVal->getId();
|
471 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['title'] = $valuesVal->getTitle();
|
472 |
+
$defaultcustomprice = str_replace(",","",($valuesVal->getPrice()));
|
473 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
474 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price_type'] = $valuesVal->getPriceType();
|
475 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sku'] = $valuesVal->getSku();
|
476 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['sort_order'] = $valuesVal->getSortOrder();
|
477 |
+
|
478 |
+
if($valuesVal->getPriceType() == "percent"):
|
479 |
+
$defaultcustomprice = str_replace(",","", ($product->getFinalPrice()));
|
480 |
+
$customproductprice = strval(round($this->convert_currency($defaultcustomprice,$basecurrencycode,$currentcurrencycode),2));
|
481 |
+
$all_custom_option_array[$inc]['custom_option_value_array'][$inner_inc]['price'] = str_replace(",","", round((floatval($customproductprice) * floatval(round($valuesVal->getPrice(),1))/100),2));
|
482 |
+
endif;
|
483 |
+
|
484 |
+
$inner_inc++;
|
485 |
+
endforeach;
|
486 |
+
$inc++;
|
487 |
+
|
488 |
+
endforeach;
|
489 |
+
} else {
|
490 |
+
$has_custom_options = false;
|
491 |
+
}
|
492 |
+
/*Simple product detial*/
|
493 |
+
$addtionatt=$this->_getAditional();
|
494 |
+
$productdetail = array (
|
495 |
+
'entity_id' => $product->getId (),
|
496 |
+
'product_type'=> $product->getTypeId(),
|
497 |
+
'sku' => $product->getSku (),
|
498 |
+
'name' => $product->getName (),
|
499 |
+
'news_from_date' => $product->getNewsFromDate (),
|
500 |
+
'news_to_date' => $product->getNewsToDate (),
|
501 |
+
'special_from_date' => $product->getSpecialFromDate (),
|
502 |
+
'special_to_date' => $product->getSpecialToDate (),
|
503 |
+
'image_url' => Mage::helper('connector')-> Imageresize($product->getImage(),'product_main','500','500'),
|
504 |
+
'url_key' => $product->getProductUrl().'?shareid='.$product->getId(),
|
505 |
+
'is_in_stock' => $product->isAvailable (),
|
506 |
+
'has_custom_options' => $has_custom_options,
|
507 |
+
'regular_price_with_tax' => number_format ( Mage::helper ( 'directory' )->currencyConvert ( $product->getPrice (), $baseCurrency, $currentCurrency ), 2, '.', '' ),
|
508 |
+
'final_price_with_tax' => number_format ( Mage::helper ( 'directory' )
|
509 |
+
->currencyConvert (
|
510 |
+
Mage::helper('tax')->getPrice($product, $product->getFinalPrice(),
|
511 |
+
true, null, null, null, null, false),
|
512 |
+
$baseCurrency, $currentCurrency ), 2, '.', '' ),
|
513 |
+
'storeUrl' => $storeUrl,
|
514 |
+
'description' => $description,
|
515 |
+
'short_description'=>nl2br ($product->getShortDescription()),
|
516 |
+
'symbol' => Mage::helper('connector')->getCurrencysymbolByCode($this->currency) ,
|
517 |
+
'weight'=>$product->getWeight(),
|
518 |
+
'qty'=>(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId())->getQty(),
|
519 |
+
'review'=>$reviews,
|
520 |
+
'rating'=>$rating,
|
521 |
+
'product_type'=>$product->getTypeId(),
|
522 |
+
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
523 |
+
'additional'=>$addtionatt,
|
524 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
525 |
+
);
|
526 |
+
if(count($all_custom_option_array))
|
527 |
+
$productdetail["custom_option"] = $all_custom_option_array;
|
528 |
+
|
529 |
+
echo json_encode ( $productdetail );
|
530 |
+
|
531 |
+
}
|
532 |
}
|
533 |
|
534 |
|
727 |
'symbol'=> Mage::helper('connector')->getCurrencysymbolByCode($this->currency),
|
728 |
'qty'=>(int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product->getId())->getQty(),
|
729 |
'rating' => $rating_final,
|
730 |
+
'product_type'=>$product->getTypeId(),
|
731 |
'wishlist' => Mage::helper('connector')->check_wishlist($product->getId ()),
|
732 |
+
'categoryid' => end($product->getCategoryIds()),
|
733 |
+
'specialprice'=>number_format (Mage::helper('connector')->getSpecialPriceByProductId($product->getId ()), 2, '.', '' ),
|
734 |
);
|
735 |
}
|
736 |
|
app/code/local/Mss/Connector/controllers/StaticpagesController.php
CHANGED
@@ -34,8 +34,6 @@ class Mss_Connector_StaticpagesController extends Mage_Core_Controller_Front_Act
|
|
34 |
*/
|
35 |
public function getPagesAction()
|
36 |
{
|
37 |
-
echo json_encode(array('status'=>'success','data'=>array()));
|
38 |
-
exit;
|
39 |
try{
|
40 |
$pages = array(
|
41 |
|
34 |
*/
|
35 |
public function getPagesAction()
|
36 |
{
|
|
|
|
|
37 |
try{
|
38 |
$pages = array(
|
39 |
|
app/code/local/Mss/Connector/controllers/StoreinfoController.php
CHANGED
@@ -94,36 +94,34 @@ class Mss_Connector_StoreinfoController extends Mage_Core_Controller_Front_Actio
|
|
94 |
public function getstoredataAction() {
|
95 |
|
96 |
$basicinfo = array ();
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
echo json_encode($basicinfo);
|
126 |
-
|
127 |
}
|
128 |
|
129 |
/*
|
@@ -154,9 +152,9 @@ class Mss_Connector_StoreinfoController extends Mage_Core_Controller_Front_Actio
|
|
154 |
|
155 |
foreach ($codes as $code):
|
156 |
if(isset($rates[$code]))
|
157 |
-
$currencies[] =
|
158 |
->getTranslation($code, 'nametocurrency'),'code'=>$code,
|
159 |
-
'symbol'=>Mage::app()->getLocale()->currency($code)->getSymbol()
|
160 |
|
161 |
|
162 |
endforeach;
|
94 |
public function getstoredataAction() {
|
95 |
|
96 |
$basicinfo = array ();
|
97 |
+
$website_id = Mage::app()->getStore()->getWebsiteId();
|
98 |
+
$website = Mage::app ()->getWebsite($website_id);
|
99 |
+
|
100 |
+
foreach($website->getGroups() as $key=> $group):
|
101 |
+
|
102 |
+
$stores = $group->getStores();
|
103 |
+
$store_view = array();
|
104 |
+
$new_array = array();
|
105 |
+
foreach ($stores as $key => $view) {
|
106 |
+
$store_view['name'] = $view->getName();
|
107 |
+
$store_view['view_id'] = $view->getStoreId();
|
108 |
+
$store_view['store_url'] = $view->getUrl();
|
109 |
+
$store_view['store_code']= Mage::getStoreConfig(self::XML_DEFAULT_STORE_LANG, $view->getStoreId());
|
110 |
+
$store_view['store_name']= $view->getName();
|
111 |
+
$store_view['sort_order'] = $view->getSortOrder();
|
112 |
+
$store_view['is_active'] = $view->getIsActive();
|
113 |
+
array_push($new_array, $store_view);
|
114 |
+
}
|
115 |
+
$basicinfo[]=array(
|
116 |
+
'store' => $group->getName(),
|
117 |
+
'store_id' => $group->getGroupId(),
|
118 |
+
'root_category_id' => $group->getRootCategoryId(),
|
119 |
+
'view'=>$new_array
|
120 |
+
);
|
121 |
+
|
122 |
+
$store_view ='';
|
123 |
+
endforeach;
|
124 |
+
echo json_encode($basicinfo);
|
|
|
|
|
125 |
}
|
126 |
|
127 |
/*
|
152 |
|
153 |
foreach ($codes as $code):
|
154 |
if(isset($rates[$code]))
|
155 |
+
$currencies[] =array('name'=> Mage::app()->getLocale()
|
156 |
->getTranslation($code, 'nametocurrency'),'code'=>$code,
|
157 |
+
'symbol'=>Mage::app()->getLocale()->currency($code)->getSymbol());
|
158 |
|
159 |
|
160 |
endforeach;
|
app/code/local/Mss/Connector/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Mss_Connector>
|
5 |
-
<version>2.4.
|
6 |
</Mss_Connector>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Mss_Connector>
|
5 |
+
<version>2.4.9</version>
|
6 |
</Mss_Connector>
|
7 |
</modules>
|
8 |
<frontend>
|
app/design/adminhtml/default/default/layout/bannerslider.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.0">
|
3 |
-
<bannerslider_adminhtml_bannerslider_index>
|
4 |
-
<reference name="content">
|
5 |
-
<block type="bannerslider/adminhtml_grid" name="bannerslider" />
|
6 |
-
</reference>
|
7 |
-
</bannerslider_adminhtml_bannerslider_index>
|
8 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/layout/bannersliderapp.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<bannersliderapp_adminhtml_bannersliderapp_index>
|
4 |
+
<reference name="content">
|
5 |
+
<block type="bannersliderapp/adminhtml_grid" name="bannersliderapp" />
|
6 |
+
</reference>
|
7 |
+
</bannersliderapp_adminhtml_bannersliderapp_index>
|
8 |
+
</layout>
|
app/design/frontend/base/default/template/payu/index.phtml
CHANGED
@@ -91,8 +91,8 @@ if(isset($order_id)):
|
|
91 |
$posted['surl'] = $this->getUrl('payu/index/success');
|
92 |
$posted['furl'] = $this->getUrl('payu/index/failure');
|
93 |
$posted['service_provider'] = 'payu_paisa';
|
94 |
-
|
95 |
-
|
96 |
$posted['lastname']= $order->getShippingAddress()->getLastname();
|
97 |
$posted['address1'] = $street;
|
98 |
$posted['address2'] = $street;
|
@@ -196,8 +196,8 @@ if(isset($order_id)):
|
|
196 |
</tr>
|
197 |
|
198 |
|
199 |
-
<input name="
|
200 |
-
<input name="
|
201 |
|
202 |
|
203 |
|
91 |
$posted['surl'] = $this->getUrl('payu/index/success');
|
92 |
$posted['furl'] = $this->getUrl('payu/index/failure');
|
93 |
$posted['service_provider'] = 'payu_paisa';
|
94 |
+
$posted['txnid'] = $order_id;
|
95 |
+
$posted['website'] = Mage::getBaseUrl();
|
96 |
$posted['lastname']= $order->getShippingAddress()->getLastname();
|
97 |
$posted['address1'] = $street;
|
98 |
$posted['address2'] = $street;
|
196 |
</tr>
|
197 |
|
198 |
|
199 |
+
<input name="txnid" value="<?php echo (empty($posted['txnid'])) ? '' : $posted['txnid'] ?>" size="64" />
|
200 |
+
<input name="website" value="<?php echo (empty($posted['website'])) ? '' : $posted['website'] ?>" size="64" />
|
201 |
|
202 |
|
203 |
|
app/etc/modules/{Mss_Bannerslider.xml → Mss_Bannersliderapp.xml}
RENAMED
@@ -22,9 +22,9 @@
|
|
22 |
-->
|
23 |
<config>
|
24 |
<modules>
|
25 |
-
<
|
26 |
<active>true</active>
|
27 |
<codePool>local</codePool>
|
28 |
-
</
|
29 |
</modules>
|
30 |
</config>
|
22 |
-->
|
23 |
<config>
|
24 |
<modules>
|
25 |
+
<Mss_Bannersliderapp>
|
26 |
<active>true</active>
|
27 |
<codePool>local</codePool>
|
28 |
+
</Mss_Bannersliderapp>
|
29 |
</modules>
|
30 |
</config>
|
package.xml
CHANGED
@@ -1,18 +1,25 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mss_Connector</name>
|
4 |
-
<version>2.4.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v1.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Mobile Multi store app for Android and Iphone</summary>
|
10 |
<description>Mobile Multistore app for Android and Iphone</description>
|
11 |
-
<notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<authors><author><name>mss</name><user>mss</user><email>mss.yogendra@gmail.com</email></author></authors>
|
13 |
-
<date>2016-07
|
14 |
-
<time>13:
|
15 |
-
<contents><target name="magelocal"><dir name="Mss"><dir name="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>7.0.5</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mss_Connector</name>
|
4 |
+
<version>2.4.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL v1.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Mobile Multi store app for Android and Iphone</summary>
|
10 |
<description>Mobile Multistore app for Android and Iphone</description>
|
11 |
+
<notes>Fixes:- 
|
12 |
+
1) Free shipping issue fix if minimum quantity set.
|
13 |
+
2) Paypal issue resolved.
|
14 |
+
3) Payu issue resolved.
|
15 |
+
4) Banner conflicting resolved.
|
16 |
+
5) Push Notification issue resolved.
|
17 |
+
6) coupon issue resolved.
|
18 |
+
</notes>
|
19 |
<authors><author><name>mss</name><user>mss</user><email>mss.yogendra@gmail.com</email></author></authors>
|
20 |
+
<date>2016-09-07</date>
|
21 |
+
<time>13:00:26</time>
|
22 |
+
<contents><target name="magelocal"><dir name="Mss"><dir name="Bannersliderapp"><dir name="Block"><dir name="Adminhtml"><dir name="Bannersliderapp"><dir name="Edit"><file name="Form.php" hash="c55bbba3b00c98a068bec9b9b12c4a40"/><dir name="Tab"><file name="Form.php" hash="486798bdd6429c53886bd15fb0fcf12b"/></dir><file name="Tabs.php" hash="ec6e540fda2b39feedc0a4c1192a3c7d"/></dir><file name="Edit.php" hash="010f4999a1ddc53e411562d83c3ad3f8"/><file name="Grid.php" hash="28c70476bdd3d44aa2cac9dc9f423ebb"/><dir name="Helper"><file name="Image.php" hash="d2ce47b0d7ab6ef5c31d0989fcc05f78"/></dir></dir><file name="Grid.php" hash="9c86bf7a2daa24e9416ff254396b2aa0"/><dir name="Renderer"><file name="Image.php" hash="0a9b4358a9409e7933e96c1eb157717e"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="db48c09c76d16ad7c094d32224329276"/></dir><dir name="Model"><file name="Bannersliderapp.php" hash="61f481ac93c5c494889d5ea7cb306bc0"/><dir name="Mysql4"><dir name="Bannersliderapp"><file name="Collection.php" hash="5d6543bbf3dee4d17b73244dbd0f843f"/></dir><file name="Bannersliderapp.php" hash="e000805a295e083e81f7163df7b92197"/></dir><file name="Observer.php" hash="65004e950e366b77a2cd1cb177d0f1ab"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderappController.php" hash="6f9f94fd96e35225ed3bd8fdf7a3dc22"/></dir><file name="BannerController.php" hash="f20def146a84a727835d9cc827702367"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dab3fdde55b6523faadc3fad70702c28"/><file name="config.xml" hash="1b31db628fae02e58e48c0e961351c2a"/></dir><dir name="sql"><dir name="bannersliderapp_setup"><file name="mysql4-install-0.1.1.php" hash="bbc6f32eb101c83a52cdef67c8b6a806"/></dir></dir></dir><dir name="Connector"><dir name="Block"><dir name="Adminhtml"><file name="Notifications.php" hash="6f24014b5a24a4f56410e9754b8aa2d5"/><file name="Support.php" hash="d120e7f8945a01d791d0f3d2c32dcfcf"/></dir><dir name="System"><dir name="Config"><file name="About.php" hash="2e9dc040ee2d42a57d5c9411f0b999e4"/><file name="Authorizenet.php" hash="ed644e9814fef74147bdddf24cfd75c1"/><file name="Banktransfer.php" hash="77f6ebf2074462cdadf4bccbe2f0d19a"/><file name="Checkmo.php" hash="edfc0fc0b233cd349392e563eeac57ed"/><file name="Cod.php" hash="37d1757764340fd02b8be7ac32434967"/><file name="Mpaypal.php" hash="e69d6a2d58618cf741d4cf503ede70ca"/><file name="Payu.php" hash="d0307013bdf58700a29aa7838ee94e51"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f06dcff332b1363fc87007d408d29641"/></dir><dir name="Model"><file name="Connector.php" hash="e9a927bc0a5974d092ab3af257ee7607"/><dir name="Mysql4"><dir name="Connector"><file name="Collection.php" hash="1f3bb37f160abdf974859f7419a19b65"/></dir><file name="Connector.php" hash="185189264d3275af813349e721ee46fb"/></dir><file name="Observer.php" hash="e6dacba5f08eaa4d02434ed50509ee8e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SupportController.php" hash="0f5afef5730673f0145cd5c8bbf1ed77"/></dir><file name="CartController.php" hash="34decdae069c66e7392eaa17df5a8744"/><file name="CreditController.php" hash="a489dd0ed95914fb2b58491410f6f92f"/><file name="CustomerController.php" hash="954793bc04d904f224a6f221e9ba65a8"/><file name="FeedbackController.php" hash="2b9e092984c0c64397cd25fe1d2266d5"/><file name="IndexController.php" hash="f11f7bf541f5d0e5f9222e756b506926"/><file name="ItemsController.php" hash="03aeb9fceec3173e1aa678e03582b226"/><file name="ProductsController.php" hash="2d26ea69451a40ceff5aeaa9505e67e4"/><file name="StaticpagesController.php" hash="86bfe2d07268507d60c4ee3c8834de08"/><file name="StoreinfoController.php" hash="c7600983d865fe529e020344e485cbed"/><file name="TokenController.php" hash="387f3eb5cbd8cf57b8f4d46c46bd6c36"/><file name="WishlistController.php" hash="082445ed48fde71569305aba02177337"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dace418dcc6eee76831169b5c70176e7"/><file name="config.xml" hash="8b4d07480ca4a0dd19f0422d2e571bd2"/><file name="system.xml" hash="09be5e92b65afa6e91d062b3f7082e57"/></dir><dir name="sql"><dir name="connector_setup"><file name="mysql4-install-0.1.0.php" hash="4325ba30b21f9680b11d4b124b9e8181"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="eaa00e880b38ba41580b67785b33ed10"/></dir></dir></dir><dir name="Mpaypal"><dir name="Helper"><file name="Data.php" hash="c3ba57e7cc86210346b1b3f279083c0f"/></dir><dir name="Model"><file name="Mpaypal.php" hash="f49b32aad7d7bed49333534139fd07b7"/><file name="Observer.php" hash="4b92aaf547f0b080d8495cf064574d10"/></dir><dir name="controllers"><file name="IndexController.php" hash="c12439366cff0f0d0813543a2fd90f7f"/></dir><dir name="etc"><file name="config.xml" hash="9ed76ff53b5e0232b4ea442a7e046b14"/><file name="system.xml" hash="2f51ad686858a69e07e8c21baf5d690e"/></dir></dir><dir name="Payu"><dir name="Block"><file name="Index.php" hash="f6a324c1ac4b0c1dcfac775c51c2a34c"/></dir><dir name="Helper"><file name="Data.php" hash="7800e0e58258b78d0f23a7fec482d120"/></dir><dir name="controllers"><file name="IndexController.php" hash="b5254620aaf3913b8639555413d36a26"/></dir><dir name="etc"><file name="config.xml" hash="c6867fb0cc7efdde39c32a3ecbf62433"/></dir></dir><dir name="Pushnotification"><dir name="Block"><dir name="Adminhtml"><file name="Pushnotificationbackend.php" hash="6b9e143ee7b5fe4fc2642eee977b44bf"/></dir></dir><dir name="Helper"><file name="Data.php" hash="4c43ec9c6886d5d34649cbe489bd414c"/></dir><dir name="Model"><dir name="Entity"><file name="Resource.php" hash="93b6a261762541433fa601aefb60d0a7"/></dir><dir name="Mysql4"><dir name="Pushnotification"><file name="Collection.php" hash="392612adedcb14ec5dcaaa4ea9858091"/></dir><file name="Pushnotification.php" hash="77f6cadb7682377a1de6b275310c1cf6"/></dir><file name="Pushnotification.php" hash="ad5fe0f74049c61402ff99fc32d8164a"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="File.php" hash="d7c74e49b78bb9da3453bd5f414a445f"/><file name="Image.php" hash="e1d98dbf511fe16581b37a8b7b43f5b4"/><file name="Iosmode.php" hash="ff1794ef4844019b7af64192fbd4e122"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="PushnotificationbackendController.php" hash="ec4ebd0ad1cfee78d2e67a69698a14e5"/></dir></dir><dir name="etc"><file name="config.xml" hash="daafb506dc1ed6bd54d8f8049e2e9595"/><file name="system.xml" hash="23a622dec8250a355bbaed9e83f1f82d"/></dir><dir name="sql"><dir name="pushnotification_setup"><file name="mysql4-install-0.1.0.php" hash="418e997bb72afa725389593d4ca2f111"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="e5939f147e797d9d8b7a9643f8cda7d8"/></dir></dir></dir><dir name="Sociallogin"><dir name="Helper"><file name="Data.php" hash="8965f0b6a0127d0965d99987aa0a300c"/></dir><dir name="Model"><dir name="Mysql4"><file name="Sociallogin.php" hash="b881bc47c5ee70b1c4c02b59501ffbc5"/></dir><file name="Sociallogin.php" hash="0ba90dadb0f34528c2296704c5cea233"/></dir><dir name="etc"><file name="config.xml" hash="eac1dc2364bc283a9cd5326eb7e852a9"/></dir><dir name="sql"><dir name="sociallogin_setup"><file name="mysql4-install-0.1.0.php" hash="163332cb130dae297af332cbefde58f3"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pushnotification"><file name="pushnotificationbackend.phtml" hash="138add7171fdd7fb326abc4a4f9dbe5a"/></dir><dir name="connector"><file name="landing.phtml" hash="6efda7cca18e7bc62ce40c9f25a9510b"/><file name="notification.phtml" hash="164e5f9e7dcfc5c2d2451f0e77776d77"/><file name="support.phtml" hash="7c799c058795eafbf96239e16e3326ca"/></dir></dir><dir name="layout"><file name="bannersliderapp.xml" hash="f18034448b9f74646c870a23bfc0b6fd"/><file name="pushnotification.xml" hash="f7fd974e63c4c7eb5ffac7b059470946"/><file name="connector.xml" hash="003166428e55a52301f71826a37f8283"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="payu.xml" hash="473595488f536cb588c5588a744915a3"/><file name="mpaypal.xml" hash="7b75c5bed6f3142c8bc9e4c1233bf1e9"/></dir><dir name="template"><dir name="payu"><file name="index.phtml" hash="5f9e2dfb00a991707e31a00b39cfebef"/><file name="test.phtml" hash="da4701ff5b2c64444a49f77571e8a00c"/></dir><dir name="mpaypal"><file name="index.phtml" hash="df077c063b2006b9321c96cd6744b19f"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Mss_Bannersliderapp.xml" hash="de3e077185056246492c3a2ff01a531f"/><file name="Mss_Connector.xml" hash="ba8a5609c9c8c3636f183c5bfe04d664"/><file name="Mss_Payu.xml" hash="5feac03d698b481473223fbe6a8814b1"/><file name="Mss_Pushnotification.xml" hash="2e8e9bc56a5f0ff8bb42f43fb5a3a3db"/><file name="Mss_Sociallogin.xml" hash="8671199bdad3bdecbfe0c47ce9ff05e6"/><file name="Mss_Mpaypal.xml" hash="4d6a7f8d862de8c449b1366727ef0a6d"/></dir></dir></target><target name="mageskin"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magentomobileshop"><file name="magento_logo.png" hash="d1800a3c95de49500f158bfb6ca9c70c"/><file name="magentomobileshop_loader.gif" hash="453272c9cacd32efe6465961ea8a61dd"/></dir></dir></dir></dir></dir></dir></target></contents>
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.3.0</min><max>7.0.5</max></php></required></dependencies>
|
25 |
</package>
|