Version Notes
Download this release
Release Info
Developer | SetuBridge Technolabs |
Extension | Product_Back_Image_On_Hover |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- app/code/local/Sbridge/Moreview/Block/Moreview.php +11 -0
- app/code/local/Sbridge/Moreview/Block/Source/Overrideoption.php +21 -0
- app/code/local/Sbridge/Moreview/Helper/Data.php +16 -2
- app/code/local/Sbridge/Moreview/controllers/Adminhtml/MoreviewController.php +1 -211
- app/code/local/Sbridge/Moreview/controllers/IndexController.php +0 -39
- app/code/local/Sbridge/Moreview/etc/config.xml +4 -38
- app/code/local/Sbridge/Moreview/etc/system.xml +46 -4
- app/design/frontend/base/default/layout/moreview.xml +27 -14
- app/design/frontend/base/default/template/moreview/backimage.phtml +30 -0
- app/design/frontend/base/default/template/moreview/crosssell.phtml +40 -41
- app/design/frontend/base/default/template/moreview/list.phtml +51 -32
- app/design/frontend/base/default/template/moreview/moreview.phtml +38 -74
- app/design/frontend/base/default/template/moreview/related.phtml +1 -4
- app/design/frontend/base/default/template/moreview/upsell.phtml +41 -41
- app/design/frontend/default/default/layout/moreview.xml +25 -16
- app/design/frontend/default/default/template/moreview/backimage.phtml +28 -0
- app/design/frontend/default/default/template/moreview/crosssell.phtml +40 -41
- app/design/frontend/default/default/template/moreview/list.phtml +50 -38
- app/design/frontend/default/default/template/moreview/moreview.phtml +38 -74
- app/design/frontend/default/default/template/moreview/related.phtml +1 -4
- app/design/frontend/default/default/template/moreview/upsell.phtml +41 -41
- app/design/frontend/rwd/default/layout/moreview.xml +25 -14
- app/design/frontend/rwd/default/template/moreview/crosssell.phtml +5 -30
- app/design/frontend/rwd/default/template/moreview/list.phtml +0 -214
- app/design/frontend/rwd/default/template/moreview/moreview.phtml +34 -74
- app/design/frontend/rwd/default/template/moreview/related.phtml +5 -23
- app/design/frontend/rwd/default/template/moreview/upsell.phtml +6 -24
- app/etc/modules/Sbridge_Moreview.xml +17 -0
- package.xml +7 -6
- product_back_image_on_hover_1.0.4.pdf +0 -0
- setubridge-licence.txt +0 -67
- skin/frontend/base/default/css/moreview.css +4 -0
- skin/frontend/default/default/css/moreview.css +4 -0
- skin/frontend/rwd/default/css/moreview.css +5 -1
app/code/local/Sbridge/Moreview/Block/Moreview.php
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/** Setubridge Technolabs
|
3 |
+
* http://www.setubridge.com/
|
4 |
+
* @author SetuBridge
|
5 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
6 |
+
**/
|
7 |
+
class Sbridge_Moreview_Block_Moreview extends Mage_Core_Block_Template
|
8 |
+
{
|
9 |
+
|
10 |
+
|
11 |
+
}
|
app/code/local/Sbridge/Moreview/Block/Source/Overrideoption.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/** Setubridge Technolabs
|
3 |
+
* http://www.setubridge.com/
|
4 |
+
* @author SetuBridge
|
5 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
6 |
+
**/
|
7 |
+
class Sbridge_Moreview_Block_Source_Overrideoption extends Mage_Adminhtml_Block_System_Config_Form_Field
|
8 |
+
{
|
9 |
+
|
10 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
11 |
+
{
|
12 |
+
$html = $element->getElementHtml();
|
13 |
+
$curMageVer=Mage::getVersion();
|
14 |
+
if($curMageVer >= '1.9.0.0'){
|
15 |
+
$html .= '<script type="text/javascript">
|
16 |
+
$("row_moreview_section_general_group_override_listfile").hide();
|
17 |
+
</script>';
|
18 |
+
}
|
19 |
+
return $html;
|
20 |
+
}
|
21 |
+
}
|
app/code/local/Sbridge/Moreview/Helper/Data.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Setubridge Technolabs
|
5 |
* http://www.setubridge.com/
|
@@ -8,8 +7,23 @@
|
|
8 |
**/
|
9 |
?>
|
10 |
<?php
|
11 |
-
|
12 |
class Sbridge_Moreview_Helper_Data extends Mage_Core_Helper_Abstract
|
13 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
15 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Setubridge Technolabs
|
4 |
* http://www.setubridge.com/
|
7 |
**/
|
8 |
?>
|
9 |
<?php
|
|
|
10 |
class Sbridge_Moreview_Helper_Data extends Mage_Core_Helper_Abstract
|
11 |
{
|
12 |
+
public function setmoreview(){
|
13 |
+
return $this->_setMoreViewTempate();
|
14 |
+
}
|
15 |
+
public function setmoreviewlist(){
|
16 |
+
return $this->_setMoreViewTempate();
|
17 |
+
}
|
18 |
+
public function _setMoreViewTempate(){
|
19 |
+
$curMageVer=Mage::getVersion();
|
20 |
+
if($curMageVer >= '1.9.0.0'){
|
21 |
+
return "moreview/moreview.phtml";
|
22 |
+
}
|
23 |
+
else{
|
24 |
+
return "moreview/list.phtml";
|
25 |
+
}
|
26 |
+
}
|
27 |
|
28 |
+
|
29 |
}
|
app/code/local/Sbridge/Moreview/controllers/Adminhtml/MoreviewController.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Setubridge Technolabs
|
5 |
* http://www.setubridge.com/
|
@@ -8,216 +7,7 @@
|
|
8 |
**/
|
9 |
?>
|
10 |
<?php
|
11 |
-
|
12 |
class Sbridge_Moreview_Adminhtml_MoreviewController extends Mage_Adminhtml_Controller_action
|
13 |
{
|
14 |
|
15 |
-
|
16 |
-
$this->loadLayout()
|
17 |
-
->_setActiveMenu('moreview/items')
|
18 |
-
->_addBreadcrumb(Mage::helper('adminhtml')->__('Items Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
19 |
-
|
20 |
-
return $this;
|
21 |
-
}
|
22 |
-
|
23 |
-
public function indexAction() {
|
24 |
-
$this->_initAction()
|
25 |
-
->renderLayout();
|
26 |
-
}
|
27 |
-
|
28 |
-
public function editAction() {
|
29 |
-
$id = $this->getRequest()->getParam('id');
|
30 |
-
$model = Mage::getModel('moreview/moreview')->load($id);
|
31 |
-
|
32 |
-
if ($model->getId() || $id == 0) {
|
33 |
-
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
34 |
-
if (!empty($data)) {
|
35 |
-
$model->setData($data);
|
36 |
-
}
|
37 |
-
|
38 |
-
Mage::register('moreview_data', $model);
|
39 |
-
|
40 |
-
$this->loadLayout();
|
41 |
-
$this->_setActiveMenu('moreview/items');
|
42 |
-
|
43 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
|
44 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
45 |
-
|
46 |
-
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
47 |
-
|
48 |
-
$this->_addContent($this->getLayout()->createBlock('moreview/adminhtml_moreview_edit'))
|
49 |
-
->_addLeft($this->getLayout()->createBlock('moreview/adminhtml_moreview_edit_tabs'));
|
50 |
-
|
51 |
-
$this->renderLayout();
|
52 |
-
} else {
|
53 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('moreview')->__('Item does not exist'));
|
54 |
-
$this->_redirect('*/*/');
|
55 |
-
}
|
56 |
-
}
|
57 |
-
|
58 |
-
public function newAction() {
|
59 |
-
$this->_forward('edit');
|
60 |
-
}
|
61 |
-
|
62 |
-
public function saveAction() {
|
63 |
-
if ($data = $this->getRequest()->getPost()) {
|
64 |
-
|
65 |
-
if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
|
66 |
-
try {
|
67 |
-
/* Starting upload */
|
68 |
-
$uploader = new Varien_File_Uploader('filename');
|
69 |
-
|
70 |
-
// Any extention would work
|
71 |
-
$uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
|
72 |
-
$uploader->setAllowRenameFiles(false);
|
73 |
-
|
74 |
-
// Set the file upload mode
|
75 |
-
// false -> get the file directly in the specified folder
|
76 |
-
// true -> get the file in the product like folders
|
77 |
-
// (file.jpg will go in something like /media/f/i/file.jpg)
|
78 |
-
$uploader->setFilesDispersion(false);
|
79 |
-
|
80 |
-
// We set media as the upload dir
|
81 |
-
$path = Mage::getBaseDir('media') . DS ;
|
82 |
-
$uploader->save($path, $_FILES['filename']['name'] );
|
83 |
-
|
84 |
-
} catch (Exception $e) {
|
85 |
-
|
86 |
-
}
|
87 |
-
|
88 |
-
//this way the name is saved in DB
|
89 |
-
$data['filename'] = $_FILES['filename']['name'];
|
90 |
-
}
|
91 |
-
|
92 |
-
|
93 |
-
$model = Mage::getModel('moreview/moreview');
|
94 |
-
$model->setData($data)
|
95 |
-
->setId($this->getRequest()->getParam('id'));
|
96 |
-
|
97 |
-
try {
|
98 |
-
if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
|
99 |
-
$model->setCreatedTime(now())
|
100 |
-
->setUpdateTime(now());
|
101 |
-
} else {
|
102 |
-
$model->setUpdateTime(now());
|
103 |
-
}
|
104 |
-
|
105 |
-
$model->save();
|
106 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('moreview')->__('Item was successfully saved'));
|
107 |
-
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
108 |
-
|
109 |
-
if ($this->getRequest()->getParam('back')) {
|
110 |
-
$this->_redirect('*/*/edit', array('id' => $model->getId()));
|
111 |
-
return;
|
112 |
-
}
|
113 |
-
$this->_redirect('*/*/');
|
114 |
-
return;
|
115 |
-
} catch (Exception $e) {
|
116 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
117 |
-
Mage::getSingleton('adminhtml/session')->setFormData($data);
|
118 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
119 |
-
return;
|
120 |
-
}
|
121 |
-
}
|
122 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('moreview')->__('Unable to find item to save'));
|
123 |
-
$this->_redirect('*/*/');
|
124 |
-
}
|
125 |
-
|
126 |
-
public function deleteAction() {
|
127 |
-
if( $this->getRequest()->getParam('id') > 0 ) {
|
128 |
-
try {
|
129 |
-
$model = Mage::getModel('moreview/moreview');
|
130 |
-
|
131 |
-
$model->setId($this->getRequest()->getParam('id'))
|
132 |
-
->delete();
|
133 |
-
|
134 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
|
135 |
-
$this->_redirect('*/*/');
|
136 |
-
} catch (Exception $e) {
|
137 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
138 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
139 |
-
}
|
140 |
-
}
|
141 |
-
$this->_redirect('*/*/');
|
142 |
-
}
|
143 |
-
|
144 |
-
public function massDeleteAction() {
|
145 |
-
$moreviewIds = $this->getRequest()->getParam('moreview');
|
146 |
-
if(!is_array($moreviewIds)) {
|
147 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
148 |
-
} else {
|
149 |
-
try {
|
150 |
-
foreach ($moreviewIds as $moreviewId) {
|
151 |
-
$moreview = Mage::getModel('moreview/moreview')->load($moreviewId);
|
152 |
-
$moreview->delete();
|
153 |
-
}
|
154 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(
|
155 |
-
Mage::helper('adminhtml')->__(
|
156 |
-
'Total of %d record(s) were successfully deleted', count($moreviewIds)
|
157 |
-
)
|
158 |
-
);
|
159 |
-
} catch (Exception $e) {
|
160 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
161 |
-
}
|
162 |
-
}
|
163 |
-
$this->_redirect('*/*/index');
|
164 |
-
}
|
165 |
-
|
166 |
-
public function massStatusAction()
|
167 |
-
{
|
168 |
-
$moreviewIds = $this->getRequest()->getParam('moreview');
|
169 |
-
if(!is_array($moreviewIds)) {
|
170 |
-
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
|
171 |
-
} else {
|
172 |
-
try {
|
173 |
-
foreach ($moreviewIds as $moreviewId) {
|
174 |
-
$moreview = Mage::getSingleton('moreview/moreview')
|
175 |
-
->load($moreviewId)
|
176 |
-
->setStatus($this->getRequest()->getParam('status'))
|
177 |
-
->setIsMassupdate(true)
|
178 |
-
->save();
|
179 |
-
}
|
180 |
-
$this->_getSession()->addSuccess(
|
181 |
-
$this->__('Total of %d record(s) were successfully updated', count($moreviewIds))
|
182 |
-
);
|
183 |
-
} catch (Exception $e) {
|
184 |
-
$this->_getSession()->addError($e->getMessage());
|
185 |
-
}
|
186 |
-
}
|
187 |
-
$this->_redirect('*/*/index');
|
188 |
-
}
|
189 |
-
|
190 |
-
public function exportCsvAction()
|
191 |
-
{
|
192 |
-
$fileName = 'moreview.csv';
|
193 |
-
$content = $this->getLayout()->createBlock('moreview/adminhtml_moreview_grid')
|
194 |
-
->getCsv();
|
195 |
-
|
196 |
-
$this->_sendUploadResponse($fileName, $content);
|
197 |
-
}
|
198 |
-
|
199 |
-
public function exportXmlAction()
|
200 |
-
{
|
201 |
-
$fileName = 'moreview.xml';
|
202 |
-
$content = $this->getLayout()->createBlock('moreview/adminhtml_moreview_grid')
|
203 |
-
->getXml();
|
204 |
-
|
205 |
-
$this->_sendUploadResponse($fileName, $content);
|
206 |
-
}
|
207 |
-
|
208 |
-
protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
|
209 |
-
{
|
210 |
-
$response = $this->getResponse();
|
211 |
-
$response->setHeader('HTTP/1.1 200 OK','');
|
212 |
-
$response->setHeader('Pragma', 'public', true);
|
213 |
-
$response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
|
214 |
-
$response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
|
215 |
-
$response->setHeader('Last-Modified', date('r'));
|
216 |
-
$response->setHeader('Accept-Ranges', 'bytes');
|
217 |
-
$response->setHeader('Content-Length', strlen($content));
|
218 |
-
$response->setHeader('Content-type', $contentType);
|
219 |
-
$response->setBody($content);
|
220 |
-
$response->sendResponse();
|
221 |
-
die;
|
222 |
-
}
|
223 |
-
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Setubridge Technolabs
|
4 |
* http://www.setubridge.com/
|
7 |
**/
|
8 |
?>
|
9 |
<?php
|
|
|
10 |
class Sbridge_Moreview_Adminhtml_MoreviewController extends Mage_Adminhtml_Controller_action
|
11 |
{
|
12 |
|
13 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/controllers/IndexController.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Setubridge Technolabs
|
5 |
* http://www.setubridge.com/
|
@@ -12,44 +11,6 @@ class Sbridge_Moreview_IndexController extends Mage_Core_Controller_Front_Action
|
|
12 |
{
|
13 |
public function indexAction()
|
14 |
{
|
15 |
-
|
16 |
-
/*
|
17 |
-
* Load an object by id
|
18 |
-
* Request looking like:
|
19 |
-
* http://site.com/moreview?id=15
|
20 |
-
* or
|
21 |
-
* http://site.com/moreview/id/15
|
22 |
-
*/
|
23 |
-
/*
|
24 |
-
$moreview_id = $this->getRequest()->getParam('id');
|
25 |
-
|
26 |
-
if($moreview_id != null && $moreview_id != '') {
|
27 |
-
$moreview = Mage::getModel('moreview/moreview')->load($moreview_id)->getData();
|
28 |
-
} else {
|
29 |
-
$moreview = null;
|
30 |
-
}
|
31 |
-
*/
|
32 |
-
|
33 |
-
/*
|
34 |
-
* If no param we load a the last created item
|
35 |
-
*/
|
36 |
-
/*
|
37 |
-
if($moreview == null) {
|
38 |
-
$resource = Mage::getSingleton('core/resource');
|
39 |
-
$read= $resource->getConnection('core_read');
|
40 |
-
$moreviewTable = $resource->getTableName('moreview');
|
41 |
-
|
42 |
-
$select = $read->select()
|
43 |
-
->from($moreviewTable,array('moreview_id','title','content','status'))
|
44 |
-
->where('status',1)
|
45 |
-
->order('created_time DESC') ;
|
46 |
-
|
47 |
-
$moreview = $read->fetchRow($select);
|
48 |
-
}
|
49 |
-
Mage::register('moreview', $moreview);
|
50 |
-
*/
|
51 |
-
|
52 |
-
|
53 |
$this->loadLayout();
|
54 |
$this->renderLayout();
|
55 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Setubridge Technolabs
|
4 |
* http://www.setubridge.com/
|
11 |
{
|
12 |
public function indexAction()
|
13 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
$this->loadLayout();
|
15 |
$this->renderLayout();
|
16 |
}
|
app/code/local/Sbridge/Moreview/etc/config.xml
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
/**
|
4 |
* @category Sbridge
|
5 |
* @package Sbridge_Moreview
|
6 |
-
* @author
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Sbridge_Moreview>
|
13 |
-
<version>1.0.
|
14 |
</Sbridge_Moreview>
|
15 |
</modules>
|
16 |
<frontend>
|
@@ -75,45 +75,11 @@
|
|
75 |
</layout>
|
76 |
</adminhtml>
|
77 |
<global>
|
78 |
-
|
79 |
-
<moreview>
|
80 |
-
<class>Sbridge_Moreview_Model</class>
|
81 |
-
<resourceModel>moreview_mysql4</resourceModel>
|
82 |
-
</moreview>
|
83 |
-
<moreview_mysql4>
|
84 |
-
<class>Sbridge_Moreview_Model_Mysql4</class>
|
85 |
-
<entities>
|
86 |
-
<moreview>
|
87 |
-
<table>moreview</table>
|
88 |
-
</moreview>
|
89 |
-
</entities>
|
90 |
-
</moreview_mysql4>
|
91 |
-
</models>-->
|
92 |
-
<!--<resources>
|
93 |
-
<moreview_setup>
|
94 |
-
<setup>
|
95 |
-
<module>Sbridge_Moreview</module>
|
96 |
-
</setup>
|
97 |
-
<connection>
|
98 |
-
<use>core_setup</use>
|
99 |
-
</connection>
|
100 |
-
</moreview_setup>
|
101 |
-
<moreview_write>
|
102 |
-
<connection>
|
103 |
-
<use>core_write</use>
|
104 |
-
</connection>
|
105 |
-
</moreview_write>
|
106 |
-
<moreview_read>
|
107 |
-
<connection>
|
108 |
-
<use>core_read</use>
|
109 |
-
</connection>
|
110 |
-
</moreview_read>
|
111 |
-
</resources>-->
|
112 |
-
<!--<blocks>
|
113 |
<moreview>
|
114 |
<class>Sbridge_Moreview_Block</class>
|
115 |
</moreview>
|
116 |
-
</blocks
|
117 |
<helpers>
|
118 |
<moreview>
|
119 |
<class>Sbridge_Moreview_Helper</class>
|
3 |
/**
|
4 |
* @category Sbridge
|
5 |
* @package Sbridge_Moreview
|
6 |
+
* @author SetuBridge
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Sbridge_Moreview>
|
13 |
+
<version>1.0.5</version>
|
14 |
</Sbridge_Moreview>
|
15 |
</modules>
|
16 |
<frontend>
|
75 |
</layout>
|
76 |
</adminhtml>
|
77 |
<global>
|
78 |
+
<blocks>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
<moreview>
|
80 |
<class>Sbridge_Moreview_Block</class>
|
81 |
</moreview>
|
82 |
+
</blocks>
|
83 |
<helpers>
|
84 |
<moreview>
|
85 |
<class>Sbridge_Moreview_Helper</class>
|
app/code/local/Sbridge/Moreview/etc/system.xml
CHANGED
@@ -1,4 +1,12 @@
|
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<config>
|
3 |
<tabs>
|
4 |
<sbridge_tab module="moreview" translate="label">
|
@@ -30,11 +38,45 @@
|
|
30 |
<show_in_website>1</show_in_website>
|
31 |
<show_in_store>1</show_in_store>
|
32 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
33 |
-
</module_moreview>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
<short_desc_instructions translate="label">
|
35 |
<label>Cross sell</label>
|
36 |
<frontend_type>select</frontend_type>
|
37 |
-
<sort_order>
|
38 |
<show_in_default>1</show_in_default>
|
39 |
<show_in_website>1</show_in_website>
|
40 |
<show_in_store>1</show_in_store>
|
@@ -43,7 +85,7 @@
|
|
43 |
<upsell_products translate="label">
|
44 |
<label>Up sell</label>
|
45 |
<frontend_type>select</frontend_type>
|
46 |
-
<sort_order>
|
47 |
<show_in_default>1</show_in_default>
|
48 |
<show_in_website>1</show_in_website>
|
49 |
<show_in_store>1</show_in_store>
|
@@ -52,7 +94,7 @@
|
|
52 |
<related_products translate="label">
|
53 |
<label>Related Product</label>
|
54 |
<frontend_type>select</frontend_type>
|
55 |
-
<sort_order>
|
56 |
<show_in_default>1</show_in_default>
|
57 |
<show_in_website>1</show_in_website>
|
58 |
<show_in_store>1</show_in_store>
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
<tabs>
|
12 |
<sbridge_tab module="moreview" translate="label">
|
38 |
<show_in_website>1</show_in_website>
|
39 |
<show_in_store>1</show_in_store>
|
40 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
41 |
+
</module_moreview>
|
42 |
+
<override_listfile translate="label">
|
43 |
+
<label>Override list.phtml?</label>
|
44 |
+
<frontend_type>select</frontend_type>
|
45 |
+
<comment>echo $this->getLayout()->createBlock('moreview/moreview')->setData('product',$_product)->setTemplate('moreview/backimage.phtml')->toHtml();
|
46 |
+
If set no than This code add before image tag in your theme list.phtml
|
47 |
+
|
48 |
+
</comment>
|
49 |
+
<sort_order>2</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<frontend_model>moreview/source_overrideoption</frontend_model>
|
54 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
55 |
+
</override_listfile>
|
56 |
+
<resize_moreview translate="label">
|
57 |
+
<label>Resize Back Images?</label>
|
58 |
+
<frontend_type>select</frontend_type>
|
59 |
+
<!-- <comment>Default Resize images width 210px.</comment>-->
|
60 |
+
<sort_order>3</sort_order>
|
61 |
+
<show_in_default>1</show_in_default>
|
62 |
+
<show_in_website>1</show_in_website>
|
63 |
+
<show_in_store>1</show_in_store>
|
64 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
65 |
+
</resize_moreview>
|
66 |
+
<resize_moreview_width translate="label">
|
67 |
+
<label>Width</label>
|
68 |
+
<frontend_type>text</frontend_type>
|
69 |
+
<sort_order>4</sort_order>
|
70 |
+
<show_in_default>1</show_in_default>
|
71 |
+
<show_in_website>1</show_in_website>
|
72 |
+
<show_in_store>1</show_in_store>
|
73 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
74 |
+
<depends><resize_moreview>1</resize_moreview></depends>
|
75 |
+
</resize_moreview_width>
|
76 |
<short_desc_instructions translate="label">
|
77 |
<label>Cross sell</label>
|
78 |
<frontend_type>select</frontend_type>
|
79 |
+
<sort_order>5</sort_order>
|
80 |
<show_in_default>1</show_in_default>
|
81 |
<show_in_website>1</show_in_website>
|
82 |
<show_in_store>1</show_in_store>
|
85 |
<upsell_products translate="label">
|
86 |
<label>Up sell</label>
|
87 |
<frontend_type>select</frontend_type>
|
88 |
+
<sort_order>6</sort_order>
|
89 |
<show_in_default>1</show_in_default>
|
90 |
<show_in_website>1</show_in_website>
|
91 |
<show_in_store>1</show_in_store>
|
94 |
<related_products translate="label">
|
95 |
<label>Related Product</label>
|
96 |
<frontend_type>select</frontend_type>
|
97 |
+
<sort_order>7</sort_order>
|
98 |
<show_in_default>1</show_in_default>
|
99 |
<show_in_website>1</show_in_website>
|
100 |
<show_in_store>1</show_in_store>
|
app/design/frontend/base/default/layout/moreview.xml
CHANGED
@@ -1,31 +1,42 @@
|
|
1 |
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<layout version="0.1.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
6 |
</reference>
|
7 |
</default>
|
8 |
-
<
|
9 |
-
|
10 |
-
<block type="
|
|
|
|
|
11 |
</reference>
|
12 |
-
</moreview_index_index>
|
13 |
-
|
14 |
-
<catalog_category_layered translate="label">
|
15 |
<reference name="product_list">
|
16 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
17 |
-
|
18 |
</action>
|
19 |
</reference>
|
20 |
-
</
|
21 |
-
|
22 |
-
<
|
|
|
|
|
|
|
|
|
23 |
<reference name="product_list">
|
24 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
25 |
-
|
26 |
</action>
|
27 |
</reference>
|
28 |
-
</
|
29 |
|
30 |
<checkout_cart_index translate="label">
|
31 |
<reference name="checkout.cart.crosssell">
|
@@ -50,4 +61,6 @@
|
|
50 |
</action>
|
51 |
</reference>
|
52 |
</catalog_product_view>
|
|
|
|
|
53 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<layout version="0.1.0">
|
11 |
<default>
|
12 |
<reference name="head">
|
13 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
14 |
</reference>
|
15 |
</default>
|
16 |
+
<catalog_category_default translate="label">
|
17 |
+
<reference name="product_list.name.after">
|
18 |
+
<block type="catalog/category_view" name="listmoreviews">
|
19 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
20 |
+
</block>
|
21 |
</reference>
|
|
|
|
|
|
|
22 |
<reference name="product_list">
|
23 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
24 |
+
<template helper="moreview/setmoreview"/>
|
25 |
</action>
|
26 |
</reference>
|
27 |
+
</catalog_category_default>
|
28 |
+
<catalog_category_layered translate="label">
|
29 |
+
<reference name="product_list.name.after">
|
30 |
+
<block type="catalog/category_view" name="listmoreviews">
|
31 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
32 |
+
</block>
|
33 |
+
</reference>
|
34 |
<reference name="product_list">
|
35 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
36 |
+
<template helper="moreview/setmoreview"/>
|
37 |
</action>
|
38 |
</reference>
|
39 |
+
</catalog_category_layered>
|
40 |
|
41 |
<checkout_cart_index translate="label">
|
42 |
<reference name="checkout.cart.crosssell">
|
61 |
</action>
|
62 |
</reference>
|
63 |
</catalog_product_view>
|
64 |
+
|
65 |
+
|
66 |
</layout>
|
app/design/frontend/base/default/template/moreview/backimage.phtml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
11 |
+
if($config):
|
12 |
+
$_helper = $this->helper('catalog/output');
|
13 |
+
$_product=$this->getProduct();
|
14 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
15 |
+
if(count($imagesCount) >1 ):
|
16 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
17 |
+
if($_images):
|
18 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
19 |
+
if($isResize):
|
20 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
21 |
+
else:
|
22 |
+
$_imgSize = 135;
|
23 |
+
endif;
|
24 |
+
|
25 |
+
?>
|
26 |
+
<img class="sbmoreview" id="sbmoreview-<?php echo $_product->getId() ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
27 |
+
|
28 |
+
<?php endif;?>
|
29 |
+
<?php endif; ?>
|
30 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/moreview/crosssell.phtml
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
**/
|
9 |
?>
|
10 |
<?php
|
11 |
/**
|
@@ -14,18 +13,18 @@
|
|
14 |
* @see Mage_Checkout_Block_Cart_Crosssell
|
15 |
*/
|
16 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
<
|
25 |
-
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>">
|
26 |
|
27 |
-
|
28 |
-
|
|
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
@@ -34,27 +33,27 @@
|
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail', $_images->getFile())->resize(75); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
-
<?php }
|
38 |
-
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
<?php endif; ?>
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
8 |
?>
|
9 |
<?php
|
10 |
/**
|
13 |
* @see Mage_Checkout_Block_Cart_Crosssell
|
14 |
*/
|
15 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
16 |
+
?>
|
17 |
+
<?php if($this->getItemCount()): ?>
|
18 |
+
<div class="crosssell">
|
19 |
+
<h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
|
20 |
+
<ul id="crosssell-products-list">
|
21 |
+
<?php foreach ($this->getItems() as $_item): ?>
|
22 |
+
<li class="item">
|
23 |
+
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>">
|
|
|
24 |
|
25 |
+
<?php
|
26 |
+
$sb=0;
|
27 |
+
if($config == 1):
|
28 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
29 |
if(count($imagesCount) >1 ):
|
30 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
33 |
$sb=1;
|
34 |
?>
|
35 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail', $_images->getFile())->resize(75); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
36 |
+
<?php } ?>
|
37 |
+
<?php endif;?>
|
38 |
+
<?php endif;?>
|
39 |
|
40 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
|
41 |
+
<div class="product-details">
|
42 |
+
<h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h3>
|
43 |
+
<?php echo $this->getPriceHtml($_item, true) ?>
|
44 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
45 |
+
<ul class="add-to-links">
|
46 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
47 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_item)): ?>
|
50 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
51 |
+
<?php endif; ?>
|
52 |
+
</ul>
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
<?php endforeach; ?>
|
56 |
+
</ul>
|
57 |
+
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
|
58 |
+
</div>
|
59 |
+
<?php endif; ?>
|
|
app/design/frontend/base/default/template/moreview/list.phtml
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
**/
|
9 |
?>
|
10 |
<?php
|
11 |
/**
|
@@ -14,9 +13,10 @@
|
|
14 |
* @see Mage_Catalog_Block_Product_List
|
15 |
*/
|
16 |
?>
|
17 |
-
<?php
|
18 |
$_productCollection=$this->getLoadedProductCollection();
|
19 |
$_helper = $this->helper('catalog/output');
|
|
|
20 |
?>
|
21 |
<?php if(!$_productCollection->count()): ?>
|
22 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
@@ -31,19 +31,27 @@
|
|
31 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
32 |
<?php // Product Image ?>
|
33 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
<?php // Product description ?>
|
48 |
<div class="product-shop">
|
49 |
<div class="f-fix">
|
@@ -90,21 +98,32 @@
|
|
90 |
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
91 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
92 |
<?php
|
|
|
93 |
$sb=0;
|
94 |
-
|
95 |
-
|
96 |
-
$
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
105 |
<!--<img src="<?php echo $this->getSkinUrl('images/')?>home_main_callout.jpg" class="sbmoreview"/>-->
|
106 |
</a>
|
107 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
|
|
108 |
<?php if($_product->getRatingSummary()): ?>
|
109 |
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
110 |
<?php endif; ?>
|
@@ -136,4 +155,4 @@
|
|
136 |
<?php echo $this->getToolbarHtml() ?>
|
137 |
</div>
|
138 |
</div>
|
139 |
-
<?php endif; ?>
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
8 |
?>
|
9 |
<?php
|
10 |
/**
|
13 |
* @see Mage_Catalog_Block_Product_List
|
14 |
*/
|
15 |
?>
|
16 |
+
<?php
|
17 |
$_productCollection=$this->getLoadedProductCollection();
|
18 |
$_helper = $this->helper('catalog/output');
|
19 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
20 |
?>
|
21 |
<?php if(!$_productCollection->count()): ?>
|
22 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
31 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
32 |
<?php // Product Image ?>
|
33 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
34 |
+
<?php
|
35 |
+
$sb=0;
|
36 |
+
if($config):
|
37 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
38 |
+
if(count($imagesCount) >1 ):
|
39 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
40 |
+
if($_images)
|
41 |
+
{
|
42 |
+
$sb=1;
|
43 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
44 |
+
if($isResize):
|
45 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
46 |
+
else:
|
47 |
+
$_imgSize = 210;
|
48 |
+
endif;
|
49 |
+
?>
|
50 |
+
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
51 |
+
<?php }?>
|
52 |
+
<?php endif;?>
|
53 |
+
<?php endif; ?>
|
54 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
55 |
<?php // Product description ?>
|
56 |
<div class="product-shop">
|
57 |
<div class="f-fix">
|
98 |
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
99 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
100 |
<?php
|
101 |
+
|
102 |
$sb=0;
|
103 |
+
if($config):
|
104 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
105 |
+
if(count($imagesCount) > 1 ):
|
106 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
107 |
+
if($_images)
|
108 |
+
{
|
109 |
+
$sb=1;
|
110 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
111 |
+
if($isResize):
|
112 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
113 |
+
else:
|
114 |
+
$_imgSize = 135;
|
115 |
+
endif;
|
116 |
+
|
117 |
+
?>
|
118 |
+
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
119 |
+
<?php } ?>
|
120 |
+
<?php endif;?>
|
121 |
+
<?php endif;?>
|
122 |
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
123 |
<!--<img src="<?php echo $this->getSkinUrl('images/')?>home_main_callout.jpg" class="sbmoreview"/>-->
|
124 |
</a>
|
125 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
126 |
+
|
127 |
<?php if($_product->getRatingSummary()): ?>
|
128 |
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
129 |
<?php endif; ?>
|
155 |
<?php echo $this->getToolbarHtml() ?>
|
156 |
</div>
|
157 |
</div>
|
158 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/moreview/moreview.phtml
CHANGED
@@ -1,74 +1,38 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
$
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/*
|
42 |
-
This shows how to load multiple rows in a collection and save a change to them.
|
43 |
-
1) The setPageSize function will load only 5 records per page and you can set the current Page with the setCurPage function.
|
44 |
-
2) The $collection->walk('save') allows you to save everything in the collection after all changes have been made.
|
45 |
-
*/
|
46 |
-
/*
|
47 |
-
$i = 0;
|
48 |
-
|
49 |
-
$collection = Mage::getModel('moreview/moreview')->getCollection();
|
50 |
-
$collection->setPageSize(5);
|
51 |
-
$collection->setCurPage(2);
|
52 |
-
$size = $collection->getSize();
|
53 |
-
$cnt = count($collection);
|
54 |
-
foreach ($collection as $item) {
|
55 |
-
$i = $i+1;
|
56 |
-
$item->setTitle($i);
|
57 |
-
echo $item->getTitle();
|
58 |
-
}
|
59 |
-
|
60 |
-
$collection->walk('save');
|
61 |
-
*/
|
62 |
-
|
63 |
-
/*
|
64 |
-
This shows how to load a single record and save a change.
|
65 |
-
1) Note the setTitle, this corresponds to the table field name, title, and then you pass it the text to change.
|
66 |
-
2) Call the save() function only on a single record.
|
67 |
-
*/
|
68 |
-
/*
|
69 |
-
$object = Mage::getModel('moreview/moreview')->load(1);
|
70 |
-
$object->setTitle('This is a changed title');
|
71 |
-
$object->save();
|
72 |
-
*/
|
73 |
-
|
74 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
11 |
+
if($config):
|
12 |
+
$_helper = $this->helper('catalog/output');
|
13 |
+
$_product=$this->getProduct();
|
14 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
15 |
+
if(count($imagesCount) >1 ):
|
16 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
17 |
+
if($_images):
|
18 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
19 |
+
if($isResize):
|
20 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
21 |
+
else:
|
22 |
+
$_imgSize = 210;
|
23 |
+
endif;
|
24 |
+
|
25 |
+
$moreviewhtmlid='sbmoreviewinnerhtml-'.$_product->getId();
|
26 |
+
?>
|
27 |
+
<p id="<?php echo $moreviewhtmlid ?>">
|
28 |
+
<img class="sbmoreview" id="sbmoreview-<?php echo $_product->getId() ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
29 |
+
</p>
|
30 |
+
<script type="text/javascript">
|
31 |
+
var imgid="<?php echo "product-collection-image-".$_product->getId() ?>";
|
32 |
+
var data=$('<?Php echo $moreviewhtmlid ?>').innerHTML;
|
33 |
+
$(imgid).addClassName("sbview");
|
34 |
+
new Insertion.Before(imgid,data);
|
35 |
+
</script>
|
36 |
+
<?php endif; ?>
|
37 |
+
<?php endif; ?>
|
38 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/moreview/related.phtml
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Setubridge Technolabs
|
5 |
* http://www.setubridge.com/
|
@@ -9,7 +8,6 @@
|
|
9 |
?>
|
10 |
<?php
|
11 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
12 |
-
if($config == 1):
|
13 |
?>
|
14 |
<?php if($this->getItems()->getSize()): ?>
|
15 |
<div class="block block-related">
|
@@ -34,7 +32,7 @@
|
|
34 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
35 |
if(count($imagesCount) >1 ):
|
36 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
37 |
-
if($_images)
|
38 |
{
|
39 |
$sb=1;
|
40 |
?>
|
@@ -94,4 +92,3 @@
|
|
94 |
</script>
|
95 |
</div>
|
96 |
<?php endif ?>
|
97 |
-
<?php endif ?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Setubridge Technolabs
|
4 |
* http://www.setubridge.com/
|
8 |
?>
|
9 |
<?php
|
10 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
|
|
11 |
?>
|
12 |
<?php if($this->getItems()->getSize()): ?>
|
13 |
<div class="block block-related">
|
32 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
33 |
if(count($imagesCount) >1 ):
|
34 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
35 |
+
if($_images && $config==1)
|
36 |
{
|
37 |
$sb=1;
|
38 |
?>
|
92 |
</script>
|
93 |
</div>
|
94 |
<?php endif ?>
|
|
app/design/frontend/base/default/template/moreview/upsell.phtml
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
?>
|
10 |
<?php
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
<?php
|
23 |
-
|
24 |
-
<
|
25 |
-
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image">
|
26 |
|
27 |
-
|
28 |
-
|
|
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
@@ -34,22 +34,22 @@
|
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_link, 'thumbnail', $_images->getFile())->resize(125); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
-
<?php }
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<?php endif ?>
|
55 |
<?php endif ?>
|
|
1 |
<?php
|
2 |
|
3 |
+
/**
|
4 |
+
* Setubridge Technolabs
|
5 |
+
* http://www.setubridge.com/
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
**/
|
9 |
?>
|
10 |
<?php
|
11 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
12 |
+
?>
|
13 |
+
<?php if(count($this->getItemCollection()->getItems())): ?>
|
14 |
+
<div class="box-collateral box-up-sell">
|
15 |
+
<h2><?php echo $this->__('You may also be interested in the following product(s)') ?></h2>
|
16 |
+
<table class="products-grid" id="upsell-product-table">
|
17 |
+
<?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
|
18 |
+
<?php $this->resetItemsIterator() ?>
|
19 |
+
<?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
|
20 |
+
<tr>
|
21 |
+
<?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
|
22 |
+
<?php if($_link=$this->getIterableItem()): ?>
|
23 |
+
<td>
|
24 |
+
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image">
|
|
|
25 |
|
26 |
+
<?php
|
27 |
+
$sb=0;
|
28 |
+
if($config == 1):
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_link, 'thumbnail', $_images->getFile())->resize(125); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
+
<?php } ?>
|
38 |
+
<?php endif;?>
|
39 |
+
<?php endif ?>
|
40 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize(125) ?>" width="125" height="125" alt="<?php echo $this->htmlEscape($_link->getName()) ?>" /></a>
|
41 |
+
<h3 class="product-name"><a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>"><?php echo $this->htmlEscape($_link->getName()) ?></a></h3>
|
42 |
+
<?php echo $this->getPriceHtml($_link, true, '-upsell') ?>
|
43 |
+
<?php echo $this->getReviewsSummaryHtml($_link) ?>
|
44 |
+
</td>
|
45 |
+
<?php else: ?>
|
46 |
+
<td class="empty"> </td>
|
47 |
+
<?php endif; ?>
|
48 |
+
<?php endfor; ?>
|
49 |
+
</tr>
|
50 |
+
<?php endfor; ?>
|
51 |
+
</table>
|
52 |
+
<script type="text/javascript">decorateTable('upsell-product-table')</script>
|
53 |
+
</div>
|
|
|
54 |
<?php endif ?>
|
55 |
+
|
app/design/frontend/default/default/layout/moreview.xml
CHANGED
@@ -1,31 +1,42 @@
|
|
1 |
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<layout version="0.1.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
6 |
</reference>
|
7 |
</default>
|
8 |
-
<
|
9 |
-
|
10 |
-
<block type="
|
|
|
|
|
11 |
</reference>
|
12 |
-
</moreview_index_index>
|
13 |
-
|
14 |
-
<catalog_category_layered translate="label">
|
15 |
<reference name="product_list">
|
16 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
17 |
-
|
18 |
</action>
|
19 |
</reference>
|
20 |
-
</
|
21 |
-
|
22 |
-
<
|
|
|
|
|
|
|
|
|
23 |
<reference name="product_list">
|
24 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
25 |
-
|
26 |
</action>
|
27 |
</reference>
|
28 |
-
</
|
29 |
|
30 |
<checkout_cart_index translate="label">
|
31 |
<reference name="checkout.cart.crosssell">
|
@@ -50,6 +61,4 @@
|
|
50 |
</action>
|
51 |
</reference>
|
52 |
</catalog_product_view>
|
53 |
-
|
54 |
-
|
55 |
</layout>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<layout version="0.1.0">
|
11 |
<default>
|
12 |
<reference name="head">
|
13 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
14 |
</reference>
|
15 |
</default>
|
16 |
+
<catalog_category_default translate="label">
|
17 |
+
<reference name="product_list.name.after">
|
18 |
+
<block type="catalog/category_view" name="listmoreviews">
|
19 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
20 |
+
</block>
|
21 |
</reference>
|
|
|
|
|
|
|
22 |
<reference name="product_list">
|
23 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
24 |
+
<template helper="moreview/setmoreview"/>
|
25 |
</action>
|
26 |
</reference>
|
27 |
+
</catalog_category_default>
|
28 |
+
<catalog_category_layered translate="label">
|
29 |
+
<reference name="product_list.name.after">
|
30 |
+
<block type="catalog/category_view" name="listmoreviews">
|
31 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
32 |
+
</block>
|
33 |
+
</reference>
|
34 |
<reference name="product_list">
|
35 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
36 |
+
<template helper="moreview/setmoreview"/>
|
37 |
</action>
|
38 |
</reference>
|
39 |
+
</catalog_category_layered>
|
40 |
|
41 |
<checkout_cart_index translate="label">
|
42 |
<reference name="checkout.cart.crosssell">
|
61 |
</action>
|
62 |
</reference>
|
63 |
</catalog_product_view>
|
|
|
|
|
64 |
</layout>
|
app/design/frontend/default/default/template/moreview/backimage.phtml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
11 |
+
if($config):
|
12 |
+
$_helper = $this->helper('catalog/output');
|
13 |
+
$_product=$this->getProduct();
|
14 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
15 |
+
if(count($imagesCount) >1 ):
|
16 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
17 |
+
if($_images):
|
18 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
19 |
+
if($isResize):
|
20 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
21 |
+
else:
|
22 |
+
$_imgSize = 135;
|
23 |
+
endif;
|
24 |
+
?>
|
25 |
+
<img class="sbmoreview" id="sbmoreview-<?php echo $_product->getId() ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
26 |
+
<?php endif;?>
|
27 |
+
<?php endif; ?>
|
28 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/moreview/crosssell.phtml
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
**/
|
9 |
?>
|
10 |
<?php
|
11 |
/**
|
@@ -14,18 +13,18 @@
|
|
14 |
* @see Mage_Checkout_Block_Cart_Crosssell
|
15 |
*/
|
16 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
<
|
25 |
-
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>">
|
26 |
|
27 |
-
|
28 |
-
|
|
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
@@ -34,27 +33,27 @@
|
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail', $_images->getFile())->resize(75); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
-
<?php }
|
38 |
-
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
<?php endif; ?>
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
8 |
?>
|
9 |
<?php
|
10 |
/**
|
13 |
* @see Mage_Checkout_Block_Cart_Crosssell
|
14 |
*/
|
15 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
16 |
+
?>
|
17 |
+
<?php if($this->getItemCount()): ?>
|
18 |
+
<div class="crosssell">
|
19 |
+
<h2><?php echo $this->__('Based on your selection, you may be interested in the following items:') ?></h2>
|
20 |
+
<ul id="crosssell-products-list">
|
21 |
+
<?php foreach ($this->getItems() as $_item): ?>
|
22 |
+
<li class="item">
|
23 |
+
<a class="product-image" href="<?php echo $_item->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_item->getName()) ?>">
|
|
|
24 |
|
25 |
+
<?php
|
26 |
+
$sb=0;
|
27 |
+
if($config == 1):
|
28 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
29 |
if(count($imagesCount) >1 ):
|
30 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
33 |
$sb=1;
|
34 |
?>
|
35 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail', $_images->getFile())->resize(75); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
36 |
+
<?php } ?>
|
37 |
+
<?php endif;?>
|
38 |
+
<?php endif;?>
|
39 |
|
40 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_item, 'thumbnail')->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($_item->getName()) ?>" /></a>
|
41 |
+
<div class="product-details">
|
42 |
+
<h3 class="product-name"><a href="<?php echo $_item->getProductUrl() ?>"><?php echo $this->htmlEscape($_item->getName()) ?></a></h3>
|
43 |
+
<?php echo $this->getPriceHtml($_item, true) ?>
|
44 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_item) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
45 |
+
<ul class="add-to-links">
|
46 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
47 |
+
<li><a href="<?php echo $this->getAddToWishlistUrl($_item) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
48 |
+
<?php endif; ?>
|
49 |
+
<?php if($_compareUrl=$this->getAddToCompareUrl($_item)): ?>
|
50 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
51 |
+
<?php endif; ?>
|
52 |
+
</ul>
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
<?php endforeach; ?>
|
56 |
+
</ul>
|
57 |
+
<script type="text/javascript">decorateList('crosssell-products-list', 'none-recursive')</script>
|
58 |
+
</div>
|
59 |
+
<?php endif; ?>
|
|
app/design/frontend/default/default/template/moreview/list.phtml
CHANGED
@@ -1,22 +1,15 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
<?php
|
11 |
/**
|
12 |
-
*
|
13 |
-
*
|
14 |
-
* @
|
15 |
-
|
|
|
16 |
?>
|
17 |
-
<?php
|
18 |
$_productCollection=$this->getLoadedProductCollection();
|
19 |
$_helper = $this->helper('catalog/output');
|
|
|
20 |
?>
|
21 |
<?php if(!$_productCollection->count()): ?>
|
22 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
@@ -31,19 +24,27 @@
|
|
31 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
32 |
<?php // Product Image ?>
|
33 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
<?php // Product description ?>
|
48 |
<div class="product-shop">
|
49 |
<div class="f-fix">
|
@@ -90,21 +91,32 @@
|
|
90 |
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
91 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
92 |
<?php
|
|
|
93 |
$sb=0;
|
94 |
-
|
95 |
-
|
96 |
-
$
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
105 |
<!--<img src="<?php echo $this->getSkinUrl('images/')?>home_main_callout.jpg" class="sbmoreview"/>-->
|
106 |
</a>
|
107 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
|
|
108 |
<?php if($_product->getRatingSummary()): ?>
|
109 |
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
110 |
<?php endif; ?>
|
@@ -136,4 +148,4 @@
|
|
136 |
<?php echo $this->getToolbarHtml() ?>
|
137 |
</div>
|
138 |
</div>
|
139 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
?>
|
9 |
+
<?php
|
10 |
$_productCollection=$this->getLoadedProductCollection();
|
11 |
$_helper = $this->helper('catalog/output');
|
12 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
13 |
?>
|
14 |
<?php if(!$_productCollection->count()): ?>
|
15 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
24 |
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
25 |
<?php // Product Image ?>
|
26 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
27 |
+
<?php
|
28 |
+
$sb=0;
|
29 |
+
if($config):
|
30 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
31 |
+
if(count($imagesCount) >1 ):
|
32 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
33 |
+
if($_images)
|
34 |
+
{
|
35 |
+
$sb=1;
|
36 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
37 |
+
if($isResize):
|
38 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
39 |
+
else:
|
40 |
+
$_imgSize = 210;
|
41 |
+
endif;
|
42 |
+
?>
|
43 |
+
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
44 |
+
<?php }?>
|
45 |
+
<?php endif;?>
|
46 |
+
<?php endif; ?>
|
47 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
|
48 |
<?php // Product description ?>
|
49 |
<div class="product-shop">
|
50 |
<div class="f-fix">
|
91 |
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
92 |
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
93 |
<?php
|
94 |
+
|
95 |
$sb=0;
|
96 |
+
if($config):
|
97 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
98 |
+
if(count($imagesCount) > 1 ):
|
99 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
100 |
+
if($_images)
|
101 |
+
{
|
102 |
+
$sb=1;
|
103 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
104 |
+
if($isResize):
|
105 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
106 |
+
else:
|
107 |
+
$_imgSize = 135;
|
108 |
+
endif;
|
109 |
+
|
110 |
+
?>
|
111 |
+
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
112 |
+
<?php } ?>
|
113 |
+
<?php endif;?>
|
114 |
+
<?php endif;?>
|
115 |
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
116 |
<!--<img src="<?php echo $this->getSkinUrl('images/')?>home_main_callout.jpg" class="sbmoreview"/>-->
|
117 |
</a>
|
118 |
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
119 |
+
|
120 |
<?php if($_product->getRatingSummary()): ?>
|
121 |
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
122 |
<?php endif; ?>
|
148 |
<?php echo $this->getToolbarHtml() ?>
|
149 |
</div>
|
150 |
</div>
|
151 |
+
<?php endif; ?>
|
app/design/frontend/default/default/template/moreview/moreview.phtml
CHANGED
@@ -1,74 +1,38 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
$
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
/*
|
42 |
-
This shows how to load multiple rows in a collection and save a change to them.
|
43 |
-
1) The setPageSize function will load only 5 records per page and you can set the current Page with the setCurPage function.
|
44 |
-
2) The $collection->walk('save') allows you to save everything in the collection after all changes have been made.
|
45 |
-
*/
|
46 |
-
/*
|
47 |
-
$i = 0;
|
48 |
-
|
49 |
-
$collection = Mage::getModel('moreview/moreview')->getCollection();
|
50 |
-
$collection->setPageSize(5);
|
51 |
-
$collection->setCurPage(2);
|
52 |
-
$size = $collection->getSize();
|
53 |
-
$cnt = count($collection);
|
54 |
-
foreach ($collection as $item) {
|
55 |
-
$i = $i+1;
|
56 |
-
$item->setTitle($i);
|
57 |
-
echo $item->getTitle();
|
58 |
-
}
|
59 |
-
|
60 |
-
$collection->walk('save');
|
61 |
-
*/
|
62 |
-
|
63 |
-
/*
|
64 |
-
This shows how to load a single record and save a change.
|
65 |
-
1) Note the setTitle, this corresponds to the table field name, title, and then you pass it the text to change.
|
66 |
-
2) Call the save() function only on a single record.
|
67 |
-
*/
|
68 |
-
/*
|
69 |
-
$object = Mage::getModel('moreview/moreview')->load(1);
|
70 |
-
$object->setTitle('This is a changed title');
|
71 |
-
$object->save();
|
72 |
-
*/
|
73 |
-
|
74 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
11 |
+
if($config):
|
12 |
+
$_helper = $this->helper('catalog/output');
|
13 |
+
$_product=$this->getProduct();
|
14 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
15 |
+
if(count($imagesCount) >1 ):
|
16 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
17 |
+
if($_images):
|
18 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
19 |
+
if($isResize):
|
20 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
21 |
+
else:
|
22 |
+
$_imgSize = 210;
|
23 |
+
endif;
|
24 |
+
|
25 |
+
$moreviewhtmlid='sbmoreviewinnerhtml-'.$_product->getId();
|
26 |
+
?>
|
27 |
+
<p id="<?php echo $moreviewhtmlid ?>">
|
28 |
+
<img class="sbmoreview" id="sbmoreview-<?php echo $_product->getId() ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
29 |
+
</p>
|
30 |
+
<script type="text/javascript">
|
31 |
+
var imgid="<?php echo "product-collection-image-".$_product->getId() ?>";
|
32 |
+
var data=$('<?Php echo $moreviewhtmlid ?>').innerHTML;
|
33 |
+
$(imgid).addClassName("sbview");
|
34 |
+
new Insertion.Before(imgid,data);
|
35 |
+
</script>
|
36 |
+
<?php endif; ?>
|
37 |
+
<?php endif; ?>
|
38 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/template/moreview/related.phtml
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* Setubridge Technolabs
|
5 |
* http://www.setubridge.com/
|
@@ -9,7 +8,6 @@
|
|
9 |
?>
|
10 |
<?php
|
11 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
12 |
-
if($config == 1):
|
13 |
?>
|
14 |
<?php if($this->getItems()->getSize()): ?>
|
15 |
<div class="block block-related">
|
@@ -34,7 +32,7 @@
|
|
34 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
35 |
if(count($imagesCount) >1 ):
|
36 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
37 |
-
if($_images)
|
38 |
{
|
39 |
$sb=1;
|
40 |
?>
|
@@ -94,4 +92,3 @@
|
|
94 |
</script>
|
95 |
</div>
|
96 |
<?php endif ?>
|
97 |
-
<?php endif ?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* Setubridge Technolabs
|
4 |
* http://www.setubridge.com/
|
8 |
?>
|
9 |
<?php
|
10 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
|
|
11 |
?>
|
12 |
<?php if($this->getItems()->getSize()): ?>
|
13 |
<div class="block block-related">
|
32 |
$imagesCount = Mage::getModel('catalog/product')->load($_item->getId())->getMediaGalleryImages();
|
33 |
if(count($imagesCount) >1 ):
|
34 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
35 |
+
if($_images && $config==1)
|
36 |
{
|
37 |
$sb=1;
|
38 |
?>
|
92 |
</script>
|
93 |
</div>
|
94 |
<?php endif ?>
|
|
app/design/frontend/default/default/template/moreview/upsell.phtml
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
?>
|
10 |
<?php
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
<?php
|
23 |
-
|
24 |
-
<
|
25 |
-
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image">
|
26 |
|
27 |
-
|
28 |
-
|
|
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
@@ -34,22 +34,22 @@
|
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_link, 'thumbnail', $_images->getFile())->resize(125); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
-
<?php }
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<?php endif ?>
|
55 |
<?php endif ?>
|
|
1 |
<?php
|
2 |
|
3 |
+
/**
|
4 |
+
* Setubridge Technolabs
|
5 |
+
* http://www.setubridge.com/
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
**/
|
9 |
?>
|
10 |
<?php
|
11 |
+
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
12 |
+
?>
|
13 |
+
<?php if(count($this->getItemCollection()->getItems())): ?>
|
14 |
+
<div class="box-collateral box-up-sell">
|
15 |
+
<h2><?php echo $this->__('You may also be interested in the following product(s)') ?></h2>
|
16 |
+
<table class="products-grid" id="upsell-product-table">
|
17 |
+
<?php // $this->setColumnCount(5); // uncomment this line if you want to have another number of columns. also can be changed in layout ?>
|
18 |
+
<?php $this->resetItemsIterator() ?>
|
19 |
+
<?php for($_i=0;$_i<$this->getRowCount();$_i++): ?>
|
20 |
+
<tr>
|
21 |
+
<?php for($_j=0;$_j<$this->getColumnCount();$_j++): ?>
|
22 |
+
<?php if($_link=$this->getIterableItem()): ?>
|
23 |
+
<td>
|
24 |
+
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>" class="product-image">
|
|
|
25 |
|
26 |
+
<?php
|
27 |
+
$sb=0;
|
28 |
+
if($config == 1):
|
29 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
30 |
if(count($imagesCount) >1 ):
|
31 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
34 |
$sb=1;
|
35 |
?>
|
36 |
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_link, 'thumbnail', $_images->getFile())->resize(125); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
37 |
+
<?php } ?>
|
38 |
+
<?php endif;?>
|
39 |
+
<?php endif ?>
|
40 |
+
<img class="<?php if($sb==1)echo "sbview";?>" src="<?php echo $this->helper('catalog/image')->init($_link, 'small_image')->resize(125) ?>" width="125" height="125" alt="<?php echo $this->htmlEscape($_link->getName()) ?>" /></a>
|
41 |
+
<h3 class="product-name"><a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->htmlEscape($_link->getName()) ?>"><?php echo $this->htmlEscape($_link->getName()) ?></a></h3>
|
42 |
+
<?php echo $this->getPriceHtml($_link, true, '-upsell') ?>
|
43 |
+
<?php echo $this->getReviewsSummaryHtml($_link) ?>
|
44 |
+
</td>
|
45 |
+
<?php else: ?>
|
46 |
+
<td class="empty"> </td>
|
47 |
+
<?php endif; ?>
|
48 |
+
<?php endfor; ?>
|
49 |
+
</tr>
|
50 |
+
<?php endfor; ?>
|
51 |
+
</table>
|
52 |
+
<script type="text/javascript">decorateTable('upsell-product-table')</script>
|
53 |
+
</div>
|
|
|
54 |
<?php endif ?>
|
55 |
+
|
app/design/frontend/rwd/default/layout/moreview.xml
CHANGED
@@ -1,31 +1,42 @@
|
|
1 |
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<layout version="0.1.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
6 |
</reference>
|
7 |
</default>
|
8 |
-
<
|
9 |
-
|
10 |
-
<block type="
|
|
|
|
|
11 |
</reference>
|
12 |
-
</moreview_index_index>
|
13 |
-
|
14 |
-
<catalog_category_layered translate="label">
|
15 |
<reference name="product_list">
|
16 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
17 |
-
|
18 |
</action>
|
19 |
</reference>
|
20 |
-
</
|
21 |
-
|
22 |
-
<
|
|
|
|
|
|
|
|
|
23 |
<reference name="product_list">
|
24 |
-
<action method="setTemplate" ifconfig="moreview_section/general_group/
|
25 |
-
|
26 |
</action>
|
27 |
</reference>
|
28 |
-
</
|
29 |
|
30 |
<checkout_cart_index translate="label">
|
31 |
<reference name="checkout.cart.crosssell">
|
1 |
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author SetuBridge
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<layout version="0.1.0">
|
11 |
<default>
|
12 |
<reference name="head">
|
13 |
<action method="addCss" ifconfig="moreview_section/general_group/module_moreview"><stylesheeet>css/moreview.css</stylesheeet></action>
|
14 |
</reference>
|
15 |
</default>
|
16 |
+
<catalog_category_default translate="label">
|
17 |
+
<reference name="product_list.name.after">
|
18 |
+
<block type="catalog/category_view" name="listmoreviews">
|
19 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
20 |
+
</block>
|
21 |
</reference>
|
|
|
|
|
|
|
22 |
<reference name="product_list">
|
23 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
24 |
+
<template helper="moreview/setmoreview"/>
|
25 |
</action>
|
26 |
</reference>
|
27 |
+
</catalog_category_default>
|
28 |
+
<catalog_category_layered translate="label">
|
29 |
+
<reference name="product_list.name.after">
|
30 |
+
<block type="catalog/category_view" name="listmoreviews">
|
31 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/module_moreview"><template helper="moreview/setmoreview"/></action>
|
32 |
+
</block>
|
33 |
+
</reference>
|
34 |
<reference name="product_list">
|
35 |
+
<action method="setTemplate" ifconfig="moreview_section/general_group/override_listfile">
|
36 |
+
<template helper="moreview/setmoreview"/>
|
37 |
</action>
|
38 |
</reference>
|
39 |
+
</catalog_category_layered>
|
40 |
|
41 |
<checkout_cart_index translate="label">
|
42 |
<reference name="checkout.cart.crosssell">
|
app/design/frontend/rwd/default/template/moreview/crosssell.phtml
CHANGED
@@ -1,35 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package rwd_default
|
23 |
-
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* Cart cross sell items template
|
30 |
-
*
|
31 |
-
* @see Mage_Checkout_Block_Cart_Crosssell
|
32 |
-
*/
|
33 |
?>
|
34 |
<?php if($this->getItemCount()): ?>
|
35 |
<div class="crosssell">
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
?>
|
9 |
<?php if($this->getItemCount()): ?>
|
10 |
<div class="crosssell">
|
app/design/frontend/rwd/default/template/moreview/list.phtml
DELETED
@@ -1,214 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package rwd_default
|
23 |
-
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* Product list template
|
30 |
-
*
|
31 |
-
* @see Mage_Catalog_Block_Product_List
|
32 |
-
*/
|
33 |
-
/* @var $this Mage_Catalog_Block_Product_List */
|
34 |
-
?>
|
35 |
-
<?php
|
36 |
-
$_productCollection=$this->getLoadedProductCollection();
|
37 |
-
$_helper = $this->helper('catalog/output');
|
38 |
-
?>
|
39 |
-
<?php if(!$_productCollection->count()): ?>
|
40 |
-
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
41 |
-
<?php else: ?>
|
42 |
-
<div class="category-products">
|
43 |
-
<?php echo $this->getToolbarHtml() ?>
|
44 |
-
<?php // List mode ?>
|
45 |
-
<?php if($this->getMode()!='grid'): ?>
|
46 |
-
<?php $_iterator = 0; ?>
|
47 |
-
<ol class="products-list" id="products-list">
|
48 |
-
<?php foreach ($_productCollection as $_product): ?>
|
49 |
-
<li class="item<?php if( ++$_iterator == sizeof($_productCollection) ): ?> last<?php endif; ?>">
|
50 |
-
<?php // Product Image ?>
|
51 |
-
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
52 |
-
|
53 |
-
<?php /* Based on the native RWD styling, product images are displayed at a max of ~400px wide when viewed on a
|
54 |
-
one column page layout with four product columns from a 1280px viewport. For bandwidth reasons,
|
55 |
-
we are going to serve a 300px image, as it will look fine at 400px and most of the times, the image
|
56 |
-
will be displayed at a smaller size (eg, if two column are being used or viewport is smaller than 1280px).
|
57 |
-
This $_imgSize value could even be decreased further, based on the page layout
|
58 |
-
(one column, two column, three column) and number of product columns. */ ?>
|
59 |
-
<?php
|
60 |
-
$sb=0;
|
61 |
-
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
62 |
-
if(count($imagesCount) >1 ):
|
63 |
-
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
64 |
-
if($_images)
|
65 |
-
{
|
66 |
-
$sb=1;
|
67 |
-
$_imgSize = 300;
|
68 |
-
?>
|
69 |
-
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
70 |
-
<?php }
|
71 |
-
endif;?>
|
72 |
-
<?php $_imgSize = 300; ?>
|
73 |
-
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
74 |
-
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->keepFrame(false)->resize($_imgSize); ?>"
|
75 |
-
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="<?php if($sb==1)echo "sbview";?>"/>
|
76 |
-
</a>
|
77 |
-
<?php // Product description ?>
|
78 |
-
<div class="product-shop">
|
79 |
-
<div class="f-fix">
|
80 |
-
<div class="product-primary">
|
81 |
-
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
82 |
-
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
|
83 |
-
<?php if($_product->getRatingSummary()): ?>
|
84 |
-
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
85 |
-
<?php endif; ?>
|
86 |
-
|
87 |
-
<?php
|
88 |
-
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
89 |
-
foreach($_nameAfterChildren as $_nameAfterChildName):
|
90 |
-
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
91 |
-
$_nameAfterChild->setProduct($_product);
|
92 |
-
?>
|
93 |
-
<?php echo $_nameAfterChild->toHtml(); ?>
|
94 |
-
<?php endforeach; ?>
|
95 |
-
</div>
|
96 |
-
<div class="product-secondary">
|
97 |
-
<?php echo $this->getPriceHtml($_product, true) ?>
|
98 |
-
</div>
|
99 |
-
<div class="product-secondary">
|
100 |
-
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
101 |
-
<p class="action"><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
102 |
-
<?php elseif($_product->isSaleable()): ?>
|
103 |
-
<p class="action"><a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a></p>
|
104 |
-
<?php else: ?>
|
105 |
-
<p class="action availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
106 |
-
<?php endif; ?>
|
107 |
-
<ul class="add-to-links">
|
108 |
-
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
109 |
-
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
110 |
-
<?php endif; ?>
|
111 |
-
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
112 |
-
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
113 |
-
<?php endif; ?>
|
114 |
-
</ul>
|
115 |
-
</div>
|
116 |
-
<div class="desc std">
|
117 |
-
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
118 |
-
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
119 |
-
</div>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
</li>
|
123 |
-
<?php endforeach; ?>
|
124 |
-
</ol>
|
125 |
-
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
126 |
-
|
127 |
-
<?php else: ?>
|
128 |
-
|
129 |
-
<?php // Grid Mode ?>
|
130 |
-
|
131 |
-
<?php $_collectionSize = $_productCollection->count() ?>
|
132 |
-
<?php $_columnCount = $this->getColumnCount(); ?>
|
133 |
-
<ul class="products-grid products-grid--max-<?php echo $_columnCount; ?>-col">
|
134 |
-
<?php $i=0; foreach ($_productCollection as $_product): ?>
|
135 |
-
<?php /*if ($i++%$_columnCount==0): ?>
|
136 |
-
<?php endif*/ ?>
|
137 |
-
<li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
|
138 |
-
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
139 |
-
<?php
|
140 |
-
$sb=0;
|
141 |
-
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
142 |
-
if(count($imagesCount) >1 ):
|
143 |
-
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
144 |
-
if($_images)
|
145 |
-
{
|
146 |
-
$sb=1;
|
147 |
-
$_imgSize = 210;
|
148 |
-
?>
|
149 |
-
<img class="sbmoreview" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
150 |
-
<?php }
|
151 |
-
endif;?>
|
152 |
-
|
153 |
-
<?php $_imgSize = 210; ?>
|
154 |
-
<img id="product-collection-image-<?php echo $_product->getId(); ?>"
|
155 |
-
src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize($_imgSize); ?>"
|
156 |
-
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="<?php if($sb==1)echo "sbview";?>"/>
|
157 |
-
</a>
|
158 |
-
<div class="product-info">
|
159 |
-
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
160 |
-
|
161 |
-
<?php
|
162 |
-
$_nameAfterChildren = $this->getChild('name.after')->getSortedChildren();
|
163 |
-
foreach($_nameAfterChildren as $_nameAfterChildName):
|
164 |
-
$_nameAfterChild = $this->getChild('name.after')->getChild($_nameAfterChildName);
|
165 |
-
$_nameAfterChild->setProduct($_product);
|
166 |
-
?>
|
167 |
-
<?php echo $_nameAfterChild->toHtml(); ?>
|
168 |
-
<?php endforeach; ?>
|
169 |
-
|
170 |
-
<?php echo $this->getPriceHtml($_product, true) ?>
|
171 |
-
<?php if($_product->getRatingSummary()): ?>
|
172 |
-
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
173 |
-
<?php endif; ?>
|
174 |
-
<div class="actions">
|
175 |
-
<?php if($_product->isSaleable() && !$_product->canConfigure()): ?>
|
176 |
-
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
177 |
-
<?php elseif($_product->isSaleable()): ?>
|
178 |
-
<a title="<?php echo $this->__('View Details') ?>" class="button" href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->__('View Details') ?></a>
|
179 |
-
<?php else: ?>
|
180 |
-
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
181 |
-
<?php endif; ?>
|
182 |
-
<ul class="add-to-links">
|
183 |
-
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
184 |
-
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
185 |
-
<?php endif; ?>
|
186 |
-
<?php if($_compareUrl=$this->getAddToCompareUrl($_product)): ?>
|
187 |
-
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
188 |
-
<?php endif; ?>
|
189 |
-
</ul>
|
190 |
-
</div>
|
191 |
-
</div>
|
192 |
-
</li>
|
193 |
-
<?php /*if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
|
194 |
-
<?php endif*/ ?>
|
195 |
-
<?php endforeach ?>
|
196 |
-
</ul>
|
197 |
-
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
198 |
-
<?php endif; ?>
|
199 |
-
|
200 |
-
<div class="toolbar-bottom">
|
201 |
-
<?php echo $this->getToolbarHtml() ?>
|
202 |
-
</div>
|
203 |
-
</div>
|
204 |
-
<?php endif; ?>
|
205 |
-
|
206 |
-
<?php
|
207 |
-
//set product collection on after blocks
|
208 |
-
$_afterChildren = $this->getChild('after')->getSortedChildren();
|
209 |
-
foreach($_afterChildren as $_afterChildName):
|
210 |
-
$_afterChild = $this->getChild('after')->getChild($_afterChildName);
|
211 |
-
$_afterChild->setProductCollection($_productCollection);
|
212 |
-
?>
|
213 |
-
<?php echo $_afterChild->toHtml(); ?>
|
214 |
-
<?php endforeach; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/rwd/default/template/moreview/moreview.phtml
CHANGED
@@ -1,74 +1,34 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
*
|
5 |
-
*
|
6 |
-
* @
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
$
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
echo 'title: '.$object['title'].'<br/>';
|
36 |
-
echo 'content: '.$object['content'].'<br/>';
|
37 |
-
echo 'status: '.$object['status'].'<br/>';
|
38 |
-
*/
|
39 |
-
|
40 |
-
|
41 |
-
/*
|
42 |
-
This shows how to load multiple rows in a collection and save a change to them.
|
43 |
-
1) The setPageSize function will load only 5 records per page and you can set the current Page with the setCurPage function.
|
44 |
-
2) The $collection->walk('save') allows you to save everything in the collection after all changes have been made.
|
45 |
-
*/
|
46 |
-
/*
|
47 |
-
$i = 0;
|
48 |
-
|
49 |
-
$collection = Mage::getModel('moreview/moreview')->getCollection();
|
50 |
-
$collection->setPageSize(5);
|
51 |
-
$collection->setCurPage(2);
|
52 |
-
$size = $collection->getSize();
|
53 |
-
$cnt = count($collection);
|
54 |
-
foreach ($collection as $item) {
|
55 |
-
$i = $i+1;
|
56 |
-
$item->setTitle($i);
|
57 |
-
echo $item->getTitle();
|
58 |
-
}
|
59 |
-
|
60 |
-
$collection->walk('save');
|
61 |
-
*/
|
62 |
-
|
63 |
-
/*
|
64 |
-
This shows how to load a single record and save a change.
|
65 |
-
1) Note the setTitle, this corresponds to the table field name, title, and then you pass it the text to change.
|
66 |
-
2) Call the save() function only on a single record.
|
67 |
-
*/
|
68 |
-
/*
|
69 |
-
$object = Mage::getModel('moreview/moreview')->load(1);
|
70 |
-
$object->setTitle('This is a changed title');
|
71 |
-
$object->save();
|
72 |
-
*/
|
73 |
-
|
74 |
-
?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
8 |
+
?>
|
9 |
+
<?php
|
10 |
+
$_helper = $this->helper('catalog/output');
|
11 |
+
$_product=$this->getProduct();
|
12 |
+
$imagesCount = Mage::getModel('catalog/product')->load($_product->getId())->getMediaGalleryImages();
|
13 |
+
if(count($imagesCount) >1 ):
|
14 |
+
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
15 |
+
if($_images):
|
16 |
+
$isResize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview');
|
17 |
+
if($isResize):
|
18 |
+
$_imgSize=Mage::getStoreConfig('moreview_section/general_group/resize_moreview_width');
|
19 |
+
else:
|
20 |
+
$_imgSize = 210;
|
21 |
+
endif;
|
22 |
+
$moreviewhtmlid='sbmoreviewinnerhtml-'.$_product->getId();
|
23 |
+
?>
|
24 |
+
<p id="<?php echo $moreviewhtmlid ?>">
|
25 |
+
<img class="sbmoreview" id="sbmoreview-<?php echo $_product->getId() ?>" src="<?php echo $this->helper('catalog/image')->init($_product, 'thumbnail', $_images->getFile())->resize($_imgSize); ?>" alt="<?php echo $this->htmlEscape($_images->getLabel());?>" title="<?php $this->htmlEscape($_images->getLabel());?>"/>
|
26 |
+
</p>
|
27 |
+
<script type="text/javascript">
|
28 |
+
var imgid="<?php echo "product-collection-image-".$_product->getId() ?>";
|
29 |
+
var data=$('<?Php echo $moreviewhtmlid ?>').innerHTML;
|
30 |
+
$(imgid).addClassName("sbview");
|
31 |
+
new Insertion.Before(imgid,data);
|
32 |
+
</script>
|
33 |
+
<?php endif;?>
|
34 |
+
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/rwd/default/template/moreview/related.phtml
CHANGED
@@ -1,28 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package rwd_default
|
23 |
-
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
?>
|
27 |
<?php if($this->getItems()->getSize()): ?>
|
28 |
<div class="block block-related">
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
?>
|
9 |
<?php if($this->getItems()->getSize()): ?>
|
10 |
<div class="block block-related">
|
app/design/frontend/rwd/default/template/moreview/upsell.phtml
CHANGED
@@ -1,28 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
5 |
-
*
|
6 |
-
*
|
7 |
-
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package rwd_default
|
23 |
-
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
?>
|
27 |
<?php if(count($this->getItemCollection()->getItems())): ?>
|
28 |
<?php $_columnCount = $this->getColumnCount(); ?>
|
@@ -40,9 +22,9 @@
|
|
40 |
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>" class="product-image">
|
41 |
<?php
|
42 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
|
|
43 |
if($config==1)
|
44 |
{
|
45 |
-
$sb=0;
|
46 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
47 |
if(count($imagesCount) >1 ):
|
48 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Setubridge Technolabs
|
4 |
+
* http://www.setubridge.com/
|
5 |
+
* @author SetuBridge
|
6 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
+
**/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
?>
|
9 |
<?php if(count($this->getItemCollection()->getItems())): ?>
|
10 |
<?php $_columnCount = $this->getColumnCount(); ?>
|
22 |
<a href="<?php echo $_link->getProductUrl() ?>" title="<?php echo $this->escapeHtml($_link->getName()) ?>" class="product-image">
|
23 |
<?php
|
24 |
$config = Mage::getStoreConfig('moreview_section/general_group/module_moreview');
|
25 |
+
$sb=0;
|
26 |
if($config==1)
|
27 |
{
|
|
|
28 |
$imagesCount = Mage::getModel('catalog/product')->load($_link->getId())->getMediaGalleryImages();
|
29 |
if(count($imagesCount) >1 ):
|
30 |
$_images = $imagesCount->getItemByColumnValue('label', 'back');
|
app/etc/modules/Sbridge_Moreview.xml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author ModuleCreator
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
+
<config>
|
11 |
+
<modules>
|
12 |
+
<Sbridge_Moreview>
|
13 |
+
<active>true</active>
|
14 |
+
<codePool>local</codePool>
|
15 |
+
</Sbridge_Moreview>
|
16 |
+
</modules>
|
17 |
+
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Product_Back_Image_On_Hover</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
@@ -21,12 +21,13 @@ Enable back hover image functionality for related,upsell & cross sell produc
|
|
21 |
Follow Extension Development guideline
|
22 |
No Additional changes required for extension to work
|
23 |
Direct filter in Moreviews to load back button image rather than ugly looping concept</description>
|
24 |
-
<notes><li>
|
25 |
-
<li>
|
|
|
26 |
<authors><author><name>SetuBridge Technolabs</name><user>SetuBridge</user><email>support@setubridge.com</email></author></authors>
|
27 |
-
<date>2015-04
|
28 |
-
<time>
|
29 |
-
<contents><target name="magelocal"><dir name="Sbridge"><dir name="Moreview"><dir name="Helper"><file name="Data.php" hash="
|
30 |
<compatible/>
|
31 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
32 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Product_Back_Image_On_Hover</name>
|
4 |
+
<version>1.0.5</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
21 |
Follow Extension Development guideline
|
22 |
No Additional changes required for extension to work
|
23 |
Direct filter in Moreviews to load back button image rather than ugly looping concept</description>
|
24 |
+
<notes><li> Removed override list file and insert block automatically in magento 1.9 </li>
|
25 |
+
<li> We have added an functionality of resizing a product image in listing page. </li>
|
26 |
+
<li> Bug Fixes </li></notes>
|
27 |
<authors><author><name>SetuBridge Technolabs</name><user>SetuBridge</user><email>support@setubridge.com</email></author></authors>
|
28 |
+
<date>2015-07-04</date>
|
29 |
+
<time>06:55:35</time>
|
30 |
+
<contents><target name="magelocal"><dir name="Sbridge"><dir name="Moreview"><dir name="Block"><file name="Moreview.php" hash="af5382316ab9a6358f6d2395c36d1e39"/><dir name="Source"><file name="Overrideoption.php" hash="2a7993492ce09159fd8de30e67deb7e6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a23445d0a32ede59c4d91c4ea5ee0fb5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MoreviewController.php" hash="b9e2b5247e1799335303766daffa301f"/></dir><file name="IndexController.php" hash="5835586d88f374c50b72021aa44887cf"/></dir><dir name="etc"><file name="config.xml" hash="4d4a2282687f2caf52659793870ea9b5"/><file name="system.xml" hash="8d312f36b5bcdcac1d35a0edc75524e5"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sbridge_Moreview.xml" hash="7a70ff4f71a279ab47f34b46de09ec16"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="moreview.xml" hash="1e81c54dc590a17f70063a4529383a98"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="moreview.xml" hash="0e16bb84cef2e217d88f98a5788784be"/></dir><dir name="template"><dir name="moreview"><file name="backimage.phtml" hash="3114014ed48424ddeff9fd1b29c05774"/><file name="crosssell.phtml" hash="5ef081f3cc759f9d65c3251a33f72fb4"/><file name="list.phtml" hash="6b805895c0cb22a7707b4d334aed96db"/><file name="moreview.phtml" hash="d103562ee7416efaef16457748be9396"/><file name="related.phtml" hash="fae788b994253bfd3e3ebd3c0a57efe7"/><file name="upsell.phtml" hash="1082de6bce145e28c95b04f10ff1c4f7"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="moreview.xml" hash="4e588e22f0176e1f1fe4e2a06b09fb1f"/></dir><dir name="template"><dir name="moreview"><file name="backimage.phtml" hash="6f919ee8d292f3a93e307a53d02608cf"/><file name="crosssell.phtml" hash="5ef081f3cc759f9d65c3251a33f72fb4"/><file name="list.phtml" hash="94b27741358aa12104a2ab28aab09a5f"/><file name="moreview.phtml" hash="d103562ee7416efaef16457748be9396"/><file name="related.phtml" hash="fae788b994253bfd3e3ebd3c0a57efe7"/><file name="upsell.phtml" hash="1082de6bce145e28c95b04f10ff1c4f7"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="moreview.xml" hash="4e588e22f0176e1f1fe4e2a06b09fb1f"/></dir><dir name="template"><dir name="moreview"><file name="crosssell.phtml" hash="c5463a320cef18a4664231c273565e87"/><file name="moreview.phtml" hash="34dbece035a23d5e3608dd59a6f5d49f"/><file name="related.phtml" hash="3890b10a1e56a901f1b1951186299d58"/><file name="upsell.phtml" hash="c22ab62728e3c7623aeac92e788e2a23"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="moreview.css" hash="d485028888f153e0863acf3e6cd9c6e4"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="css"><file name="moreview.css" hash="d485028888f153e0863acf3e6cd9c6e4"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="css"><file name="moreview.css" hash="f72eaec03d20df17ad81251758198de8"/></dir></dir></dir></dir></target></contents>
|
31 |
<compatible/>
|
32 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
33 |
</package>
|
product_back_image_on_hover_1.0.4.pdf
DELETED
Binary file
|
setubridge-licence.txt
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
============================================================
|
2 |
-
Software License Information
|
3 |
-
============================================================
|
4 |
-
SETUBRIDGE.COM
|
5 |
-
|
6 |
-
============================================================
|
7 |
-
License Agreements
|
8 |
-
============================================================
|
9 |
-
|
10 |
-
SETUBRIDGE
|
11 |
-
http://www.setubridge.com
|
12 |
-
|
13 |
-
|
14 |
-
This License is entered by setubridge to govern the usage or redistribution of
|
15 |
-
setubridge software/PluginTool. This is a legal agreement between you (either an individual
|
16 |
-
or a single entity) and SetuBridge for SetuBridge software product(s) which may
|
17 |
-
include extensions, templates and services.
|
18 |
-
|
19 |
-
By purchasing the Software you acknowledge that you have read this Agreement, and that you agree to
|
20 |
-
the content of the Agreement and its terms, and agree to use the Software in compliance with this Agreement.
|
21 |
-
|
22 |
-
The Agreement becomes effective at the moment when you acquire software from
|
23 |
-
our site or receive it through email or on data medium or by any other means.
|
24 |
-
setubridge.com reserves the right to make reasonable changes to the terms of this
|
25 |
-
license agreement and impose its clauses at any given time.
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
1. We are the copyright holder of the Software. The Software or a portion of it is a copyrightable
|
30 |
-
matter and is liable to protection by the law. Any activity that infringes terms of this Agreement
|
31 |
-
violates copyright law and will be prosecuted according to the current law. We reserve the right
|
32 |
-
to revoke the license of any user who is holding an invalid license.
|
33 |
-
|
34 |
-
2. This Agreement gives you the right to use only one copy of the Software on one Magento installation
|
35 |
-
solely for your own personal or business use, subject to all other terms of this Agreement. A separate
|
36 |
-
License should be purchased for each Magento installation. Any distribution of the Software without
|
37 |
-
our consent, including noncommercial distribution is regarded as violation of this Agreement and entails
|
38 |
-
liability, according to the current law.
|
39 |
-
|
40 |
-
3. You may not use any part of the code in whole or part in any other software or product or website.
|
41 |
-
|
42 |
-
4. You may not give, sell, distribute, sub-license, rent, lease or lend any portion of the Software or
|
43 |
-
Documentation to anyone. You may not place the Software on a server so that it is accessible via a
|
44 |
-
public network such as the Internet for distribution purposes.
|
45 |
-
|
46 |
-
5. You are bound to preserve the copyright information intact, this includes the text/link at bottom.
|
47 |
-
|
48 |
-
6. We will not be liable to you for any damages (including any loss of profits/saving, or incidental
|
49 |
-
or consequential) caused to you, your information and your business arising out of the use or
|
50 |
-
inability to use this Software.
|
51 |
-
|
52 |
-
7. We are not liable for prosecution arising from use of the Software against law or for any illegal use.
|
53 |
-
|
54 |
-
8. If you fail to use the Software in accordance with the terms and conditions of this License Agreement,
|
55 |
-
it constitutes a breach of the agreement, and your license to use the Software is revoked.
|
56 |
-
|
57 |
-
13. License agreement remains effective until terminated. We retain the right to terminate your license to
|
58 |
-
use the Software at any time, if in its sole discretion, you are not abiding by the terms of the Agreement,
|
59 |
-
including, but not limited to, obscuring or removing any link or copyright notice as specified in this agreement.
|
60 |
-
You may terminate it at any time by destroying all copies of the Software. Termination of this Agreement
|
61 |
-
does not bind us to return you the amount spent for purchase of the Software, if more than fourteen days
|
62 |
-
have passed since the purchase date.
|
63 |
-
|
64 |
-
14. If you continue to use the Software after setubridge.com gives you notice of termination of your license,
|
65 |
-
you hereby agree to accept an injunction to enjoin you from its further use and to pay all costs (including
|
66 |
-
but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages
|
67 |
-
suffered by us because of your misuse of the Software.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/frontend/base/default/css/moreview.css
CHANGED
@@ -21,4 +21,8 @@
|
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
|
|
|
|
|
|
|
|
24 |
}
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
24 |
+
transition: all 1s ease;
|
25 |
+
-webkit-transition:all 1s ease;
|
26 |
+
-moz-transition:all 1s ease;
|
27 |
+
-o-transition:all 1s ease;
|
28 |
}
|
skin/frontend/default/default/css/moreview.css
CHANGED
@@ -21,4 +21,8 @@
|
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
|
|
|
|
|
|
|
|
24 |
}
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
24 |
+
transition: all 1s ease;
|
25 |
+
-webkit-transition:all 1s ease;
|
26 |
+
-moz-transition:all 1s ease;
|
27 |
+
-o-transition:all 1s ease;
|
28 |
}
|
skin/frontend/rwd/default/css/moreview.css
CHANGED
@@ -21,4 +21,8 @@
|
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
24 |
-
|
|
|
|
|
|
|
|
21 |
.product-image:hover .sbview
|
22 |
{
|
23 |
opacity:0;
|
24 |
+
transition: all 1s ease;
|
25 |
+
-webkit-transition:all 1s ease;
|
26 |
+
-moz-transition:all 1s ease;
|
27 |
+
-o-transition:all 1s ease;
|
28 |
+
}
|