Oscprofessionals_ProductEnquires - Version 1.1.0

Version Notes

Locale Translate file added

Download this release

Release Info

Developer Satish Mantri
Extension Oscprofessionals_ProductEnquires
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.2 to 1.1.0

app/code/community/Oscprofessionals/ProductEnquiry/Block/ProductEnquiry.php CHANGED
@@ -35,7 +35,7 @@ class Oscprofessionals_ProductEnquiry_Block_ProductEnquiry extends Mage_Core_Blo
35
 
36
  $breadcrumbs->addCrumb('product', array('label' => $productName, 'title' => $productName, 'link' => $product->getProductUrl()));
37
 
38
- $breadcrumbs->addCrumb('enquiry', array('label' => 'Ask a Question', 'title' => 'Ask a Question'));
39
 
40
  $this->getLayout()->getBlock('breadcrumbs')->toHtml();
41
 
35
 
36
  $breadcrumbs->addCrumb('product', array('label' => $productName, 'title' => $productName, 'link' => $product->getProductUrl()));
37
 
38
+ $breadcrumbs->addCrumb('enquiry', array('label' => $this->__('Ask a Question') , 'title' => $this->__('Ask a Question')));
39
 
40
  $this->getLayout()->getBlock('breadcrumbs')->toHtml();
41
 
app/code/community/Oscprofessionals/ProductEnquiry/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <Oscprofessionals_ProductEnquiry>
14
- <version>1.0.2</version>
15
  </Oscprofessionals_ProductEnquiry>
16
  </modules>
17
  <frontend>
@@ -31,6 +31,15 @@
31
  </productenquiry>
32
  </updates>
33
  </layout>
 
 
 
 
 
 
 
 
 
34
  </frontend>
35
  <admin>
36
  <routers>
11
  <config>
12
  <modules>
13
  <Oscprofessionals_ProductEnquiry>
14
+ <version>1.1.0</version>
15
  </Oscprofessionals_ProductEnquiry>
16
  </modules>
17
  <frontend>
31
  </productenquiry>
32
  </updates>
33
  </layout>
34
+ <translate>
35
+ <modules>
36
+ <Oscprofessionals_ProductEnquiry>
37
+ <files>
38
+ <default>Oscprofessionals_ProductEnquiry.csv</default>
39
+ </files>
40
+ </Oscprofessionals_ProductEnquiry>
41
+ </modules>
42
+ </translate>
43
  </frontend>
44
  <admin>
45
  <routers>
