Version Notes
Inquiry can be send for any selected product by customer. For any selected product inquiry button pop-up appears with inquiry form. As, customer fill his/her information email will be sent to configured email id of system and a copy to customer. Admin can view all these inquries in back end and also can delete it. Even Admin can also set email template.
Download this release
Release Info
Developer | Grapessolutions |
Extension | grp_product_Inquiry |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- app/code/local/Grp/Inquiry/etc/config.xml +1 -1
- app/design/frontend/base/default/layout/grp_inquiry.xml +88 -22
- app/design/frontend/base/default/template/grp_inquiry/inquiry/comment/form.phtml +68 -68
- app/design/frontend/base/default/template/grp_inquiry/inquiry/comment/list.phtml +47 -47
- app/design/frontend/base/default/template/grp_inquiry/inquiry/customer/comment/list.phtml +53 -53
- app/design/frontend/base/default/template/grp_inquiry/inquiry/customer/comment/view.phtml +42 -42
- app/design/frontend/base/default/template/grp_inquiry/inquiry/view.phtml +36 -36
- package.xml +4 -4
app/code/local/Grp/Inquiry/etc/config.xml
CHANGED
@@ -113,7 +113,7 @@
|
|
113 |
<grp_inquiry>
|
114 |
<use>standard</use>
|
115 |
<args>
|
116 |
-
<module>
|
117 |
<frontName>grp_inquiry</frontName>
|
118 |
</args>
|
119 |
</grp_inquiry>
|
113 |
<grp_inquiry>
|
114 |
<use>standard</use>
|
115 |
<args>
|
116 |
+
<module>Grp_Inquiry</module>
|
117 |
<frontName>grp_inquiry</frontName>
|
118 |
</args>
|
119 |
</grp_inquiry>
|
app/design/frontend/base/default/layout/grp_inquiry.xml
CHANGED
@@ -18,33 +18,99 @@
|
|
18 |
-->
|
19 |
<layout>
|
20 |
|
21 |
-
<
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
</reference>
|
25 |
-
</
|
26 |
-
<
|
27 |
<label>Inquiry view page</label>
|
28 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
<reference name="content">
|
30 |
-
<block type="grp_inquiry/inquiry_view" name="inquiry_view" template="grp_inquiry/inquiry/
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
</block>
|
34 |
</reference>
|
35 |
-
</
|
36 |
-
<
|
37 |
-
<label>
|
38 |
-
<
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
41 |
</reference>
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
<
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
48 |
</reference>
|
49 |
-
</
|
50 |
</layout>
|
18 |
-->
|
19 |
<layout>
|
20 |
|
21 |
+
<default>
|
22 |
+
|
23 |
+
<reference name="head">
|
24 |
+
<action method="addCss">
|
25 |
+
<stylesheet>css/inquiry_custom.css</stylesheet>
|
26 |
+
</action>
|
27 |
+
<action method="addJs">
|
28 |
+
<script>prototype/window.js</script>
|
29 |
+
</action>
|
30 |
+
<action method="addItem">
|
31 |
+
<type>js_css</type>
|
32 |
+
<name>prototype/windows/themes/default.css</name>
|
33 |
+
</action>
|
34 |
+
|
35 |
+
</reference>
|
36 |
+
<reference name="content">
|
37 |
+
<block type="core/template" name="jsscript" template="grp_inquiry/inquiry/jsscipt.phtml"/>
|
38 |
</reference>
|
39 |
+
</default>
|
40 |
+
<grp_inquiry_inquiry_product translate="label" module="grp_inquiry">
|
41 |
<label>Inquiry view page</label>
|
42 |
+
<reference name="root">
|
43 |
+
<action method="setTemplate">
|
44 |
+
<template>page/empty.phtml</template>
|
45 |
+
</action>
|
46 |
+
</reference>
|
47 |
+
<reference name="head">
|
48 |
+
<action method="addCss">
|
49 |
+
<stylesheet>css/inquiry_custom.css</stylesheet>
|
50 |
+
</action>
|
51 |
+
<action method="addJs">
|
52 |
+
<script>scriptaculous/scriptaculous.js</script>
|
53 |
+
</action>
|
54 |
+
<action method="addJs">
|
55 |
+
<script>varien/product.js</script>
|
56 |
+
</action>
|
57 |
+
</reference>
|
58 |
<reference name="content">
|
59 |
+
<block type="grp_inquiry/inquiry_view" name="inquiry_view" template="grp_inquiry/inquiry/product_form.phtml" />
|
60 |
+
</reference>
|
61 |
+
</grp_inquiry_inquiry_product>
|
62 |
+
<catalog_category_default translate="label">
|
63 |
+
<reference name="product.info.addtocart">
|
64 |
+
<action method="setTemplate">
|
65 |
+
<template>grp_inquiry/product/addtocart.phtml</template>
|
66 |
+
</action>
|
67 |
+
</reference>
|
68 |
+
</catalog_category_default>
|
69 |
+
<catalog_category_layered translate="label">
|
70 |
+
<reference name="content">
|
71 |
+
<reference name="category.products">
|
72 |
+
<block type="catalog/product_list" name="product_list" template="grp_inquiry/product/list.phtml"/>
|
73 |
+
</reference>
|
74 |
+
</reference>
|
75 |
+
</catalog_category_layered>
|
76 |
+
<catalog_product_view translate="label">
|
77 |
+
<reference name="content">
|
78 |
+
<reference name="product.info">
|
79 |
+
<block type="catalog/product_view" name="product.info.addtocart" as="addtocart" template="grp_inquiry/product/addtocart.phtml"/>
|
80 |
+
</reference>
|
81 |
+
|
82 |
+
</reference>
|
83 |
+
</catalog_product_view>
|
84 |
+
<PRODUCT_TYPE_simple translate="label" module="catalog">
|
85 |
+
<label>Catalog Product View (Simple)</label>
|
86 |
+
<reference name="product.info">
|
87 |
+
<block type="catalog/product_view_type_simple" name="product.info.simple" as="product_type_data" template="grp_inquiry/product/view/type/default.phtml">
|
88 |
+
<block type="core/text_list" name="product.info.simple.extra" as="product_type_data_extra" translate="label">
|
89 |
+
<label>Product Extra Info</label>
|
90 |
+
</block>
|
91 |
</block>
|
92 |
</reference>
|
93 |
+
</PRODUCT_TYPE_simple>
|
94 |
+
<PRODUCT_TYPE_configurable translate="label" module="catalog">
|
95 |
+
<label>Catalog Product View (Configurable)</label>
|
96 |
+
<reference name="product.info">
|
97 |
+
<block type="catalog/product_view_type_configurable" name="product.info.configurable" as="product_type_data" template="grp_inquiry/product/view/type/default.phtml">
|
98 |
+
<block type="core/text_list" name="product.info.configurable.extra" as="product_type_data_extra" translate="label">
|
99 |
+
<label>Product Extra Info</label>
|
100 |
+
</block>
|
101 |
+
</block>
|
102 |
</reference>
|
103 |
+
|
104 |
+
</PRODUCT_TYPE_configurable>
|
105 |
+
|
106 |
+
<PRODUCT_TYPE_virtual translate="label" module="catalog">
|
107 |
+
<label>Catalog Product View (Virtual)</label>
|
108 |
+
<reference name="product.info">
|
109 |
+
<block type="catalog/product_view_type_virtual" name="product.info.virtual" as="product_type_data" template="grp_inquiry/product/view/type/default.phtml">
|
110 |
+
<block type="core/text_list" name="product.info.virtual.extra" as="product_type_data_extra" translate="label">
|
111 |
+
<label>Product Extra Info</label>
|
112 |
+
</block>
|
113 |
+
</block>
|
114 |
</reference>
|
115 |
+
</PRODUCT_TYPE_virtual>
|
116 |
</layout>
|
app/design/frontend/base/default/template/grp_inquiry/inquiry/comment/form.phtml
CHANGED
@@ -1,68 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Grp_Inquiry extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the MIT License
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/mit-license.php
|
11 |
-
*
|
12 |
-
* @category Grp
|
13 |
-
* @package Grp_Inquiry
|
14 |
-
* @copyright Copyright (c) 2014
|
15 |
-
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
-
*/
|
17 |
-
/**
|
18 |
-
* Inquiry comments form template
|
19 |
-
*
|
20 |
-
* @category Grp
|
21 |
-
* @package Grp_Inquiry
|
22 |
-
* @author
|
23 |
-
*/
|
24 |
-
?>
|
25 |
-
<?php $data = $this->getCommentData();?>
|
26 |
-
<div class="form-add">
|
27 |
-
<h2><?php echo $this->__('Write Your Comment') ?></h2>
|
28 |
-
<?php if ($this->getAllowWriteCommentFlag()): ?>
|
29 |
-
<form action="<?php echo $this->getAction() ?>" method="post" id="comment-form">
|
30 |
-
<fieldset>
|
31 |
-
<ul class="form-list">
|
32 |
-
<li>
|
33 |
-
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('Nickname') ?></label>
|
34 |
-
<div class="input-box">
|
35 |
-
<input type="text" name="name" id="name_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getName()) ?>" />
|
36 |
-
</div>
|
37 |
-
</li>
|
38 |
-
<li>
|
39 |
-
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('E-mail') ?></label>
|
40 |
-
<div class="input-box">
|
41 |
-
<input type="text" name="email" id="email_field" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($data->getEmail()) ?>" />
|
42 |
-
</div>
|
43 |
-
</li>
|
44 |
-
<li>
|
45 |
-
<label for="title_field" class="required"><em>*</em><?php echo $this->__('Comment title') ?></label>
|
46 |
-
<div class="input-box">
|
47 |
-
<input type="text" name="title" id="title_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getTitle()) ?>" />
|
48 |
-
</div>
|
49 |
-
</li>
|
50 |
-
<li>
|
51 |
-
<label for="review_field" class="required"><em>*</em><?php echo $this->__('Comment') ?></label>
|
52 |
-
<div class="input-box">
|
53 |
-
<textarea name="comment" id="comment_field" cols="5" rows="3" class="required-entry"><?php echo $this->htmlEscape($data->getComment()) ?></textarea>
|
54 |
-
</div>
|
55 |
-
</li>
|
56 |
-
</ul>
|
57 |
-
</fieldset>
|
58 |
-
<div class="buttons-set">
|
59 |
-
<button type="submit" title="<?php echo $this->__('Submit Comment') ?>" class="button"><span><span><?php echo $this->__('Submit Comment') ?></span></span></button>
|
60 |
-
</div>
|
61 |
-
</form>
|
62 |
-
<script type="text/javascript">var commentForm = new VarienForm('comment-form');</script>
|
63 |
-
<?php else: ?>
|
64 |
-
<p class="review-nologged" id="comment-form">
|
65 |
-
<?php echo $this->__('Only registered users can write comments. Please, <a href="%s">log in</a> or <a href="%s">register</a>', $this->getLoginLink(), Mage::helper('customer')->getRegisterUrl()) ?>
|
66 |
-
</p>
|
67 |
-
<?php endif ?>
|
68 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Grp_Inquiry extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the MIT License
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/mit-license.php
|
11 |
+
*
|
12 |
+
* @category Grp
|
13 |
+
* @package Grp_Inquiry
|
14 |
+
* @copyright Copyright (c) 2014
|
15 |
+
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
+
*/
|
17 |
+
/**
|
18 |
+
* Inquiry comments form template
|
19 |
+
*
|
20 |
+
* @category Grp
|
21 |
+
* @package Grp_Inquiry
|
22 |
+
* @author Grapes-solutions.com
|
23 |
+
*/
|
24 |
+
?>
|
25 |
+
<?php $data = $this->getCommentData();?>
|
26 |
+
<div class="form-add">
|
27 |
+
<h2><?php echo $this->__('Write Your Comment') ?></h2>
|
28 |
+
<?php if ($this->getAllowWriteCommentFlag()): ?>
|
29 |
+
<form action="<?php echo $this->getAction() ?>" method="post" id="comment-form">
|
30 |
+
<fieldset>
|
31 |
+
<ul class="form-list">
|
32 |
+
<li>
|
33 |
+
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('Nickname') ?></label>
|
34 |
+
<div class="input-box">
|
35 |
+
<input type="text" name="name" id="name_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getName()) ?>" />
|
36 |
+
</div>
|
37 |
+
</li>
|
38 |
+
<li>
|
39 |
+
<label for="nickname_field" class="required"><em>*</em><?php echo $this->__('E-mail') ?></label>
|
40 |
+
<div class="input-box">
|
41 |
+
<input type="text" name="email" id="email_field" class="input-text required-entry validate-email" value="<?php echo $this->htmlEscape($data->getEmail()) ?>" />
|
42 |
+
</div>
|
43 |
+
</li>
|
44 |
+
<li>
|
45 |
+
<label for="title_field" class="required"><em>*</em><?php echo $this->__('Comment title') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input type="text" name="title" id="title_field" class="input-text required-entry" value="<?php echo $this->htmlEscape($data->getTitle()) ?>" />
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
<li>
|
51 |
+
<label for="review_field" class="required"><em>*</em><?php echo $this->__('Comment') ?></label>
|
52 |
+
<div class="input-box">
|
53 |
+
<textarea name="comment" id="comment_field" cols="5" rows="3" class="required-entry"><?php echo $this->htmlEscape($data->getComment()) ?></textarea>
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
</ul>
|
57 |
+
</fieldset>
|
58 |
+
<div class="buttons-set">
|
59 |
+
<button type="submit" title="<?php echo $this->__('Submit Comment') ?>" class="button"><span><span><?php echo $this->__('Submit Comment') ?></span></span></button>
|
60 |
+
</div>
|
61 |
+
</form>
|
62 |
+
<script type="text/javascript">var commentForm = new VarienForm('comment-form');</script>
|
63 |
+
<?php else: ?>
|
64 |
+
<p class="review-nologged" id="comment-form">
|
65 |
+
<?php echo $this->__('Only registered users can write comments. Please, <a href="%s">log in</a> or <a href="%s">register</a>', $this->getLoginLink(), Mage::helper('customer')->getRegisterUrl()) ?>
|
66 |
+
</p>
|
67 |
+
<?php endif ?>
|
68 |
+
</div>
|
app/design/frontend/base/default/template/grp_inquiry/inquiry/comment/list.phtml
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Grp_Inquiry extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the MIT License
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/mit-license.php
|
11 |
-
*
|
12 |
-
* @category Grp
|
13 |
-
* @package Grp_Inquiry
|
14 |
-
* @copyright Copyright (c) 2014
|
15 |
-
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
-
*/
|
17 |
-
/**
|
18 |
-
* Inquiry comments list template
|
19 |
-
*
|
20 |
-
* @category Grp
|
21 |
-
* @package Grp_Inquiry
|
22 |
-
* @author
|
23 |
-
*/
|
24 |
-
?>
|
25 |
-
<?php $_inquiry = $this->getInquiry()?>
|
26 |
-
<?php if ($_inquiry->getAllowComments()) : ?>
|
27 |
-
<?php $_comments = $this->getComments(); ?>
|
28 |
-
<?php if (count($_comments)) : ?>
|
29 |
-
<div class="box-collateral box-reviews" id="inquiry-reviews">
|
30 |
-
<h2><?php echo $this->__('Comments for: %s', $_inquiry->getInquiries()) ?></h2>
|
31 |
-
<?php echo $this->getPagerHtml() ?>
|
32 |
-
<dl>
|
33 |
-
<?php foreach ($_comments as $_comment):?>
|
34 |
-
<dt>
|
35 |
-
<div class="author"><?php echo $this->__('On %s %s wrote:', $this->formatDate($_comment->getCreatedAt(), 'long'), $this->htmlEscape($_comment->getName()))?></div>
|
36 |
-
<strong><?php echo $this->htmlEscape($_comment->getTitle()) ?></strong>
|
37 |
-
</dt>
|
38 |
-
<dd>
|
39 |
-
<?php echo nl2br($this->htmlEscape($_comment->getComment())) ?>
|
40 |
-
</dd>
|
41 |
-
<?php endforeach; ?>
|
42 |
-
</dl>
|
43 |
-
<?php echo $this->getPagerHtml() ?>
|
44 |
-
</div>
|
45 |
-
<?php endif;?>
|
46 |
-
<?php echo $this->getChildHtml('comment_form') ?>
|
47 |
-
<?php endif;?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Grp_Inquiry extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the MIT License
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/mit-license.php
|
11 |
+
*
|
12 |
+
* @category Grp
|
13 |
+
* @package Grp_Inquiry
|
14 |
+
* @copyright Copyright (c) 2014
|
15 |
+
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
+
*/
|
17 |
+
/**
|
18 |
+
* Inquiry comments list template
|
19 |
+
*
|
20 |
+
* @category Grp
|
21 |
+
* @package Grp_Inquiry
|
22 |
+
* @author Grapes-solutions.com
|
23 |
+
*/
|
24 |
+
?>
|
25 |
+
<?php $_inquiry = $this->getInquiry()?>
|
26 |
+
<?php if ($_inquiry->getAllowComments()) : ?>
|
27 |
+
<?php $_comments = $this->getComments(); ?>
|
28 |
+
<?php if (count($_comments)) : ?>
|
29 |
+
<div class="box-collateral box-reviews" id="inquiry-reviews">
|
30 |
+
<h2><?php echo $this->__('Comments for: %s', $_inquiry->getInquiries()) ?></h2>
|
31 |
+
<?php echo $this->getPagerHtml() ?>
|
32 |
+
<dl>
|
33 |
+
<?php foreach ($_comments as $_comment):?>
|
34 |
+
<dt>
|
35 |
+
<div class="author"><?php echo $this->__('On %s %s wrote:', $this->formatDate($_comment->getCreatedAt(), 'long'), $this->htmlEscape($_comment->getName()))?></div>
|
36 |
+
<strong><?php echo $this->htmlEscape($_comment->getTitle()) ?></strong>
|
37 |
+
</dt>
|
38 |
+
<dd>
|
39 |
+
<?php echo nl2br($this->htmlEscape($_comment->getComment())) ?>
|
40 |
+
</dd>
|
41 |
+
<?php endforeach; ?>
|
42 |
+
</dl>
|
43 |
+
<?php echo $this->getPagerHtml() ?>
|
44 |
+
</div>
|
45 |
+
<?php endif;?>
|
46 |
+
<?php echo $this->getChildHtml('comment_form') ?>
|
47 |
+
<?php endif;?>
|
app/design/frontend/base/default/template/grp_inquiry/inquiry/customer/comment/list.phtml
CHANGED
@@ -1,53 +1,53 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Grp_Inquiry extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the MIT License
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/mit-license.php
|
11 |
-
*
|
12 |
-
* @category Grp
|
13 |
-
* @package Grp_Inquiry
|
14 |
-
* @copyright Copyright (c) 2014
|
15 |
-
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
-
*/
|
17 |
-
/**
|
18 |
-
* customer Inquiries comments template
|
19 |
-
* @category Grp
|
20 |
-
* @package Grp_Inquiry
|
21 |
-
* @author
|
22 |
-
*/
|
23 |
-
?>
|
24 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
25 |
-
<div class="page-title">
|
26 |
-
<h1><?php echo $this->__('My Inquiries Comments') ?></h1>
|
27 |
-
</div>
|
28 |
-
<?php if( $this->getCollection() && $this->count()): ?>
|
29 |
-
<?php echo $this->getToolbarHtml() ?>
|
30 |
-
<table class="data-table" id="my-inquiry-comments-table">
|
31 |
-
<col width="1" />
|
32 |
-
<col width="1" />
|
33 |
-
<col />
|
34 |
-
<col width="1" />
|
35 |
-
<tbody>
|
36 |
-
<?php foreach ($this->getCollection() as $_comment): ?>
|
37 |
-
<tr>
|
38 |
-
<td><span class="nobr"><?php echo $this->dateFormat($_comment->getCtCreatedAt()); ?></span></td>
|
39 |
-
<td><h2 class="product-name"><a href="<?php echo $this->getInquiryLink($_comment) ?>"><?php echo $this->htmlEscape($_comment->getInquiries()) ?></a></h2></td>
|
40 |
-
<td><?php echo Mage::helper('core')->escapeHtml($_comment->getCtTitle()) ?></td>
|
41 |
-
<td><a href="<?php echo $this->getCommentLink($_comment) ?>" class="nobr"><?php echo $this->__('View Details') ?></a></td>
|
42 |
-
</tr>
|
43 |
-
<?php endforeach; ?>
|
44 |
-
</tbody>
|
45 |
-
</table>
|
46 |
-
<script type="text/javascript">decorateTable('my-inquiry-comments-table')</script>
|
47 |
-
<?php echo $this->getToolbarHtml() ?>
|
48 |
-
<?php else: ?>
|
49 |
-
<p><?php echo $this->__('You have submitted no comments for inquiries.') ?></p>
|
50 |
-
<?php endif; ?>
|
51 |
-
<div class="buttons-set">
|
52 |
-
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
53 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Grp_Inquiry extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the MIT License
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/mit-license.php
|
11 |
+
*
|
12 |
+
* @category Grp
|
13 |
+
* @package Grp_Inquiry
|
14 |
+
* @copyright Copyright (c) 2014
|
15 |
+
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
+
*/
|
17 |
+
/**
|
18 |
+
* customer Inquiries comments template
|
19 |
+
* @category Grp
|
20 |
+
* @package Grp_Inquiry
|
21 |
+
* @author Grapes-solutions.com
|
22 |
+
*/
|
23 |
+
?>
|
24 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
25 |
+
<div class="page-title">
|
26 |
+
<h1><?php echo $this->__('My Inquiries Comments') ?></h1>
|
27 |
+
</div>
|
28 |
+
<?php if( $this->getCollection() && $this->count()): ?>
|
29 |
+
<?php echo $this->getToolbarHtml() ?>
|
30 |
+
<table class="data-table" id="my-inquiry-comments-table">
|
31 |
+
<col width="1" />
|
32 |
+
<col width="1" />
|
33 |
+
<col />
|
34 |
+
<col width="1" />
|
35 |
+
<tbody>
|
36 |
+
<?php foreach ($this->getCollection() as $_comment): ?>
|
37 |
+
<tr>
|
38 |
+
<td><span class="nobr"><?php echo $this->dateFormat($_comment->getCtCreatedAt()); ?></span></td>
|
39 |
+
<td><h2 class="product-name"><a href="<?php echo $this->getInquiryLink($_comment) ?>"><?php echo $this->htmlEscape($_comment->getInquiries()) ?></a></h2></td>
|
40 |
+
<td><?php echo Mage::helper('core')->escapeHtml($_comment->getCtTitle()) ?></td>
|
41 |
+
<td><a href="<?php echo $this->getCommentLink($_comment) ?>" class="nobr"><?php echo $this->__('View Details') ?></a></td>
|
42 |
+
</tr>
|
43 |
+
<?php endforeach; ?>
|
44 |
+
</tbody>
|
45 |
+
</table>
|
46 |
+
<script type="text/javascript">decorateTable('my-inquiry-comments-table')</script>
|
47 |
+
<?php echo $this->getToolbarHtml() ?>
|
48 |
+
<?php else: ?>
|
49 |
+
<p><?php echo $this->__('You have submitted no comments for inquiries.') ?></p>
|
50 |
+
<?php endif; ?>
|
51 |
+
<div class="buttons-set">
|
52 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
53 |
+
</div>
|
app/design/frontend/base/default/template/grp_inquiry/inquiry/customer/comment/view.phtml
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Grp_Inquiry extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the MIT License
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/mit-license.php
|
11 |
-
*
|
12 |
-
* @category Grp
|
13 |
-
* @package Grp_Inquiry
|
14 |
-
* @copyright Copyright (c) 2014
|
15 |
-
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
-
*/
|
17 |
-
/**
|
18 |
-
* customer Inquiries comments view
|
19 |
-
* @category Grp
|
20 |
-
* @package Grp_Inquiry
|
21 |
-
* @author
|
22 |
-
*/
|
23 |
-
?>
|
24 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
25 |
-
<div class="page-title">
|
26 |
-
<h1><?php echo $this->getComment()->getTitle() ?></h1>
|
27 |
-
</div>
|
28 |
-
<div class="comment-view">
|
29 |
-
<h2>
|
30 |
-
<a class="product-name" href="<?php echo $this->getInquiry()->getInquiryUrl()?>">
|
31 |
-
<?php echo $this->getInquiry()->getInquiries()?>
|
32 |
-
</a>
|
33 |
-
</h2>
|
34 |
-
<div class="comment-date">
|
35 |
-
<?php echo $this->__('On %s you wrote:', $this->formatDate($this->getComment()->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_FULL))?>
|
36 |
-
</div>
|
37 |
-
<div>
|
38 |
-
<?php echo Mage::helper('core')->escapeHtml($this->getComment()->getComment());?>
|
39 |
-
</div>
|
40 |
-
<div class="buttons-set">
|
41 |
-
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
42 |
-
</div>
|
43 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Grp_Inquiry extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the MIT License
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/mit-license.php
|
11 |
+
*
|
12 |
+
* @category Grp
|
13 |
+
* @package Grp_Inquiry
|
14 |
+
* @copyright Copyright (c) 2014
|
15 |
+
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
+
*/
|
17 |
+
/**
|
18 |
+
* customer Inquiries comments view
|
19 |
+
* @category Grp
|
20 |
+
* @package Grp_Inquiry
|
21 |
+
* @author Grapes-solutions.com
|
22 |
+
*/
|
23 |
+
?>
|
24 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
25 |
+
<div class="page-title">
|
26 |
+
<h1><?php echo $this->getComment()->getTitle() ?></h1>
|
27 |
+
</div>
|
28 |
+
<div class="comment-view">
|
29 |
+
<h2>
|
30 |
+
<a class="product-name" href="<?php echo $this->getInquiry()->getInquiryUrl()?>">
|
31 |
+
<?php echo $this->getInquiry()->getInquiries()?>
|
32 |
+
</a>
|
33 |
+
</h2>
|
34 |
+
<div class="comment-date">
|
35 |
+
<?php echo $this->__('On %s you wrote:', $this->formatDate($this->getComment()->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_FULL))?>
|
36 |
+
</div>
|
37 |
+
<div>
|
38 |
+
<?php echo Mage::helper('core')->escapeHtml($this->getComment()->getComment());?>
|
39 |
+
</div>
|
40 |
+
<div class="buttons-set">
|
41 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
42 |
+
</div>
|
43 |
</div>
|
app/design/frontend/base/default/template/grp_inquiry/inquiry/view.phtml
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Grp_Inquiry extension
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the MIT License
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/mit-license.php
|
11 |
-
*
|
12 |
-
* @category Grp
|
13 |
-
* @package Grp_Inquiry
|
14 |
-
* @copyright Copyright (c) 2014
|
15 |
-
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
-
*/
|
17 |
-
/**
|
18 |
-
* Inquiry view template
|
19 |
-
*
|
20 |
-
* @category Grp
|
21 |
-
* @package Grp_Inquiry
|
22 |
-
* @author
|
23 |
-
*/
|
24 |
-
?>
|
25 |
-
<?php $_inquiry = $this->getCurrentInquiry();?>
|
26 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
27 |
-
<div class="page-title inquiry-title">
|
28 |
-
<h1><?php echo $_inquiry->getInquiries(); ?></h1>
|
29 |
-
</div>
|
30 |
-
<div class="inquiry-view">
|
31 |
-
<div class="inquiry-inquiry">
|
32 |
-
<?php echo Mage::helper('grp_inquiry')->__("Send inquiry?");?>:<?php echo ($_inquiry->getInquiry() == 1)?Mage::helper('inquiry')->__('Yes'):Mage::helper('inquiry')->__('No') ?>
|
33 |
-
|
34 |
-
</div>
|
35 |
-
|
36 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Grp_Inquiry extension
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the MIT License
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/mit-license.php
|
11 |
+
*
|
12 |
+
* @category Grp
|
13 |
+
* @package Grp_Inquiry
|
14 |
+
* @copyright Copyright (c) 2014
|
15 |
+
* @license http://opensource.org/licenses/mit-license.php MIT License
|
16 |
+
*/
|
17 |
+
/**
|
18 |
+
* Inquiry view template
|
19 |
+
*
|
20 |
+
* @category Grp
|
21 |
+
* @package Grp_Inquiry
|
22 |
+
* @author Grapes-solutions.com
|
23 |
+
*/
|
24 |
+
?>
|
25 |
+
<?php $_inquiry = $this->getCurrentInquiry();?>
|
26 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
27 |
+
<div class="page-title inquiry-title">
|
28 |
+
<h1><?php echo $_inquiry->getInquiries(); ?></h1>
|
29 |
+
</div>
|
30 |
+
<div class="inquiry-view">
|
31 |
+
<div class="inquiry-inquiry">
|
32 |
+
<?php echo Mage::helper('grp_inquiry')->__("Send inquiry?");?>:<?php echo ($_inquiry->getInquiry() == 1)?Mage::helper('inquiry')->__('Yes'):Mage::helper('inquiry')->__('No') ?>
|
33 |
+
|
34 |
+
</div>
|
35 |
+
|
36 |
+
</div>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>grp_product_Inquiry</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,9 +12,9 @@ Inquiry can be view in Email template also</summary>
|
|
12 |
<description>Inquiry can be send for any selected product by customer. For any selected product inquiry button pop-up appears with inquiry form. As, customer fill his/her information email will be sent to configured email id of system and a copy to customer. Admin can view all these inquries in back end and also can delete it. Even Admin can also set email template.</description>
|
13 |
<notes>Inquiry can be send for any selected product by customer. For any selected product inquiry button pop-up appears with inquiry form. As, customer fill his/her information email will be sent to configured email id of system and a copy to customer. Admin can view all these inquries in back end and also can delete it. Even Admin can also set email template.</notes>
|
14 |
<authors><author><name>Grapessolutions</name><user>grapessolutions</user><email>vasim@grapes-solutions.com</email></author></authors>
|
15 |
-
<date>2015-04-
|
16 |
-
<time>
|
17 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Grp_Inquiry.xml" hash="cdf6f2919bf504cc4c72c0d2283d1e34"/></dir></target><target name="magelocal"><dir name="Grp"><dir name="Inquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Inquiry"><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="c806f9d12a686b70b9564da01b7bd84b"/><dir name="Tab"><file name="Form.php" hash="8ab4d95b6f045276f23dd8db8b75eee0"/><file name="Stores.php" hash="a5a3fd40bd9f3cd22b30541582ebaa85"/></dir><file name="Tabs.php" hash="5d89985ea7848cdeed658da2a8f6b436"/></dir><file name="Edit.php" hash="cf70d0f9d96039e7df12add83f2c2231"/><file name="Grid.php" hash="a604d1458e7ed8819ab37fcbfc6f92e2"/></dir><file name="Comment.php" hash="f023f01215c5d0cd163b44b1f3e6aa1b"/><dir name="Edit"><file name="Form.php" hash="a2b5e9fc553915c50382a6ad69982338"/><dir name="Tab"><file name="Form.php" hash="3f1b2eeacef699fe5013292f32173725"/><file name="Stores.php" hash="397c0d5961ddee8ae5cf5d9fb8d6e084"/></dir><file name="Tabs.php" hash="28f16c18d6fa8293736cd60f6108a293"/></dir><file name="Edit.php" hash="61240c5bf1367c35edf647cae7641394"/><file name="Grid.php" hash="44d694b67ae10e0d940a69ab46972574"/></dir><file name="Inquiry.php" hash="0f03e5a76c7dee7e7f8328dae81d1db5"/></dir><dir name="Inquiry"><file name="View.php" hash="4c70b48cf706b6cc870b0a18e1174a41"/></dir></dir><dir name="Controller"><dir name="Adminhtml"><file name="Inquiry.php" hash="d5acbd7fd47f4146bdbca9721b8fd1f3"/></dir></dir><dir name="Helper"><file name="Data.php" hash="189ce03346495bdf75362dfa4d1871b1"/><file name="Inquiry.php" hash="3a940a6af502909ef02818bd885b8eeb"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Source"><file name="Yesnodefault.php" hash="c4800a6a32c653a16a34a1196ddb2e5f"/></dir></dir><file name="Inquiry.php" hash="066a9129c5904d4fcdccfc11f54947b2"/><dir name="Resource"><dir name="Inquiry"><file name="Collection.php" hash="29ca1458ffb4df8f229ca8872e746888"/></dir><file name="Inquiry.php" hash="12e49e08aaacc44709f8fa21cf26463a"/><file name="Setup.php" hash="8ff296594754f40bfa64abb5c8437b3c"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Inquiry"><file name="InquiryController.php" hash="04d0cea24d8baa559518d6dff7dec22d"/></dir></dir><file name="InquiryController.php" hash="a9ce115ee31303904b4eb8b50be41764"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7ec090ad09ca316332adca9fe1528ccb"/><file name="config.xml" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>grp_product_Inquiry</name>
|
4 |
+
<version>1.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
12 |
<description>Inquiry can be send for any selected product by customer. For any selected product inquiry button pop-up appears with inquiry form. As, customer fill his/her information email will be sent to configured email id of system and a copy to customer. Admin can view all these inquries in back end and also can delete it. Even Admin can also set email template.</description>
|
13 |
<notes>Inquiry can be send for any selected product by customer. For any selected product inquiry button pop-up appears with inquiry form. As, customer fill his/her information email will be sent to configured email id of system and a copy to customer. Admin can view all these inquries in back end and also can delete it. Even Admin can also set email template.</notes>
|
14 |
<authors><author><name>Grapessolutions</name><user>grapessolutions</user><email>vasim@grapes-solutions.com</email></author></authors>
|
15 |
+
<date>2015-04-30</date>
|
16 |
+
<time>12:52:03</time>
|
17 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Grp_Inquiry.xml" hash="cdf6f2919bf504cc4c72c0d2283d1e34"/></dir></target><target name="magelocal"><dir name="Grp"><dir name="Inquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Inquiry"><dir name="Comment"><dir name="Edit"><file name="Form.php" hash="c806f9d12a686b70b9564da01b7bd84b"/><dir name="Tab"><file name="Form.php" hash="8ab4d95b6f045276f23dd8db8b75eee0"/><file name="Stores.php" hash="a5a3fd40bd9f3cd22b30541582ebaa85"/></dir><file name="Tabs.php" hash="5d89985ea7848cdeed658da2a8f6b436"/></dir><file name="Edit.php" hash="cf70d0f9d96039e7df12add83f2c2231"/><file name="Grid.php" hash="a604d1458e7ed8819ab37fcbfc6f92e2"/></dir><file name="Comment.php" hash="f023f01215c5d0cd163b44b1f3e6aa1b"/><dir name="Edit"><file name="Form.php" hash="a2b5e9fc553915c50382a6ad69982338"/><dir name="Tab"><file name="Form.php" hash="3f1b2eeacef699fe5013292f32173725"/><file name="Stores.php" hash="397c0d5961ddee8ae5cf5d9fb8d6e084"/></dir><file name="Tabs.php" hash="28f16c18d6fa8293736cd60f6108a293"/></dir><file name="Edit.php" hash="61240c5bf1367c35edf647cae7641394"/><file name="Grid.php" hash="44d694b67ae10e0d940a69ab46972574"/></dir><file name="Inquiry.php" hash="0f03e5a76c7dee7e7f8328dae81d1db5"/></dir><dir name="Inquiry"><file name="View.php" hash="4c70b48cf706b6cc870b0a18e1174a41"/></dir></dir><dir name="Controller"><dir name="Adminhtml"><file name="Inquiry.php" hash="d5acbd7fd47f4146bdbca9721b8fd1f3"/></dir></dir><dir name="Helper"><file name="Data.php" hash="189ce03346495bdf75362dfa4d1871b1"/><file name="Inquiry.php" hash="3a940a6af502909ef02818bd885b8eeb"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="Source"><file name="Yesnodefault.php" hash="c4800a6a32c653a16a34a1196ddb2e5f"/></dir></dir><file name="Inquiry.php" hash="066a9129c5904d4fcdccfc11f54947b2"/><dir name="Resource"><dir name="Inquiry"><file name="Collection.php" hash="29ca1458ffb4df8f229ca8872e746888"/></dir><file name="Inquiry.php" hash="12e49e08aaacc44709f8fa21cf26463a"/><file name="Setup.php" hash="8ff296594754f40bfa64abb5c8437b3c"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Inquiry"><file name="InquiryController.php" hash="04d0cea24d8baa559518d6dff7dec22d"/></dir></dir><file name="InquiryController.php" hash="a9ce115ee31303904b4eb8b50be41764"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7ec090ad09ca316332adca9fe1528ccb"/><file name="config.xml" hash="d1350ca5d3d0d2da7598a9c329bd0c4d"/><file name="system.xml" hash="791b8e8b73850f55e80aad2d09b80ec5"/></dir><dir name="sql"><dir name="grp_inquiry_setup"><file name="install-1.0.0.php" hash="2b69c7cf09a2c2d4491781476196c5b5"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="inquiry"><file name="customer_general.html" hash="519d6ce776cfd25e3ac02afa8faf71ee"/><file name="general.html" hash="194c9ecb88b7f4375939e2315b75d2c1"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="inquiry_custom.css" hash="094c7409a0b086fe3b775be316745d4a"/></dir><dir name="images"><file name="btn_window_close.gif" hash="c83f3cbbb2aedfc580dff78d5cfb63ed"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="grp_inquiry.xml" hash="361552ff4964b089883d058a03940931"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="grp_inquiry.xml" hash="67812f1a5e3da5d61fa9f062156e87c1"/></dir><dir name="template"><dir name="grp_inquiry"><dir name="inquiry"><dir name="comment"><file name="form.phtml" hash="374e7041d8169529ce6519de88a3f074"/><file name="list.phtml" hash="bd20ef13a0978b7039e20ba5c040ce4d"/></dir><dir name="customer"><dir name="comment"><file name="form.phtml" hash="46bc55797183eb579358972558a0f00b"/><file name="list.phtml" hash="ca3fe69215c58d832a425b3977f229b8"/><file name="view.phtml" hash="744f9797aeacee1ab2377d3ae7821737"/></dir></dir><file name="jsscipt.phtml" hash="fbf090d4dee8ce03cf95d5cdbe379f93"/><file name="product_form.phtml" hash="4a3fa6093693515ca8d5af9f97de7220"/><file name="view.phtml" hash="fead526b4986a555dca62fdfce0022d4"/></dir><dir name="product"><file name="addtocart.phtml" hash="e426aea53ffd9cba53b699fc40e11639"/><file name="list.phtml" hash="6aa2ea800dc50949554305b3c2b86388"/><dir name="view"><dir name="type"><file name="default.phtml" hash="aadbb2c724bc85e0271fd01bb6926877"/></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|