cart_inquiry - Version 1.0.0

Version Notes

After installing extension Follow below points:
1. Refresh all cache from admin panel.
2. Enable extension from setting tab
3. Configured email and title.
4. See results on cart page

Download this release

Release Info

Developer Manish Mittal
Extension cart_inquiry
Version 1.0.0
Comparing to
See all releases


Version 1.0.0

app/design/frontend/base/default/layout/inquiry.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <inquiry_index_index>
4
+ <reference name="content">
5
+ <block type="core/template" name="inquiry" template="inquiry/inquiry.phtml" />
6
+ </reference>
7
+ </inquiry_index_index>
8
+ </layout>
app/design/frontend/base/default/layout/local.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <layout version="0.1.0">
2
+ <checkout_cart_index translate="label">
3
+ <reference name="content">
4
+ <block type="core/template" name="inquiry">
5
+ <action method="setTemplate"><value>inquiry/inquiry.phtml</value></action>
6
+ </block>
7
+ </reference>
8
+ </checkout_cart_index>
9
+ </layout>
10
+
app/design/frontend/base/default/template/inquiry/inquiry.phtml ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Cart inquiry
4
+ *
5
+ * @category Ranosys
6
+ * @package Ranosys_Inquiry
7
+ * @author Ranosys Technologies Pvt. Ltd.
8
+ */
9
+ ?>
10
+ <?php
11
+ $enableorDisable = Mage::getStoreConfig('ranosys/ranosys_group/ranosys_enabledisable',Mage::app()->getStore());
12
+
13
+ if($enableorDisable==1){
14
+ $cart_qty = (int) Mage::getModel('checkout/cart')->getQuote()->getItemsQty();
15
+ if($cart_qty)
16
+ {
17
+ $itemsCollection = Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection();
18
+ $itemsVisible = Mage::getSingleton('checkout/session')->getQuote()->getAllVisibleItems();
19
+ $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems();
20
+
21
+ foreach($items as $item) {
22
+ $product['id'][]=$item->getProductId();
23
+ $product['name'][]=$item->getName();
24
+ $product['sku'][]=$item->getSku();
25
+ }
26
+ $productId=implode(',',$product['id']);
27
+ $productName=implode(',',$product['name']);
28
+ $productSku=implode(',',$product['sku']);
29
+ ?>
30
+ <div id="messages"><?php //echo $this->getMessagesBlock()->toHtml() ?></div>
31
+ <div class="page-title">
32
+ <?php
33
+ $cartTittle = Mage::getStoreConfig('ranosys/ranosys_group/ranosys_input',Mage::app()->getStore());
34
+ if($cartTittle!=''){
35
+ $tittle=$cartTittle;
36
+ }
37
+ else{
38
+ $tittle=Mage::helper('inquiry')->__('Cart Inquiry');
39
+ }?>
40
+ <h1><?php echo $tittle ?></h1>
41
+ </div>
42
+ <form action="<?php echo $this->getUrl('inquiry/index/save') ?>" id="inquiryForm" method="post" class="scaffold-form">
43
+ <div class="fieldset">
44
+ <p class="required"><?php echo Mage::helper('inquiry')->__('* Required Fields') ?></p>
45
+ <ul class="form-list">
46
+ <li class="fields">
47
+ <div class="field">
48
+ <label for="firstname" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('First Name') ?></label>
49
+ <div class="input-box">
50
+ <input name="firstname" id="firstname" title="<?php echo Mage::helper('inquiry')->__('First Name') ?>" value="" class="input-text required-entry validate-alpha" type="text" />
51
+ </div>
52
+ </div>
53
+ <div class="field">
54
+ <label for="lastname" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Last Name') ?></label>
55
+ <div class="input-box">
56
+ <input name="lastname" id="lastname" title="<?php echo Mage::helper('inquiry')->__('Last Name') ?>" value="" class="input-text required-entry validate-alpha" type="text" />
57
+ </div>
58
+ </div>
59
+ <div class="field">
60
+ <label for="email" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Email') ?></label>
61
+ <div class="input-box">
62
+ <input name="email" id="email" title="<?php echo Mage::helper('inquiry')->__('Email') ?>" value="" class="input-text required-entry validate-email" type="email" autocapitalize="off" autocorrect="off" spellcheck="false" />
63
+ </div>
64
+ </div>
65
+ </li>
66
+ <li>
67
+ <label for="phone"><?php echo Mage::helper('inquiry')->__('Phone') ?></label>
68
+ <div class="input-box">
69
+ <input name="phone" id="phone" title="<?php echo Mage::helper('inquiry')->__('Phone') ?>" value="" class="input-text" type="text" />
70
+ </div>
71
+ </li>
72
+ <li class="wide">
73
+ <label for="message" class="required"><em>*</em><?php echo Mage::helper('inquiry')->__('Message') ?></label>
74
+ <div class="input-box">
75
+ <textarea name="message" id="message" title="<?php echo Mage::helper('inquiry')->__('Message') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
76
+ </div>
77
+ </li>
78
+ </ul>
79
+ </div>
80
+ <input type="hidden" name="productId" value="<?php echo $productId; ?>">
81
+ <input type="hidden" name="productName" value="<?php echo $productName;?>">
82
+ <input type="hidden" name="productSku" value="<?php echo $productSku;?>">
83
+ <div class="buttons-set">
84
+ <input type="text" name="hideit" id="hideit" value="" style="display:none !important;" />
85
+ <button type="submit" title="<?php echo Mage::helper('inquiry')->__('Submit') ?>" class="button" style="float: left !important;"><span><span><?php echo Mage::helper('inquiry')->__('Submit') ?></span></span></button>
86
+ </div>
87
+ </form>
88
+ <script type="text/javascript">
89
+ //<![CDATA[
90
+ var contactForm = new VarienForm('inquiryForm', true);
91
+ //]]>
92
+ </script>
93
+ <?php }
94
+
95
+ }?>
app/etc/modules/Ranosys_Inquiry.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Ranosys_Inquiry>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Ranosys_Inquiry>
8
+ </modules>
9
+ </config>
app/locale/en_US/template/email/inquiry_template.html ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject This is the subject line of the email! @-->
2
+ <div style="font:normal;">
3
+
4
+ <table width="100%" cellpadding="0" cellspacing="0" border="0" id="background-table">
5
+ <p style="f">
6
+ Hi Admin,<br/><br/>
7
+ {{var firstName}} wants to inquiry cart products. As information given below:<br/><br/>
8
+ </p>
9
+ <tr>
10
+ <td align="center" valign="top">
11
+ <table cellpadding="0" cellspacing="0" border="0" align="left" class="container-table" >
12
+ <tr>
13
+ <td style="width: 20%">
14
+ Name:
15
+ </td>
16
+ <td>
17
+ {{var firstName}}
18
+ </td>
19
+ </tr>
20
+ <tr>
21
+ <td style="width: 20%">
22
+ Product Id:
23
+ </td>
24
+ <td>
25
+ {{var productId}}
26
+ </td>
27
+ </tr>
28
+ <tr>
29
+ <td style="width: 20%">
30
+ Product Name:
31
+ </td>
32
+ <td>
33
+ {{var productName}}
34
+ </td>
35
+ </tr>
36
+ <tr>
37
+ <td style="width: 20%">
38
+ Product SKU:
39
+ </td>
40
+ <td>
41
+ {{var productSku}}
42
+ </td>
43
+ </tr>
44
+ <tr>
45
+ <td style="width: 20%">
46
+ Message:
47
+ </td>
48
+ <td>
49
+ {{var message}}
50
+ </td>
51
+ </tr>
52
+ </table>
53
+
54
+ </td>
55
+ </tr>
56
+ </table><br/>
57
+ Thank you!
58
+ </div>
package.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>cart_inquiry</name>
4
+ <version>1.0.0</version>
5
+ <stability>stable</stability>
6
+ <license>GPL</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Cart Inquiry extension useful to submit inquiry about cart products to store owner.</summary>
10
+ <description>Cart Inquiry extension provides the facility to your user can ask question and submit inquiry about cart products. Cart inquiry extension useful for B2B websites and to send the cart summary to store owner. It also saves the inquiry in the database and owner can see all inquiry into admin panel.&#xD;
11
+ &#xD;
12
+ Cart inquiry extension features:&#xD;
13
+ &#xD;
14
+ 1. Customers can inquiry from cart page.&#xD;
15
+ &#xD;
16
+ 2. Once they submit the cart inquiry form, customer will receive success message.&#xD;
17
+ &#xD;
18
+ 3. This information will be saved into database, an email will also be sent to the store owner.&#xD;
19
+ &#xD;
20
+ 4. Admin can see all the inquiry in the admin panel.&#xD;
21
+ &#xD;
22
+ 5. All inquires are gathered into new tab Cart Inquiry.&#xD;
23
+ &#xD;
24
+ 6. From setting tab you can enable/disable extension.&#xD;
25
+ &#xD;
26
+ 7. You have option to configured email from setting tab for getting inquiries.&#xD;
27
+ &#xD;
28
+ 8. You can set title for cart inquiry form from setting tab. &#xD;
29
+ &#xD;
30
+ Support Email: manish@ranosys.com&#xD;
31
+ &#xD;
32
+ </description>
33
+ <notes>After installing extension Follow below points:&#xD;
34
+ 1. Refresh all cache from admin panel.&#xD;
35
+ 2. Enable extension from setting tab&#xD;
36
+ 3. Configured email and title.&#xD;
37
+ 4. See results on cart page</notes>
38
+ <authors><author><name>Manish Mittal</name><user>ranomanish</user><email>manish@ranosys.com</email></author><author><name>Hanu Gupta</name><user>ranohanu</user><email>hanu@ranosys.com</email></author><author><name>Vivek Chaturvedi</name><user>ranoVivek</user><email>vivek@ranosys.com</email></author></authors>
39
+ <date>2015-03-23</date>
40
+ <time>17:17:04</time>
41
+ <contents><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="inquiry.xml" hash="2e771abf63301133d470cec8d1c58d49"/><file name="local.xml" hash="16dc8d0a4e7e224cb6e47f92baa1aee0"/></dir><dir name="template"><dir name="inquiry"><file name="inquiry.phtml" hash="2d021f428679542cb3f1351d984fd306"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ranosys_Inquiry.xml" hash="1f12b2bb10c991f5da5d8f391fa3b795"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="inquiry_template.html" hash="78238ff907c5d822485d138fd3204a46"/></dir></dir></dir></target></contents>
42
+ <compatible/>
43
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
44
+ </package>