app/design/frontend/base/default/template/oscprofessionals/productenquiry/enquirydisplay.phtml_org DELETED
@@ -1,41 +0,0 @@
1
- <?php
2
- /**
3
- *
4
- * @category Oscprofessionals
5
- * @package Oscprofessionals_ProductEnquiry
6
- * @author Oscprofessionals Team<oscpteam@oscprofessionals.com>
7
- *
8
- */
9
- ?>
10
- <?php $_customer = Mage::getSingleton('customer/session')->isLoggedIn();?>
11
- <?php $_customerId = Mage::helper('customer')->getCustomer()->getId();?>
12
- <?php $_customerName = Mage::helper('customer')->getCustomerName();?>
13
- <?php $_currentProduct = Mage::registry('current_product'); ?>
14
- <?php $_productId = $_currentProduct->getId(); ?>
15
- <div class="collapsible mobile-collapsible">
16
- <h1 class="block-title heading"><?php echo $this->__('Questions About :'); ?>
17
- <?php echo $_productName = $_currentProduct->getName(); ?>
18
- <span><?php $_enquiryCount = Mage::helper('oscpproductenquiry')->getEnquiryCount($_productId); ?>
19
- <?php echo '(' . $_enquiryCount . ')'; ?></span>
20
- </h1>
21
- <div class="block-content">
22
- <p><?php echo $this->__('We\'re here to help: to ask a question click'); ?>&nbsp;<a href="<?php if ($_customer): ?><?php echo $this->getUrl("productenquiry/index/index/", array('id' => $_productId)) ?><?php else: ?><?php echo $this->getUrl("customer/account/login/"); ?><?php endif; ?>"><?php echo $this->__('here'); ?></a><?php echo $this->__('. We\'ll post it on this page once our review team gives it the go-ahead.'); ?></p>
23
- <input type="hidden" value="<?php $_currentProduct->getId(); ?>"/>
24
- <?php $_productEnquiry = Mage::helper('oscpproductenquiry')->getEnquiryDetails($_productId);?>
25
-
26
- <?php foreach ($_productEnquiry as $_collectionItem):?>
27
- <div class="ask-question-post">
28
- <div class="create-post">
29
- <?php
30
- $_createdDate = explode(" ", $_collectionItem->getUpdatedAt());
31
- @list($_year, $_date, $_month) = explode('-', $_createdDate[0]);
32
- $_today = date("d M Y", mktime(0, 0, 0, $_date, $_month, $_year));
33
- ?>
34
- <div class="cust-name"><?php echo $_collectionItem->getName(); ?></div>
35
- <div class="date"><?php echo $_today; ?></div>
36
- <div class="comment"><?php echo $_collectionItem->getQuestion(); ?></div>
37
- </div>
38
- </div>
39
- <?php endforeach; ?>
40
- </div>
41
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/oscprofessionals/productenquiry/org_modelform.phtml DELETED
@@ -1,64 +0,0 @@
1
- <?php
2
- /**
3
- *
4
- * @category Oscprofessionals
5
- * @package Oscprofessionals_ProductEnquiry
6
- * @author Oscprofessionals Team<oscpteam@oscprofessionals.com>
7
- *
8
- */
9
- ?>
10
- <?php $_loginStatus = Mage::getSingleton('customer/session')->isLoggedIn(); ?>
11
- <?php if ($_loginStatus) : ?>
12
- <?php /* Get the customer data */ ?>
13
- <?php $_customer = Mage::getSingleton('customer/session')->getCustomer(); ?>
14
- <?php endif; ?>
15
- <?php $_id = explode("/", $this->getRequest()->getParam('id'));?>
16
- <?php $_product = $this->helper('oscpproductenquiry')->getProduct($_id[0]);?>
17
- <?php $_productName = $_product->getName();?>
18
- <?php $_productEnquiry = Mage::helper('oscpproductenquiry')->getEnquiryDetails($_product->getId()); ?>
19
- <div class="product-enq-block">
20
- <form action="<?php echo $this->getUrl('productenquiry/index/post/'); ?>" id="modelForm" name="modelForm" method="post" enctype="multipart/form-data">
21
- <div class="product-enq-title">
22
- <h1><?php echo $this->__('You are asking a Question About :'); ?>
23
- <?php echo $_product->getName(); ?>
24
- </h1>
25
- <p><?php echo $this->__('We&apos;re here to help. We&apos;ll post it on this product page once our review team gives it the go-ahead.'); ?>
26
- </p>
27
- <input type="hidden" name="product_id" value="<?php echo $_id[0]; ?>"/>
28
- <input type="hidden" name="product_name" value="<?php echo $_productName; ?>"/>
29
- </div>
30
- <div class="other-content ">
31
- <div class="contact-details">
32
- <div class="field">
33
- <label for="name" class="text required"><?php echo Mage::helper('oscpproductenquiry')->__('Name') ?><em>*</em></label>
34
- <div class="input-box">
35
- <input name="name" id="name" value="<?php if ($_loginStatus): ?><?php echo $this->htmlEscape($_customer->getFirstname()); ?><?php else: ?><?php echo $this->htmlEscape(''); ?><?php endif ?>" title="<?php echo Mage::helper('oscpproductenquiry')->__('Name') ?>" class="input-text required-entry" type="text" />
36
- </div>
37
- </div>
38
- <div class="field">
39
- <label for="email" class="required"><?php echo Mage::helper('oscpproductenquiry')->__('Email Address') ?><em>*</em></label>
40
- <div class="input-box">
41
- <input name="email" id="email" value="<?php if ($_loginStatus): ?><?php echo $this->htmlEscape($_customer->getEmail()); ?><?php else: ?><?php echo $this->htmlEscape(''); ?><?php endif ?>" title="<?php echo Mage::helper('oscpproductenquiry')->__('Email Address ') ?>" class="input-text required-entry validate-email" type="text" />
42
- </div>
43
- </div>
44
- <div class="field">
45
- <label for="question" class="text required"><?php echo Mage::helper('oscpproductenquiry')->__('Question') ?><em>*</em></label>
46
- <div class="input-box">
47
- <textarea name="question" id="question" title="<?php echo Mage::helper('oscpproductenquiry')->__('Question') ?>" class="required-entry input-text" cols="5" rows="3"></textarea>
48
- </div>
49
- </div>
50
- </div>
51
- <div class="button-set">
52
- <button type="submit" title="<?php echo Mage::helper('oscpproductenquiry')->__('Send Question') ?>" class="button"><span><span><?php echo Mage::helper('oscpproductenquiry')->__('Send Question') ?></span></span></button>
53
- </div>
54
- <p class="required"><span>*</span><?php echo Mage::helper('oscpproductenquiry')->__('Required fields') ?></p>
55
- <div style="clear:both; height:0;"></div>
56
- </div>
57
- </form>
58
- </div>
59
- <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd', 'even', 'first', 'last'])</script>
60
- <script type="text/javascript">
61
- //<![CDATA[
62
- var modelForm = new VarienForm('modelForm', true);
63
- //]]>
64
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/locale/en_US/Oscprofessionals_ProductEnquiry.csv ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Questions About :","Questions About :"
2
+ "We\'re here to help: to ask a question click","We're here to help: to ask a question click"
3
+ "here","here"
4
+ ". We\'ll post it on this page once our review team gives it the go-ahead.",". We\'ll post it on this page once our review team gives it the go-ahead."
5
+ "Date: ","Date: "
6
+ "Q: ","Q: "
7
+ "Store Owner ","Store Owner "
8
+ "Answer: ","Answer: "
9
+ "Ask a Question","Ask a Question"
10
+ "You are asking a Question About :","You are asking a Question About :"
11
+ "We&apos;re here to help. We&apos;ll post it on this product page once our review team gives it the go-ahead.","We&apos;re here to help. We&apos;ll post it on this product page once our review team gives it the go-ahead."
12
+ "Customers Also Bought","Customers Also Bought"
13
+
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Oscprofessionals_ProductEnquires</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -14,11 +14,11 @@ While buying product online, mostly customers have many doubt and questions and
14
  Thus to resolve this problem, product Enquiry extension is used. Its act same like your customer care center for your online shopping. If the customer satisfies by getting their question&amp;#x2019;s answered, customer won&amp;#x2019;t hesitate to buy the product. &amp;#xD;&#xD;
