Version Notes
Release for download
Download this release
Release Info
Developer | Magento Core Team |
Extension | QAZ_Qsticker |
Version | 0.1.0 |
Comparing to | |
See all releases |
Version 0.1.0
- app/code/community/Qaz/All/Helper/Data.php +20 -0
- app/code/community/Qaz/All/etc/config.xml +39 -0
- app/code/community/Qaz/All/etc/system.xml +9 -0
- app/code/community/Qaz/Qsticker/Helper/Data.php +6 -0
- app/code/community/Qaz/Qsticker/Model/Sticker/Newstyle.php +15 -0
- app/code/community/Qaz/Qsticker/Model/Sticker/Qstickerconfigs.php +24 -0
- app/code/community/Qaz/Qsticker/Model/Sticker/Salestyle.php +18 -0
- app/code/community/Qaz/Qsticker/Model/Sticker/Saletextstyle.php +15 -0
- app/code/community/Qaz/Qsticker/etc/config.xml +89 -0
- app/code/community/Qaz/Qsticker/etc/system.xml +135 -0
- app/design/frontend/default/default/layout/qsticker.xml +32 -0
- app/etc/modules/Qaz_All.xml +10 -0
- app/etc/modules/Qaz_Qsticker.xml +18 -0
- package.xml +43 -0
- skin/frontend/default/default/qaz/qsticker/css/global.css +185 -0
- skin/frontend/default/default/qaz/qsticker/images/StickerA.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/StickerB.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_StickerA.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_StickerB.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_new-blue.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_new-white.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_new-yellow.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_sale-black.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_sale-blue.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_sale-lime.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/list_sale-white.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/new-blue.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/new-white.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/new-yellow.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/sale-black.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/sale-blue.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/sale-lime.png +0 -0
- skin/frontend/default/default/qaz/qsticker/images/sale-white.png +0 -0
app/code/community/Qaz/All/Helper/Data.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* http://www.extensionsmagento.com
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the EULA
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
|
12 |
+
*
|
13 |
+
* @category Qaz
|
14 |
+
* @package Qaz_All
|
15 |
+
* @copyright Copyright (c) 2011 Qazware http://www.extensionsmagento.com
|
16 |
+
*/
|
17 |
+
class Qaz_All_Helper_Data extends Mage_Core_Helper_Abstract {
|
18 |
+
|
19 |
+
}
|
20 |
+
|
app/code/community/Qaz/All/etc/config.xml
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Qaz_All>
|
5 |
+
<version>1.0.1</version>
|
6 |
+
</Qaz_All>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<helpers>
|
10 |
+
<all>
|
11 |
+
<class>Qaz_All_Helper</class>
|
12 |
+
</all>
|
13 |
+
</helpers>
|
14 |
+
</global>
|
15 |
+
<adminhtml>
|
16 |
+
<acl>
|
17 |
+
<resources>
|
18 |
+
<all>
|
19 |
+
<title>Allow Everything</title>
|
20 |
+
</all>
|
21 |
+
<admin>
|
22 |
+
<children>
|
23 |
+
<system>
|
24 |
+
<children>
|
25 |
+
<config>
|
26 |
+
<children>
|
27 |
+
<all>
|
28 |
+
<title>qazMagentoExtensions - All</title>
|
29 |
+
</all>
|
30 |
+
</children>
|
31 |
+
</config>
|
32 |
+
</children>
|
33 |
+
</system>
|
34 |
+
</children>
|
35 |
+
</admin>
|
36 |
+
</resources>
|
37 |
+
</acl>
|
38 |
+
</adminhtml>
|
39 |
+
</config>
|
app/code/community/Qaz/All/etc/system.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<qall translate="label" module="all">
|
5 |
+
<label>Qazware Extensions</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</qall>
|
8 |
+
</tabs>
|
9 |
+
</config>
|
app/code/community/Qaz/Qsticker/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Qaz_Qsticker_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/Qaz/Qsticker/Model/Sticker/Newstyle.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* return array options new-style
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
class Qaz_Qsticker_Model_Sticker_Newstyle {
|
7 |
+
public function toOptionArray() {
|
8 |
+
return array(
|
9 |
+
array('value' => 'newwhite', 'label' => Mage::helper('qsticker')->__('New - White')),
|
10 |
+
array('value' => 'newyellow', 'label' => Mage::helper('qsticker')->__('New - Yellow')),
|
11 |
+
array('value' => 'newblue', 'label' => Mage::helper('qsticker')->__('New - Blue')),
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
}
|
app/code/community/Qaz/Qsticker/Model/Sticker/Qstickerconfigs.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Qaz_Qsticker_Model_Sticker_Qstickerconfigs {
|
3 |
+
public function _construct() {
|
4 |
+
parent::_construct();
|
5 |
+
$this->_init('sticker/qstickerconfigs');
|
6 |
+
}
|
7 |
+
|
8 |
+
public function sticker(){
|
9 |
+
$configs = array();
|
10 |
+
$configs['general_home'] = Mage::getStoreConfig('qsticker/general/home');
|
11 |
+
$configs['general_prodetails'] = Mage::getStoreConfig('qsticker/general/prodetails');
|
12 |
+
$configs['general_prolist'] = Mage::getStoreConfig('qsticker/general/prolist');
|
13 |
+
$configs['newsticker_enable'] = Mage::getStoreConfig('qsticker/newsticker/enable');
|
14 |
+
$configs['newsticker_new_sticker_style'] = Mage::getStoreConfig('qsticker/newsticker/new_sticker_style');
|
15 |
+
$configs['salesticker_enable'] = Mage::getStoreConfig('qsticker/salesticker/enable');
|
16 |
+
$configs['salesticker_sale_sticker_style'] = Mage::getStoreConfig('qsticker/salesticker/sale_sticker_style');
|
17 |
+
$configs['salesticker_sale_text'] = Mage::getStoreConfig('qsticker/salesticker/sale_text');
|
18 |
+
$configs['salesticker_sale_text_style'] = Mage::getStoreConfig('qsticker/salesticker/sale_text_style');
|
19 |
+
return $configs;
|
20 |
+
}
|
21 |
+
|
22 |
+
|
23 |
+
}
|
24 |
+
|
app/code/community/Qaz/Qsticker/Model/Sticker/Salestyle.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* return array options sale-style
|
5 |
+
*
|
6 |
+
*/
|
7 |
+
class Qaz_Qsticker_Model_Sticker_Salestyle {
|
8 |
+
|
9 |
+
public function toOptionArray() {
|
10 |
+
return array(
|
11 |
+
array('value' => 'saleblue', 'label' => Mage::helper('qsticker')->__('Sale - Blue')),
|
12 |
+
array('value' => 'saleblack', 'label' => Mage::helper('qsticker')->__('Sale - Black')),
|
13 |
+
array('value' => 'salelime', 'label' => Mage::helper('qsticker')->__('Sale - Lime')),
|
14 |
+
array('value' => 'salewhite', 'label' => Mage::helper('qsticker')->__('Sale - White')),
|
15 |
+
);
|
16 |
+
}
|
17 |
+
|
18 |
+
}
|
app/code/community/Qaz/Qsticker/Model/Sticker/Saletextstyle.php
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* return array options sale-text-style
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
class Qaz_Qsticker_Model_Sticker_Saletextstyle {
|
7 |
+
public function toOptionArray() {
|
8 |
+
return array(
|
9 |
+
array('value' => 'textblack', 'label' => Mage::helper('qsticker')->__('Sale - Black')),
|
10 |
+
array('value' => 'textwhite', 'label' => Mage::helper('qsticker')->__('Sale - White')),
|
11 |
+
array('value' => 'textyellow', 'label' => Mage::helper('qsticker')->__('Sale - Yellow')),
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
}
|
app/code/community/Qaz/Qsticker/etc/config.xml
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Qaz_Qsticker>
|
5 |
+
<version>0.1.0</version>
|
6 |
+
</Qaz_Qsticker>
|
7 |
+
</modules>
|
8 |
+
<frontend>
|
9 |
+
<routers>
|
10 |
+
<qsticker>
|
11 |
+
<use>standard</use>
|
12 |
+
<args>
|
13 |
+
<module>Qaz_Qsticker</module>
|
14 |
+
<frontName>qsticker</frontName>
|
15 |
+
</args>
|
16 |
+
</qsticker>
|
17 |
+
</routers>
|
18 |
+
<layout>
|
19 |
+
<updates>
|
20 |
+
<qsticker>
|
21 |
+
<file>qsticker.xml</file>
|
22 |
+
</qsticker>
|
23 |
+
</updates>
|
24 |
+
</layout>
|
25 |
+
</frontend>
|
26 |
+
<adminhtml>
|
27 |
+
<acl>
|
28 |
+
<resources>
|
29 |
+
<admin>
|
30 |
+
<children>
|
31 |
+
<qsticker>
|
32 |
+
<title>Qaz Qsticker</title>
|
33 |
+
<sort_order>50</sort_order>
|
34 |
+
<children>
|
35 |
+
<item>
|
36 |
+
<title>Manage Qsticker</title>
|
37 |
+
<sort_order>0</sort_order>
|
38 |
+
</item>
|
39 |
+
</children>
|
40 |
+
</qsticker>
|
41 |
+
<system>
|
42 |
+
<children>
|
43 |
+
<config>
|
44 |
+
<children>
|
45 |
+
<qsticker>
|
46 |
+
<title>Qsticker Section</title>
|
47 |
+
</qsticker>
|
48 |
+
</children>
|
49 |
+
</config>
|
50 |
+
</children>
|
51 |
+
</system>
|
52 |
+
</children>
|
53 |
+
</admin>
|
54 |
+
</resources>
|
55 |
+
</acl>
|
56 |
+
</adminhtml>
|
57 |
+
<global>
|
58 |
+
|
59 |
+
<helpers>
|
60 |
+
<qsticker>
|
61 |
+
<class>Qaz_Qsticker_Helper</class>
|
62 |
+
</qsticker>
|
63 |
+
</helpers>
|
64 |
+
<models>
|
65 |
+
<qsticker>
|
66 |
+
<class>Qaz_Qsticker_Model</class>
|
67 |
+
</qsticker>
|
68 |
+
</models>
|
69 |
+
</global>
|
70 |
+
<default>
|
71 |
+
<qsticker>
|
72 |
+
<general>
|
73 |
+
<enable>1</enable>
|
74 |
+
<prolist>1</prolist>
|
75 |
+
<prodetails>1</prodetails>
|
76 |
+
</general>
|
77 |
+
<newsticker>
|
78 |
+
<enable>1</enable>
|
79 |
+
<new_sticker_style>newwhite</new_sticker_style>
|
80 |
+
</newsticker>
|
81 |
+
<salesticker>
|
82 |
+
<enable>1</enable>
|
83 |
+
<sale_sticker_style>salelime</sale_sticker_style>
|
84 |
+
<sale_text>Free Ship!!!</sale_text>
|
85 |
+
<sale_text_style>textblack</sale_text_style>
|
86 |
+
</salesticker>
|
87 |
+
</qsticker>
|
88 |
+
</default>
|
89 |
+
</config>
|
app/code/community/Qaz/Qsticker/etc/system.xml
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<qsticker translate="label" module="qsticker">
|
5 |
+
<label>Qaz Qsticker</label>
|
6 |
+
<tab>qall</tab>
|
7 |
+
<frontend_type>text</frontend_type>
|
8 |
+
<sort_order>100</sort_order>
|
9 |
+
<show_in_default>1</show_in_default>
|
10 |
+
<show_in_website>1</show_in_website>
|
11 |
+
<show_in_store>1</show_in_store>
|
12 |
+
<groups>
|
13 |
+
<general translate="label">
|
14 |
+
<label>General Configuration</label>
|
15 |
+
<frontend_type>text</frontend_type>
|
16 |
+
<sort_order>50</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<fields>
|
21 |
+
<enable>
|
22 |
+
<label>Enable Q - sticker</label>
|
23 |
+
<frontend_type>select</frontend_type>
|
24 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
25 |
+
<sort_order>1</sort_order>
|
26 |
+
<show_in_default>1</show_in_default>
|
27 |
+
<show_in_website>1</show_in_website>
|
28 |
+
<show_in_store>1</show_in_store>
|
29 |
+
<comment>Enable Q-sticker extension</comment>
|
30 |
+
</enable>
|
31 |
+
<prolist translate="label">
|
32 |
+
<label>Product List </label>
|
33 |
+
<frontend_type>select</frontend_type>
|
34 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
35 |
+
<sort_order>3</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>1</show_in_store>
|
39 |
+
<comment>Display the sticker on product list</comment>
|
40 |
+
</prolist>
|
41 |
+
<prodetails translate="label">
|
42 |
+
<label>Product Details</label>
|
43 |
+
<frontend_type>select</frontend_type>
|
44 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
+
<sort_order>4</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>1</show_in_store>
|
49 |
+
<comment>Display the sticker on product details</comment>
|
50 |
+
</prodetails>
|
51 |
+
</fields>
|
52 |
+
</general>
|
53 |
+
<newsticker translate="label">
|
54 |
+
<label>New Sticker Configurations</label>
|
55 |
+
<frontend_type>text</frontend_type>
|
56 |
+
<sort_order>51</sort_order>
|
57 |
+
<show_in_default>1</show_in_default>
|
58 |
+
<show_in_website>1</show_in_website>
|
59 |
+
<show_in_store>1</show_in_store>
|
60 |
+
<fields>
|
61 |
+
<enable translate="label">
|
62 |
+
<label>Enable New Sticker</label>
|
63 |
+
<frontend_type>select</frontend_type>
|
64 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
65 |
+
<sort_order>1</sort_order>
|
66 |
+
<show_in_default>1</show_in_default>
|
67 |
+
<show_in_website>1</show_in_website>
|
68 |
+
<show_in_store>1</show_in_store>
|
69 |
+
<comment>Enable New Sticker </comment>
|
70 |
+
</enable>
|
71 |
+
<new_sticker_style translate="label">
|
72 |
+
<label>New Sticker Style</label>
|
73 |
+
<frontend_type>select</frontend_type>
|
74 |
+
<source_model>qsticker/sticker_newstyle</source_model>
|
75 |
+
<sort_order>2</sort_order>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<show_in_website>1</show_in_website>
|
78 |
+
<show_in_store>1</show_in_store>
|
79 |
+
<comment>Choose your new sticker style</comment>
|
80 |
+
</new_sticker_style>
|
81 |
+
</fields>
|
82 |
+
</newsticker>
|
83 |
+
<salesticker translate="label">
|
84 |
+
<label>Sale Sticker Configurations</label>
|
85 |
+
<frontend_type>text</frontend_type>
|
86 |
+
<sort_order>52</sort_order>
|
87 |
+
<show_in_default>1</show_in_default>
|
88 |
+
<show_in_website>1</show_in_website>
|
89 |
+
<show_in_store>1</show_in_store>
|
90 |
+
<fields>
|
91 |
+
<enable translate="label">
|
92 |
+
<label>Enable Sale Sticker</label>
|
93 |
+
<frontend_type>select</frontend_type>
|
94 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
95 |
+
<sort_order>1</sort_order>
|
96 |
+
<show_in_default>1</show_in_default>
|
97 |
+
<show_in_website>1</show_in_website>
|
98 |
+
<show_in_store>1</show_in_store>
|
99 |
+
<comment>Enable Sale Sticker </comment>
|
100 |
+
</enable>
|
101 |
+
<sale_sticker_style translate="label">
|
102 |
+
<label>Sale Sticker Style</label>
|
103 |
+
<frontend_type>select</frontend_type>
|
104 |
+
<source_model>qsticker/sticker_salestyle</source_model>
|
105 |
+
<sort_order>2</sort_order>
|
106 |
+
<show_in_default>1</show_in_default>
|
107 |
+
<show_in_website>1</show_in_website>
|
108 |
+
<show_in_store>1</show_in_store>
|
109 |
+
<comment>Choose your sale sticker style</comment>
|
110 |
+
</sale_sticker_style>
|
111 |
+
<sale_text translate="label">
|
112 |
+
<label>Sale Sticker Text</label>
|
113 |
+
<frontend_type>text</frontend_type>
|
114 |
+
<sort_order>3</sort_order>
|
115 |
+
<show_in_default>1</show_in_default>
|
116 |
+
<show_in_website>1</show_in_website>
|
117 |
+
<show_in_store>1</show_in_store>
|
118 |
+
<comment>Input your sale sticker</comment>
|
119 |
+
</sale_text>
|
120 |
+
<sale_text_style translate="label">
|
121 |
+
<label>Sale Sticker Style</label>
|
122 |
+
<frontend_type>select</frontend_type>
|
123 |
+
<source_model>qsticker/sticker_saletextstyle</source_model>
|
124 |
+
<sort_order>4</sort_order>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
<comment>Choose your sale text sticker style</comment>
|
129 |
+
</sale_text_style>
|
130 |
+
</fields>
|
131 |
+
</salesticker>
|
132 |
+
</groups>
|
133 |
+
</qsticker>
|
134 |
+
</sections>
|
135 |
+
</config>
|
app/design/frontend/default/default/layout/qsticker.xml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="head">
|
5 |
+
<action method="addCss" ifconfig="qsticker/general/enable">
|
6 |
+
<stylesheet>qaz/qsticker/css/global.css</stylesheet>
|
7 |
+
</action>
|
8 |
+
</reference>
|
9 |
+
</default>
|
10 |
+
<catalog_product_view>
|
11 |
+
<reference name="product.info.media">
|
12 |
+
<action method="setTemplate" ifconfig="qsticker/general/enable">
|
13 |
+
<template>qaz/qsticker/catalog/product/view/media.phtml</template>
|
14 |
+
</action>
|
15 |
+
</reference>
|
16 |
+
</catalog_product_view>
|
17 |
+
<catalog_category_layered>
|
18 |
+
<reference name="product_list">
|
19 |
+
<action method="setTemplate" ifconfig="qsticker/general/enable">
|
20 |
+
<template>qaz/qsticker/catalog/product/list.phtml</template>
|
21 |
+
</action>
|
22 |
+
</reference>
|
23 |
+
</catalog_category_layered>
|
24 |
+
|
25 |
+
<catalog_category_default>
|
26 |
+
<reference name="product_list">
|
27 |
+
<action method="setTemplate" ifconfig="qsticker/general/enable">
|
28 |
+
<template>qaz/qsticker/catalog/product/list.phtml</template>
|
29 |
+
</action>
|
30 |
+
</reference>
|
31 |
+
</catalog_category_default>
|
32 |
+
</layout>
|
app/etc/modules/Qaz_All.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Qaz_All>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Qaz_All>
|
8 |
+
</modules>
|
9 |
+
</config>
|
10 |
+
<!--Qazware Magento Oscommerce All -->
|
app/etc/modules/Qaz_Qsticker.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Qaz
|
5 |
+
* @package Qaz_Qsticker
|
6 |
+
* @author Nguyen Khac Quang
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
* Description Add Sticker to Product view
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<modules>
|
13 |
+
<Qaz_Qsticker>
|
14 |
+
<active>true</active>
|
15 |
+
<codePool>community</codePool>
|
16 |
+
</Qaz_Qsticker>
|
17 |
+
</modules>
|
18 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>QAZ_Qsticker</name>
|
4 |
+
<version>0.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>http://www.magentocommerce.com/magento-connect/qazware-q-effect-with-product-listing-3419.html</summary>
|
10 |
+
<description><b>Features:</b>
|
11 |
+
<p>-Add new sticker to new product </p>
|
12 |
+
<p>-Add sale sticker to sale off product</p>
|
13 |
+
<p>-Admin can enable / disable this extension </p>
|
14 |
+
<p>-Admin can enable / disable all new stickers</p>
|
15 |
+
<p>-Admin can enable / disable all sale stickers</p>
|
16 |
+
<p>-Admin can select which places that the stickers
|
17 |
+
are displayed </p>
|
18 |
+
<p>-Admin can select type of sticker to display</p>
|
19 |
+
<p>-Admin can insert some text for sale sticker </p>
|
20 |
+
<p>
|
21 |
+
<b>Config:</b>
|
22 |
+

|
23 |
+
<p />1. After install this module if you logged in Magento backend you must logout and login again.</p>
|
24 |
+
<p>2. In Magento backend , at top menu select System/Configuration. </p>
|
25 |
+
<p>3. At left menu select Catalog/Qaz Qsticker.</p>
|
26 |
+

|
27 |
+
<b>Note: </b>
|
28 |
+
<p>-Next Version , we will add more option to config , friendly interface .</p>
|
29 |
+

|
30 |
+
<p><a href="http://extensions.qazware.com/extensions/free.html">Our Product</a></p>
|
31 |
+

|
32 |
+
<p><a href="http://qsticker.qazware.com/furniture.html"> Demo Front-End </a></p>
|
33 |
+
<p><a href="http://qsticker.qazware.com/admin"> Demo Back-End </a> Access qsticker / qazware123</p>
|
34 |
+

|
35 |
+
<p>If you have any question or want support , Please contact with me : <a href="mailto:kevin.qazware@gmail.com">Kevin Black</a></p></description>
|
36 |
+
<notes>Release for download</notes>
|
37 |
+
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin.qazware@gmail.com</email></author></authors>
|
38 |
+
<date>2012-01-11</date>
|
39 |
+
<time>09:08:04</time>
|
40 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qsticker.xml" hash="c5fac05d3764f1ecf78a142efbc07327"/></dir></target><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qsticker"><dir name="Helper"><file name="Data.php" hash="d1181fa3a998c97b8093c15a0775ca1e"/></dir><dir name="Model"><dir name="Sticker"><file name="Newstyle.php" hash="46ecccb0548ec1f9b9d3df0ef021667c"/><file name="Qstickerconfigs.php" hash="749e5c4e134006fc234a73ca5722aa78"/><file name="Salestyle.php" hash="b9599475df8446612772361af958a6ab"/><file name="Saletextstyle.php" hash="483621ea8b9e54bb9ddd9e80297459db"/></dir></dir><dir name="etc"><file name="config.xml" hash="2995739300ba0bdb66ed7866b7d72852"/><file name="system.xml" hash="daf3884f78e5af758afebc41345288df"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qsticker"><dir name="css"><file name="global.css" hash="31de539789bef3daf65b41ad48f3abca"/></dir><dir name="images"><file name="StickerA.png" hash="4b2785db4c7bcc6ef6d4a1b706859690"/><file name="StickerB.png" hash="93819bda8d8a9947e1794fc228a1f340"/><file name="list_StickerA.png" hash="9386e74f44a99a2c1dec5737b8a240ed"/><file name="list_StickerB.png" hash="3f654256244d7f3f28535fe0eb0c9bac"/><file name="list_new-blue.png" hash="e647953a11abe4388383272d304d9da6"/><file name="list_new-white.png" hash="ed6fbeefe9369e9b61a5b1c7636a2bb0"/><file name="list_new-yellow.png" hash="68a412726c86b684d562964f4077e159"/><file name="list_sale-black.png" hash="1caa82a85559296396177fb4d9c26877"/><file name="list_sale-blue.png" hash="4ab948591d76077d8708f2b7899a8c9b"/><file name="list_sale-lime.png" hash="f44658b728949bb8d0afad2f5078efd3"/><file name="list_sale-white.png" hash="66939af52c4a04820537aef261f80e1c"/><file name="new-blue.png" hash="11386c5354416e241db6e736d543a66a"/><file name="new-white.png" hash="39b5f47bc3a6af7ec9dca4d5c0c5acfd"/><file name="new-yellow.png" hash="81121ed3d78432abdce7d28bfa61e556"/><file name="sale-black.png" hash="a88f1b6aed9324241b41ddde63c9f3ee"/><file name="sale-blue.png" hash="6793d0420dc84eaf25630eb8e8b0c7cc"/><file name="sale-lime.png" hash="13ee830d208dcff34cdb45b10365479b"/><file name="sale-white.png" hash="b48d531afffb817e6ee379c7e4bf7d20"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qsticker.xml" hash="50094373d64770f9a3358d295e066bc2"/></dir></dir></dir></dir></target></contents>
|
41 |
+
<compatible/>
|
42 |
+
<dependencies/>
|
43 |
+
</package>
|
skin/frontend/default/default/qaz/qsticker/css/global.css
ADDED
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* ===================== Product Details ===================== */
|
2 |
+
.product-view .product-img-box{
|
3 |
+
overflow: hidden;
|
4 |
+
position:relative;
|
5 |
+
}
|
6 |
+
.product-view .product-img-box .product-image-zoom {
|
7 |
+
float: none;
|
8 |
+
overflow: visible;
|
9 |
+
}
|
10 |
+
.newblue{
|
11 |
+
width: 133px;
|
12 |
+
height: 133px;
|
13 |
+
background:url(../images/new-blue.png);
|
14 |
+
position: absolute;z-index:10;
|
15 |
+
top: 140px;
|
16 |
+
|
17 |
+
}
|
18 |
+
.newwhite{
|
19 |
+
width: 133px;
|
20 |
+
height: 133px;
|
21 |
+
top: 140px;
|
22 |
+
background:url(../images/new-white.png);
|
23 |
+
position: absolute;z-index:10;
|
24 |
+
}
|
25 |
+
.newyellow{
|
26 |
+
width: 133px;
|
27 |
+
height: 133px;
|
28 |
+
top: 140px;
|
29 |
+
background:url(../images/new-yellow.png);
|
30 |
+
position: absolute;z-index:10;
|
31 |
+
}
|
32 |
+
.saleblue{
|
33 |
+
width: 133px;
|
34 |
+
height: 133px;
|
35 |
+
top: 140px;
|
36 |
+
background:url(../images/sale-blue.png);
|
37 |
+
position: absolute;z-index:11;right:0;
|
38 |
+
color:blue;
|
39 |
+
font-size:20px;
|
40 |
+
}
|
41 |
+
.salewhite{
|
42 |
+
width: 133px;
|
43 |
+
height: 133px;
|
44 |
+
top: 140px;
|
45 |
+
background:url(../images/sale-white.png);
|
46 |
+
position: absolute;z-index:11;right:0;
|
47 |
+
color:white;
|
48 |
+
}
|
49 |
+
|
50 |
+
.salelime{
|
51 |
+
width: 133px;
|
52 |
+
height: 133px;
|
53 |
+
top: 140px;
|
54 |
+
background:url(../images/sale-lime.png);
|
55 |
+
position: absolute;z-index:11;right:0;
|
56 |
+
color:aqua;
|
57 |
+
font-size:20px;
|
58 |
+
}
|
59 |
+
.saleblack{
|
60 |
+
width: 133px;
|
61 |
+
height: 133px;
|
62 |
+
top: 140px;
|
63 |
+
background:url(../images/sale-black.png);
|
64 |
+
position: absolute;z-index:11;right:0;
|
65 |
+
color:black;
|
66 |
+
}
|
67 |
+
.off{
|
68 |
+
left: 60px;
|
69 |
+
position: relative;
|
70 |
+
z-index:13;
|
71 |
+
top: 80px;
|
72 |
+
}
|
73 |
+
.textblack{
|
74 |
+
font-size:14px;
|
75 |
+
color:black;
|
76 |
+
left: -15px;
|
77 |
+
position: relative;
|
78 |
+
top: 10px;
|
79 |
+
z-index:12;
|
80 |
+
font-style:italic;
|
81 |
+
}
|
82 |
+
.textwhite{
|
83 |
+
font-size:14px;
|
84 |
+
color:white;
|
85 |
+
left: -15px;
|
86 |
+
position: relative;
|
87 |
+
top: 10px;
|
88 |
+
z-index:12;
|
89 |
+
font-style:italic;
|
90 |
+
}
|
91 |
+
.textyellow{
|
92 |
+
font-size:14px;
|
93 |
+
color:yellow;
|
94 |
+
left: -15px;
|
95 |
+
position: relative;
|
96 |
+
top: 10px;
|
97 |
+
z-index:12;
|
98 |
+
font-style:italic;
|
99 |
+
}
|
100 |
+
|
101 |
+
|
102 |
+
/* ===================== Product List ===================== */
|
103 |
+
.products-grid li.item{
|
104 |
+
position: relative;
|
105 |
+
}
|
106 |
+
.products-list li.item {
|
107 |
+
position:relative;
|
108 |
+
}
|
109 |
+
.l-newblue{
|
110 |
+
width: 66px;
|
111 |
+
height: 66px;
|
112 |
+
float:left;
|
113 |
+
background:url(../images/list_new-blue.png);
|
114 |
+
position: absolute;z-index:10;
|
115 |
+
top :95px;
|
116 |
+
}
|
117 |
+
.l-newwhite{
|
118 |
+
width: 66px;
|
119 |
+
height: 66px;
|
120 |
+
float:left;
|
121 |
+
background:url(../images/list_new-white.png);
|
122 |
+
position:absolute ;z-index:10;
|
123 |
+
top :95px;
|
124 |
+
}
|
125 |
+
.l-newyellow{
|
126 |
+
width: 66px;
|
127 |
+
height: 66px;
|
128 |
+
float:left;
|
129 |
+
background:url(../images/list_new-yellow.png);
|
130 |
+
position: absolute;z-index:10;
|
131 |
+
top :95px;
|
132 |
+
}
|
133 |
+
.l-saleblue{
|
134 |
+
width: 66px;
|
135 |
+
height: 66px;
|
136 |
+
float:right;
|
137 |
+
background:url(../images/list_sale-blue.png);
|
138 |
+
position: absolute;z-index:11;
|
139 |
+
color:blue;
|
140 |
+
font-size:20px;
|
141 |
+
top :95px;
|
142 |
+
left:80px;
|
143 |
+
}
|
144 |
+
.l-salewhite{
|
145 |
+
width: 66px;
|
146 |
+
height: 66px;
|
147 |
+
float:right;
|
148 |
+
background:url(../images/list_sale-white.png);
|
149 |
+
position: absolute;z-index:11;
|
150 |
+
color:white;
|
151 |
+
right:0;
|
152 |
+
top :95px;
|
153 |
+
left:80px;
|
154 |
+
}
|
155 |
+
|
156 |
+
.l-salelime{
|
157 |
+
width: 66px;
|
158 |
+
height: 66px;
|
159 |
+
float:right;
|
160 |
+
background:url(../images/list_sale-lime.png);
|
161 |
+
position: absolute;z-index:11;
|
162 |
+
color:aqua;
|
163 |
+
font-size:20px;
|
164 |
+
right:0;
|
165 |
+
top :95px;
|
166 |
+
left:80px;
|
167 |
+
}
|
168 |
+
.l-saleblack{
|
169 |
+
width: 66px;
|
170 |
+
height: 66px;
|
171 |
+
background:url(../images/list_sale-black.png);
|
172 |
+
position: absolute;z-index:11;
|
173 |
+
color:black;
|
174 |
+
right:0;
|
175 |
+
top :95px;
|
176 |
+
left:80px;
|
177 |
+
}
|
178 |
+
.l-off{
|
179 |
+
left: 30px;
|
180 |
+
position: absolute;
|
181 |
+
z-index:11;
|
182 |
+
top: 40px;
|
183 |
+
font-size:14px;
|
184 |
+
font-weight:bolder;
|
185 |
+
}
|
skin/frontend/default/default/qaz/qsticker/images/StickerA.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/StickerB.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_StickerA.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_StickerB.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_new-blue.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_new-white.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_new-yellow.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_sale-black.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_sale-blue.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_sale-lime.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/list_sale-white.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/new-blue.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/new-white.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/new-yellow.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/sale-black.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/sale-blue.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/sale-lime.png
ADDED
Binary file
|
skin/frontend/default/default/qaz/qsticker/images/sale-white.png
ADDED
Binary file
|