cart_inquiry - Version 1.0.2

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
5. For custom theme place files at specific path.

Download this release

Release Info

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


Code changes from version 1.0.1 to 1.0.2

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
+ }?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cart_inquiry</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -36,10 +36,10 @@ Support Email: manish@ranosys.com&#xD;
36
  3. Configured email and title.&#xD;
37
  4. See results on cart page&#xD;
38
  5. For custom theme place files at specific path.</notes>
39
- <authors><author><name>Manish Mittal</name><user>ranosysmanish</user><email>manish@ranosys.com</email></author><author><name>Hanu Gupta</name><user>hanu</user><email>hanu@ranosys.com</email></author><author><name>Vivek Chaturvedi</name><user>ranovivek</user><email>vivek@ranosys.com</email></author></authors>
40
  <date>2015-04-09</date>
41
- <time>18:15:41</time>
42
- <contents><target name="magecommunity"><dir name="Ranosys"><dir name="Inquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Inquiry"><dir name="Edit"><file name="Form.php" hash="84050d92abb9a1b0c1e9d11752e28ead"/><dir name="Tab"><file name="Form.php" hash="bc2b5b0fb69fc9ede7a34dbe3cacd74a"/></dir><file name="Tabs.php" hash="c94d16ceb1cf389749c6c5e02f8801f8"/></dir><file name="Edit.php" hash="516b50058262d7bb16d16df23cb733d9"/><file name="Grid.php" hash="f8668c2a14621b86b0443a5030032897"/></dir><file name="Inquiry.php" hash="252911329e2a7e192a5db1fdd53f7979"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7cd99f4ac52e4980194c039b1d79598c"/><file name="Data.php~" hash="b7cfd638af670216c7bdc4a1a2db600d"/></dir><dir name="Model"><file name="Information.php~" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Inquiry.php" hash="9301d8ba19e6af3e57dc08c637d796a9"/><dir name="Mysql4"><file name="Information.php~" hash="37a0865a62f25f684a6bd92e870e556d"/><dir name="Inquiry"><file name="Collection.php" hash="2f39db1876e424125bd4f871baf82b55"/><file name="Collection.php~" hash="1d5e42748311bb1adac7c602c8657b1f"/></dir><file name="Inquiry.php" hash="da71478527a4bfb5b2f0fad0943bdf81"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InquiryController.php" hash="33ef8b072a239ca776c77a2e8edc5b58"/></dir><file name="IndexController.php" hash="608da48bc9f5050f8b9dd5a622bbf60c"/><file name="IndexController.php~" hash="9854866ff055d53565d2acd4b4890d72"/></dir><dir name="etc"><file name="config.xml" hash="165557a9aa596e1cc30fe506e2a60b03"/><file name="system.xml" hash="f6e56ee2839de36f6bb14600dc02b36c"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="f7b2c447a8e88a74c22edd0f406547e4"/></dir><file name="mysql4-install-0.1.0.php~" hash="e041c85ffc560a173e24375a6f62d930"/></dir></dir></dir></target><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></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>
43
  <compatible/>
44
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
45
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cart_inquiry</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
36
  3. Configured email and title.&#xD;
37
  4. See results on cart page&#xD;
38
  5. For custom theme place files at specific path.</notes>
39
+ <authors><author><name>Manish Mittal</name><user>ranosysmanish</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>
40
  <date>2015-04-09</date>
41
+ <time>18:45:00</time>
42
+ <contents><target name="magecommunity"><dir name="Ranosys"><dir name="Inquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Inquiry"><dir name="Edit"><file name="Form.php" hash="84050d92abb9a1b0c1e9d11752e28ead"/><dir name="Tab"><file name="Form.php" hash="bc2b5b0fb69fc9ede7a34dbe3cacd74a"/></dir><file name="Tabs.php" hash="c94d16ceb1cf389749c6c5e02f8801f8"/></dir><file name="Edit.php" hash="516b50058262d7bb16d16df23cb733d9"/><file name="Grid.php" hash="f8668c2a14621b86b0443a5030032897"/></dir><file name="Inquiry.php" hash="252911329e2a7e192a5db1fdd53f7979"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7cd99f4ac52e4980194c039b1d79598c"/><file name="Data.php~" hash="b7cfd638af670216c7bdc4a1a2db600d"/></dir><dir name="Model"><file name="Information.php~" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Inquiry.php" hash="9301d8ba19e6af3e57dc08c637d796a9"/><dir name="Mysql4"><file name="Information.php~" hash="37a0865a62f25f684a6bd92e870e556d"/><dir name="Inquiry"><file name="Collection.php" hash="2f39db1876e424125bd4f871baf82b55"/><file name="Collection.php~" hash="1d5e42748311bb1adac7c602c8657b1f"/></dir><file name="Inquiry.php" hash="da71478527a4bfb5b2f0fad0943bdf81"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InquiryController.php" hash="33ef8b072a239ca776c77a2e8edc5b58"/></dir><file name="IndexController.php" hash="608da48bc9f5050f8b9dd5a622bbf60c"/><file name="IndexController.php~" hash="9854866ff055d53565d2acd4b4890d72"/></dir><dir name="etc"><file name="config.xml" hash="165557a9aa596e1cc30fe506e2a60b03"/><file name="system.xml" hash="f6e56ee2839de36f6bb14600dc02b36c"/></dir><dir name="sql"><dir name="inquiry_setup"><file name="mysql4-install-0.1.0.php" hash="f7b2c447a8e88a74c22edd0f406547e4"/></dir><file name="mysql4-install-0.1.0.php~" hash="e041c85ffc560a173e24375a6f62d930"/></dir></dir></dir></target><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>
43
  <compatible/>
44
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
45
  </package>