Version Notes
Second Preview release
Download this release
Release Info
Developer | iMedia inc. |
Extension | Imedia_Quickview |
Version | 1.0.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.0.1 to 1.0.0.2
- app/code/community/Imedia/Quickview/etc/config.xml +1 -1
- app/code/community/Imedia/Quickview/etc/system.xml +13 -4
- app/design/frontend/base/default/layout/imedia/quickview.xml +9 -15
- app/design/frontend/base/default/template/imedia/quickview/catalog/product/list.phtml +40 -40
- app/design/frontend/base/default/template/imedia/quickview/view.phtml +1 -4
- package.xml +5 -5
- skin/frontend/base/default/css/imedia/quickview.css +3 -3
app/code/community/Imedia/Quickview/etc/config.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Imedia_Quickview>
|
4 |
-
<version>0.
|
5 |
</Imedia_Quickview>
|
6 |
</modules>
|
7 |
<frontend>
|
1 |
<config>
|
2 |
<modules>
|
3 |
<Imedia_Quickview>
|
4 |
+
<version>0.2.0</version>
|
5 |
</Imedia_Quickview>
|
6 |
</modules>
|
7 |
<frontend>
|
app/code/community/Imedia/Quickview/etc/system.xml
CHANGED
@@ -8,8 +8,8 @@
|
|
8 |
|
9 |
<tabs>
|
10 |
<imedia translate="label" module="quickview">
|
11 |
-
<label>
|
12 |
-
<sort_order>
|
13 |
</imedia>
|
14 |
</tabs>
|
15 |
|
@@ -33,14 +33,23 @@
|
|
33 |
<show_in_website>1</show_in_website>
|
34 |
<show_in_store>1</show_in_store>
|
35 |
<fields>
|
36 |
-
<
|
37 |
-
<label>Enable
|
38 |
<frontend_type>select</frontend_type>
|
39 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
<sort_order>1</sort_order>
|
41 |
<show_in_default>1</show_in_default>
|
42 |
<show_in_website>1</show_in_website>
|
43 |
<show_in_store>1</show_in_store>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
</enable_jquery>
|
45 |
</fields>
|
46 |
</quickview>
|
8 |
|
9 |
<tabs>
|
10 |
<imedia translate="label" module="quickview">
|
11 |
+
<label>iMedia Extensions</label>
|
12 |
+
<sort_order>20</sort_order>
|
13 |
</imedia>
|
14 |
</tabs>
|
15 |
|
33 |
<show_in_website>1</show_in_website>
|
34 |
<show_in_store>1</show_in_store>
|
35 |
<fields>
|
36 |
+
<enable translate="label">
|
37 |
+
<label>Enable Quickview Extension</label>
|
38 |
<frontend_type>select</frontend_type>
|
39 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
<sort_order>1</sort_order>
|
41 |
<show_in_default>1</show_in_default>
|
42 |
<show_in_website>1</show_in_website>
|
43 |
<show_in_store>1</show_in_store>
|
44 |
+
</enable>
|
45 |
+
<enable_jquery translate="label">
|
46 |
+
<label>Enable jQuery</label>
|
47 |
+
<frontend_type>select</frontend_type>
|
48 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
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 |
</enable_jquery>
|
54 |
</fields>
|
55 |
</quickview>
|
app/design/frontend/base/default/layout/imedia/quickview.xml
CHANGED
@@ -1,29 +1,23 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="0.
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss"><stylesheet>css/imedia/quickview.css</stylesheet></action>
|
6 |
</reference>
|
7 |
</default>
|
8 |
<catalog_category_default translate="label">
|
9 |
-
<reference name="
|
10 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
<template>imedia/quickview/catalog/product/list.phtml</template>
|
14 |
-
</action>
|
15 |
-
</block>
|
16 |
</reference>
|
17 |
</catalog_category_default>
|
18 |
<!-- if category is anchor yes -->
|
19 |
<catalog_category_layered translate="label">
|
20 |
-
<reference name="
|
21 |
-
<
|
22 |
-
|
23 |
-
|
24 |
-
<template>imedia/quickview/catalog/product/list.phtml</template>
|
25 |
-
</action>
|
26 |
-
</block>
|
27 |
</reference>
|
28 |
</catalog_category_layered>
|
29 |
<!-- if category is anchor yes -->
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="0.2.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
5 |
<action method="addCss"><stylesheet>css/imedia/quickview.css</stylesheet></action>
|
6 |
</reference>
|
7 |
</default>
|
8 |
<catalog_category_default translate="label">
|
9 |
+
<reference name="product_list">
|
10 |
+
<action method="setTemplate" ifconfig="quickview/quickview/enable">
|
11 |
+
<template>imedia/quickview/catalog/product/list.phtml</template>
|
12 |
+
</action>
|
|
|
|
|
|
|
13 |
</reference>
|
14 |
</catalog_category_default>
|
15 |
<!-- if category is anchor yes -->
|
16 |
<catalog_category_layered translate="label">
|
17 |
+
<reference name="product_list">
|
18 |
+
<action method="setTemplate" ifconfig="quickview/quickview/enable">
|
19 |
+
<template>imedia/quickview/catalog/product/list.phtml</template>
|
20 |
+
</action>
|
|
|
|
|
|
|
21 |
</reference>
|
22 |
</catalog_category_layered>
|
23 |
<!-- if category is anchor yes -->
|
app/design/frontend/base/default/template/imedia/quickview/catalog/product/list.phtml
CHANGED
@@ -35,46 +35,6 @@
|
|
35 |
$_productCollection=$this->getLoadedProductCollection();
|
36 |
$_helper = $this->helper('catalog/output');
|
37 |
?>
|
38 |
-
<?php $enablejQuery = Mage::getStoreConfig('quickview/quickview/enable_jquery'); ?>
|
39 |
-
<?php if($enablejQuery == 1): ?>
|
40 |
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
41 |
-
<?php endif; ?>
|
42 |
-
<script type="text/javascript">
|
43 |
-
jQuery(document).ready(function($){
|
44 |
-
var baseUrl = '<?php echo Mage::getBaseUrl(); ?>';
|
45 |
-
var containerClass = 'category-products';
|
46 |
-
$('.'+containerClass+' li').each(function(e){
|
47 |
-
var productId = $(this).find('.quick_view_btn').attr('id');
|
48 |
-
$(this).find('.quick_view_btn').click(function(){
|
49 |
-
$(this).html('Loading..');
|
50 |
-
$.ajax({
|
51 |
-
type: "POST",
|
52 |
-
url: baseUrl+"quickview",
|
53 |
-
data: "id="+productId,
|
54 |
-
success: function(msg){
|
55 |
-
$("html, body").animate({ scrollTop: 0 }, "slow");
|
56 |
-
$('.'+containerClass+' li .quick_view_btn').html('Quickview');
|
57 |
-
$('#modal .main-content').empty().append(msg);
|
58 |
-
$('#modal').css({'top':'50%','visibility':'visible','opacity':'1'});
|
59 |
-
// popup submit validation
|
60 |
-
$('#modal .main-content form').submit(function(e){
|
61 |
-
var valSelect = $('.validate-quickview-select').val();
|
62 |
-
if(valSelect == ''){
|
63 |
-
alert('please select option values');
|
64 |
-
return false;
|
65 |
-
}else{
|
66 |
-
return true;
|
67 |
-
}
|
68 |
-
});
|
69 |
-
}
|
70 |
-
});
|
71 |
-
});
|
72 |
-
});
|
73 |
-
$('.btn_close').click(function(){
|
74 |
-
$('#modal').css({'top':'-50%','visibility':'hidden','opacity':'0'});
|
75 |
-
});
|
76 |
-
});
|
77 |
-
</script>
|
78 |
<?php if(!$_productCollection->count()): ?>
|
79 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
80 |
<?php else: ?>
|
@@ -174,3 +134,43 @@ jQuery(document).ready(function($){
|
|
174 |
</div>
|
175 |
</div>
|
176 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
$_productCollection=$this->getLoadedProductCollection();
|
36 |
$_helper = $this->helper('catalog/output');
|
37 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<?php if(!$_productCollection->count()): ?>
|
39 |
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
40 |
<?php else: ?>
|
134 |
</div>
|
135 |
</div>
|
136 |
<?php endif; ?>
|
137 |
+
<?php $enablejQuery = Mage::getStoreConfig('quickview/quickview/enable_jquery'); ?>
|
138 |
+
<?php if($enablejQuery == 1): ?>
|
139 |
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
|
140 |
+
<?php endif; ?>
|
141 |
+
<script type="text/javascript">
|
142 |
+
jQuery(document).ready(function($){
|
143 |
+
var baseUrl = '<?php echo Mage::getBaseUrl(); ?>';
|
144 |
+
var containerClass = 'category-products';
|
145 |
+
$('.'+containerClass+' li').each(function(e){
|
146 |
+
var productId = $(this).find('.quick_view_btn').attr('id');
|
147 |
+
$(this).find('.quick_view_btn').click(function(){
|
148 |
+
$(this).html('Loading..');
|
149 |
+
$.ajax({
|
150 |
+
type: "POST",
|
151 |
+
url: baseUrl+"quickview",
|
152 |
+
data: "id="+productId,
|
153 |
+
success: function(msg){
|
154 |
+
//$("html, body").animate({ scrollTop: 0 }, "slow");
|
155 |
+
$('.'+containerClass+' li .quick_view_btn').html('Quickview');
|
156 |
+
$('#modal .main-content').empty().append(msg);
|
157 |
+
$('#modal').css({'top':'50%','visibility':'visible','opacity':'1'});
|
158 |
+
// popup submit validation
|
159 |
+
$('#modal .main-content form').submit(function(e){
|
160 |
+
var valSelect = $('.validate-quickview-select').val();
|
161 |
+
if(valSelect == ''){
|
162 |
+
alert('please select option values');
|
163 |
+
return false;
|
164 |
+
}else{
|
165 |
+
return true;
|
166 |
+
}
|
167 |
+
});
|
168 |
+
}
|
169 |
+
});
|
170 |
+
});
|
171 |
+
});
|
172 |
+
$('.btn_close').click(function(){
|
173 |
+
$('#modal').css({'top':'-50%','visibility':'hidden','opacity':'0'});
|
174 |
+
});
|
175 |
+
});
|
176 |
+
</script>
|
app/design/frontend/base/default/template/imedia/quickview/view.phtml
CHANGED
@@ -3,10 +3,7 @@
|
|
3 |
$_product = Mage::getModel('catalog/product')->load($productid);
|
4 |
?>
|
5 |
<div class="product-popup-left">
|
6 |
-
<
|
7 |
-
<p class="product-image">
|
8 |
-
<img title="<?php echo $_product->getName() ?>" alt="<?php echo $_product->getName() ?>" src="<?php echo $_product->getImageUrl() ?>"></p>
|
9 |
-
</div>
|
10 |
</div>
|
11 |
<div class="product-popup-right">
|
12 |
<form action="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product); ?>" method="post" id="product_addtocart_form_popup" <?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
3 |
$_product = Mage::getModel('catalog/product')->load($productid);
|
4 |
?>
|
5 |
<div class="product-popup-left">
|
6 |
+
<img title="<?php echo $_product->getName() ?>" alt="<?php echo $_product->getName() ?>" src="<?php echo $_product->getImageUrl() ?>"></p>
|
|
|
|
|
|
|
7 |
</div>
|
8 |
<div class="product-popup-right">
|
9 |
<form action="<?php echo Mage::helper('checkout/cart')->getAddUrl($_product); ?>" method="post" id="product_addtocart_form_popup" <?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Imedia_Quickview</name>
|
4 |
-
<version>1.0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Product Quick View on category page</summary>
|
10 |
<description>Customer can quickly view and add to cart the product on category page.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>iMedia inc.</name><user>imedia</user><email>info@imediadesigns.org</email></author></authors>
|
13 |
-
<date>2015-07-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Imedia_Quickview.xml" hash="d63d93c317e98733d1377951558bfbef"/></dir></target><target name="magecommunity"><dir name="Imedia"><dir name="Quickview"><dir name="Helper"><file name="Data.php" hash="2ea129e9fe1d6b3d6f9ab32df180119b"/></dir><dir name="controllers"><file name="IndexController.php" hash="edc7320414b335fd049ce6e770cf223f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="32175e30db398f39ec3d4863cbc67dd1"/><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Imedia_Quickview</name>
|
4 |
+
<version>1.0.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSLv3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Product Quick View on category page</summary>
|
10 |
<description>Customer can quickly view and add to cart the product on category page.</description>
|
11 |
+
<notes>Second Preview release</notes>
|
12 |
<authors><author><name>iMedia inc.</name><user>imedia</user><email>info@imediadesigns.org</email></author></authors>
|
13 |
+
<date>2015-07-10</date>
|
14 |
+
<time>08:53:01</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Imedia_Quickview.xml" hash="d63d93c317e98733d1377951558bfbef"/></dir></target><target name="magecommunity"><dir name="Imedia"><dir name="Quickview"><dir name="Helper"><file name="Data.php" hash="2ea129e9fe1d6b3d6f9ab32df180119b"/></dir><dir name="controllers"><file name="IndexController.php" hash="edc7320414b335fd049ce6e770cf223f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="32175e30db398f39ec3d4863cbc67dd1"/><file name="config.xml" hash="4e4b56c1ddeeb0503811e7011cb6497f"/><file name="system.xml" hash="07f860358056e6f25646f13db92128b6"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="imedia"><file name="quickview.xml" hash="ddf5ef04ec12834eea6a06827db1c054"/></dir></dir><dir name="template"><dir name="imedia"><dir name="quickview"><dir name="catalog"><dir name="product"><file name="list.phtml" hash="412e4c9b3ff6a1f07280964dcc56fa65"/></dir></dir><file name="view.phtml" hash="10823342e36435359abc32e684d3e965"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="imedia"><file name="quickview.css" hash="48ed64d1a04252cf39c3fe5774622964"/><dir name="images"><file name="pop-up-close.png" hash="c6187020c04f4b60ab74fd3bf40fabd4"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/base/default/css/imedia/quickview.css
CHANGED
@@ -4,12 +4,12 @@
|
|
4 |
visibility:hidden;
|
5 |
position:absolute;
|
6 |
opacity:0;
|
7 |
-
top:
|
8 |
-
left:
|
9 |
}
|
10 |
#modal .modal-content {
|
11 |
background: #f7f7f7;
|
12 |
-
position:
|
13 |
z-index:10000;
|
14 |
padding:15px;
|
15 |
border-radius:5px;
|
4 |
visibility:hidden;
|
5 |
position:absolute;
|
6 |
opacity:0;
|
7 |
+
top:0!important;
|
8 |
+
left:25%;
|
9 |
}
|
10 |
#modal .modal-content {
|
11 |
background: #f7f7f7;
|
12 |
+
position: fixed;
|
13 |
z-index:10000;
|
14 |
padding:15px;
|
15 |
border-radius:5px;
|