15
  &amp;#xD;&#xD;
16
  This feature is added to delight the customer by adding the additional advantage by solving the queries and questions of customers. It simplifies the decision making of the customer about the product.</description>
17
- <notes>Email template added</notes>
18
  <authors><author><name>Satish Mantri</name><user>oscprof</user><email>satish@oscprofessionals.com</email></author></authors>
19
- <date>2015-09-28</date>
20
- <time>09:04:27</time>
21
- <contents><target name="magecommunity"><dir name="Oscprofessionals"><dir name="ProductEnquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Productenquiry"><dir name="Edit"><file name="Form.php" hash="70768798a3db6e9cb3edd4377881fa92"/><dir name="Tab"><file name="Form.php" hash="723e37cc0fa286601de06b8ae7b9551c"/></dir><file name="Tabs.php" hash="d6e6c2b95d060e0a0a0a8be8dd1125f5"/></dir><file name="Edit.php" hash="23c67db7f45d9d9956630626327128a9"/><file name="Grid.php" hash="463d3c3f95251a5e6444a13d2a321a73"/></dir><file name="Productenquiry.php" hash="fdf956dba08ee02b01915895973e93fb"/><file name="Version.php" hash="ced17f326a12f542a49888f07b31bacd"/></dir><file name="Edit.php" hash="9a8536fc26dd5eb839e20370ba138a47"/><file name="ProductEnquiry.php" hash="9c63a502eefa900ce571cf1e77cf1cfb"/></dir><dir name="Helper"><file name="Data.php" hash="3e21d26792255a3177f46f757fe6dccd"/></dir><dir name="Model"><file name="Productenquiry.php" hash="f6fd15fbf336ac37fe5bc81a8e853889"/><dir name="Resource"><dir name="Productenquiry"><file name="Collection.php" hash="019681b27898cf314b2751c078773b1a"/></dir><file name="Productenquiry.php" hash="f7a9dcb648e8341aed410e9314e03381"/></dir><file name="Status.php" hash="c42d1ef7fb9fc041c9b2946c0c54b2f6"/></dir><dir name="controllers"><file name="AccountController.php" hash="b5ec1b2d0fffc4cf454f44b259c067f0"/><dir name="Adminhtml"><file name="ProductenquiryController.php" hash="6c3a0202c1efa25f6add5622821ab922"/></dir><file name="IndexController.php" hash="5c4ab5afa40e9c5617d7bbd41f1350e6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5bca418cc8f6229b0c2f0d8cac6e93fa"/><file name="config.xml" hash="09764d860e421fe6cc8fdb6c68258f49"/><file name="system.xml" hash="64c22bf0c2efa83af3449b6f8d8349c1"/></dir><dir name="sql"><dir name="productenquiry_setup"><file name="install-1.0.0.php" hash="f029faacf2775a789648966cef4ad20f"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oscprofessionals"><dir name="productenquiry"><file name="enquirydisplay.phtml" hash="98235c6b76674b6c9babcbbec79cc8e0"/><file name="enquirydisplay.phtml_org" hash="75d3f27d63cc2a725ec7e3ef96835c74"/><file name="modelform.phtml" hash="a26fedd1c4f7fbaed1daf945c2da11ca"/><file name="org_modelform.phtml" hash="6753f5c81c91b258214c9bc276d88bbb"/></dir></dir></dir><dir name="layout"><dir name="oscprofessionals"><file name="productenquiry.xml" hash="bc4e19457ed963673d667e2b353073cf"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="oscprofessionals"><dir name="productenquiry"><file name="form.phtml" hash="96896b54032a8855b80012981734c821"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="oscprofessionals"><file name="productenquiry.xml" hash=""/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oscprofessionals_ProductEnquiry.xml" hash="815293361a43c88eea862a786736ae06"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="oscprofessionals"><file name="productenquiry.html" hash="1ed255d80be3ce7cc6a175b52b5e5c3b"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="oscprofessionals"><dir name="productenquiry"><file name="productenquiry.css" hash="694a1b72e696dd2f629d971c71f6d4ff"/></dir></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Oscprofessionals_ProductEnquires</name>
4
+ <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
14
  Thus to resolve this problem, product Enquiry extension is used. Its act same like your customer care center for your online shopping. If the customer satisfies by getting their question&amp;#x2019;s answered, customer won&amp;#x2019;t hesitate to buy the product. &amp;#xD;&#xD;
15
  &amp;#xD;&#xD;
16
  This feature is added to delight the customer by adding the additional advantage by solving the queries and questions of customers. It simplifies the decision making of the customer about the product.</description>
17
+ <notes>Locale Translate file added</notes>
18
  <authors><author><name>Satish Mantri</name><user>oscprof</user><email>satish@oscprofessionals.com</email></author></authors>
19
+ <date>2015-10-08</date>
20
+ <time>10:44:06</time>
21
+ <contents><target name="magecommunity"><dir name="Oscprofessionals"><dir name="ProductEnquiry"><dir name="Block"><dir name="Adminhtml"><dir name="Productenquiry"><dir name="Edit"><file name="Form.php" hash="70768798a3db6e9cb3edd4377881fa92"/><dir name="Tab"><file name="Form.php" hash="723e37cc0fa286601de06b8ae7b9551c"/></dir><file name="Tabs.php" hash="d6e6c2b95d060e0a0a0a8be8dd1125f5"/></dir><file name="Edit.php" hash="23c67db7f45d9d9956630626327128a9"/><file name="Grid.php" hash="463d3c3f95251a5e6444a13d2a321a73"/></dir><file name="Productenquiry.php" hash="fdf956dba08ee02b01915895973e93fb"/><file name="Version.php" hash="ced17f326a12f542a49888f07b31bacd"/></dir><file name="Edit.php" hash="9a8536fc26dd5eb839e20370ba138a47"/><file name="ProductEnquiry.php" hash="48402d863e0526aaba414d377c937590"/></dir><dir name="Helper"><file name="Data.php" hash="3e21d26792255a3177f46f757fe6dccd"/></dir><dir name="Model"><file name="Productenquiry.php" hash="f6fd15fbf336ac37fe5bc81a8e853889"/><dir name="Resource"><dir name="Productenquiry"><file name="Collection.php" hash="019681b27898cf314b2751c078773b1a"/></dir><file name="Productenquiry.php" hash="f7a9dcb648e8341aed410e9314e03381"/></dir><file name="Status.php" hash="c42d1ef7fb9fc041c9b2946c0c54b2f6"/></dir><dir name="controllers"><file name="AccountController.php" hash="b5ec1b2d0fffc4cf454f44b259c067f0"/><dir name="Adminhtml"><file name="ProductenquiryController.php" hash="6c3a0202c1efa25f6add5622821ab922"/></dir><file name="IndexController.php" hash="5c4ab5afa40e9c5617d7bbd41f1350e6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5bca418cc8f6229b0c2f0d8cac6e93fa"/><file name="config.xml" hash="ba96ba21fe7d17618567528daf761827"/><file name="system.xml" hash="64c22bf0c2efa83af3449b6f8d8349c1"/></dir><dir name="sql"><dir name="productenquiry_setup"><file name="install-1.0.0.php" hash="f029faacf2775a789648966cef4ad20f"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oscprofessionals"><dir name="productenquiry"><file name="enquirydisplay.phtml" hash="98235c6b76674b6c9babcbbec79cc8e0"/><file name="modelform.phtml" hash="a26fedd1c4f7fbaed1daf945c2da11ca"/></dir></dir></dir><dir name="layout"><dir name="oscprofessionals"><file name="productenquiry.xml" hash="bc4e19457ed963673d667e2b353073cf"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="oscprofessionals"><dir name="productenquiry"><file name="form.phtml" hash="96896b54032a8855b80012981734c821"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="oscprofessionals"><file name="productenquiry.xml" hash=""/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oscprofessionals_ProductEnquiry.xml" hash="815293361a43c88eea862a786736ae06"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Oscprofessionals_ProductEnquiry.csv" hash="b67b0d5c3df4246f9f06712c79d1b60e"/><dir name="template"><dir name="email"><dir name="oscprofessionals"><file name="productenquiry.html" hash="1ed255d80be3ce7cc6a175b52b5e5c3b"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="oscprofessionals"><dir name="productenquiry"><file name="productenquiry.css" hash="694a1b72e696dd2f629d971c71f6d4ff"/></dir></dir></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
24
  </package>