Shop_By_Brand_Vilpjsc - Version 1.1.3

Version Notes

Fix some bugs and add a new function to Helper Class.

Download this release

Release Info

Developer Magento Core Team
Extension Shop_By_Brand_Vilpjsc
Version 1.1.3
Comparing to
See all releases


Code changes from version 1.1.2 to 1.1.3

app/code/local/Vilpjsc/Brand/Helper/Data.php CHANGED
@@ -1,6 +1,5 @@
1
  <?php
2
 
3
-
4
  /**
5
  * Vilpjsc Brand
6
  *
@@ -8,7 +7,16 @@
8
  * @package Vilpjsc_Brand
9
  * @author An <an@Vilpjscusa.com>
10
  */
11
- class Vilpjsc_Brand_Helper_Data extends Mage_Core_Helper_Abstract
12
- {
 
 
 
 
 
 
 
 
 
13
 
14
  }
1
  <?php
2
 
 
3
  /**
4
  * Vilpjsc Brand
5
  *
7
  * @package Vilpjsc_Brand
8
  * @author An <an@Vilpjscusa.com>
9
  */
10
+ class Vilpjsc_Brand_Helper_Data extends Mage_Core_Helper_Abstract {
11
+
12
+ public function getBrandofProduct($_product) {
13
+ $attribute = $_product->getResource()->getAttribute("manufacturer");
14
+ if ($attribute->usesSource()) {
15
+ $options = $attribute->getSource()->getAllOptions(false);
16
+ if(is_numeric($options[0]['value']))
17
+ $brand = Mage::getModel("brand/brand")->load('manufacturer_option_id');
18
+ if($brand != NULL) return $brand;
19
+ }
20
+ }
21
 
22
  }
app/design/frontend/default/{default → zoovillage}/layout/brand.xml RENAMED
File without changes
app/design/frontend/default/{default → zoovillage}/template/brand/brand_info.phtml RENAMED
File without changes
app/design/frontend/default/{default → zoovillage}/template/brand/categorybrand.phtml RENAMED
File without changes
app/design/frontend/default/{default → zoovillage}/template/brand/index.phtml RENAMED
File without changes
package.xml CHANGED
@@ -1,18 +1,25 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shop_By_Brand_Vilpjsc</name>
4
- <version>1.1.2</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>Shop By Brand</summary>
10
- <description>Group your product by Brand name</description>
11
- <notes>Fix Edit Brand and XML layout.</notes>
 
 
 
 
 
 
 
12
  <authors><author><name>We Burn It</name><user>auto-converted</user><email>weburnittv@gmail.com</email></author></authors>
13
- <date>2011-10-03</date>
14
- <time>23:15:00</time>
15
- <contents><target name="magelocal"><dir name="Vilpjsc"><dir name="Brand"><dir name="Block"><dir name="Adminhtml"><dir name="Brand"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="a8ce7cfb49658d5bf7186569d8ec5af9"/></dir><file name="Form.php" hash="a2adb56e3ea97277088547f9b71e9af1"/><file name="Tabs.php" hash="5efb6e595d30536afa2d4a8e38d35a8b"/></dir><dir name="Grid"><dir name="Renderer"><file name="Arrange.php" hash="dbdd6573e2105280d4e7687e157bbe9c"/><file name="Image.php" hash="721de9b9eccac541737dc7a06af95aa3"/></dir></dir><file name="Edit.php" hash="e6c096481d92ef18527ea092998f8216"/><file name="Grid.php" hash="a0013fd52b382fc1983362c7ba1a2b65"/></dir><dir name="Tab"><dir name="Brand"><dir name="Renderer"><file name="Checkbox.php" hash="ab7596bb0dd186a1699c226b16dba076"/></dir></dir><file name="Brand.php" hash="db3db45c7f6142d6cfaa5e7533dbacb3"/></dir><file name="Brand.php" hash="bfd7a47137600b79aecc1852686b4a0e"/><file name="Tabs.php" hash="6c5674b87f2e32270d61a8f6289cb76e"/></dir><file name="Brand.php" hash="fcb1a83eff532365ea9f28bb38e663dd"/><file name="Brandinfo.php" hash="8b8224ae319a54e6a325e94b2e6ed3ba"/><file name="Category.php" hash="17f16d62d590017988c69dc7794ce32e"/><file name="Onbrand.php" hash="f1e8eeeda37b4b0b4c7c0aa312490d22"/></dir><dir name="Helper"><file name="Data.php" hash="675badc36ff79c07e8a45029ce04f902"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Brand"><file name="Collection.php" hash="aed1882a2deccfb34441a0b9c42b1443"/></dir><dir name="Category"><file name="Collection.php" hash="b6aea9d190da1c4726f26f4838e0c8a7"/></dir><file name="Brand.php" hash="a2cf81cba953ea515aad52163ff43401"/><file name="Category.php" hash="6804ea56d6c6b611eace7ca665021777"/></dir><file name="Brand.php" hash="dc03130d2682828d2d42690be5e877e5"/><file name="Category.php" hash="b8d7adf55972e7293e790c0d17a58eb1"/><file name="Categoryname.php" hash="e1b5f216aa1b1796014dec708e33c100"/><file name="Observer.php" hash="a3c2e8c5e9362b17d0a2df638c6ae2cd"/><file name="Status.php" hash="1c359ecd7c1e8e72e884191cca302f72"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BrandController.php" hash="d301233e6560b25e903afdc3cf570976"/></dir><file name="IndexController.php" hash="f864d56b2d7ad45269856f51861e71b0"/></dir><dir name="etc"><file name="config.xml" hash="bec2b2e348dfe6ff8e0ff33385048054"/></dir><dir name="sql"><dir name="brand_setup"><file name="mysql4-install-0.1.0.php" hash="ee1222e509f6b5f9f157ff5aeca07e79"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="1ceb98efe6b52ff256dd68805082b85e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vilpjsc_Brand.xml" hash="8b0112a53ff9d27603d014530b0b5e6a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="brand.xml" hash="b4411f55825b5675752bcdebbe761443"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="brand.xml" hash="7d2421a2a311421adc2963f4411f6029"/></dir><dir name="template"><dir name="brand"><file name="brand_info.phtml" hash="fba5be7f4aa39040ff240e70d3445683"/><file name="categorybrand.phtml" hash="205a3c4e27db817b5d2760e376b31f35"/><file name="index.phtml" hash="ff13a7d5a5aabdb85828428c76ea29f1"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Shop_By_Brand_Vilpjsc</name>
4
+ <version>1.1.3</version>
5
  <stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This is my first free Magento Extension. I hope that it could be interested with all you guys.</summary>
10
+ <description>&lt;p&gt;I hope that you could help me to implement language entire this Extension.&lt;/p&gt;&#xD;
11
+ &lt;p&gt;This plugin is currently developed entirely my project so It did not have any demo.&lt;/p&gt;&#xD;
12
+ &lt;p&gt;For more details, visit our company website:&lt;a title="Ecomerce Magento" href="http://www.e-commercemagento.com"&gt;E-commerce Magento&lt;/a&gt;&lt;/p&gt;&#xD;
13
+ &lt;p&gt;Features:&lt;/p&gt;&#xD;
14
+ &lt;p&gt;Add/Edit/Delete brand(manufacturer) attribute&lt;/p&gt;&#xD;
15
+ &lt;p&gt;Attach image for each brand name&lt;/p&gt;&#xD;
16
+ &lt;p&gt;Associate a brand name within a Category.&lt;/p&gt;&#xD;
17
+ &lt;p&gt;&lt;a href="http://www.e-commercemagento.com/plugin-extension/shop-by-brand-magento-extension/index.html"&gt;Follow this page to Config Shop By Brand Extension&lt;/a&gt;&lt;/p&gt;</description>
18
+ <notes>Fix some bugs and add a new function to Helper Class.</notes>
19
  <authors><author><name>We Burn It</name><user>auto-converted</user><email>weburnittv@gmail.com</email></author></authors>
20
+ <date>2011-10-09</date>
21
+ <time>14:47:54</time>
22
+ <contents><target name="magelocal"><dir name="Vilpjsc"><dir name="Brand"><dir name="Block"><dir name="Adminhtml"><dir name="Brand"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="a8ce7cfb49658d5bf7186569d8ec5af9"/></dir><file name="Form.php" hash="a2adb56e3ea97277088547f9b71e9af1"/><file name="Tabs.php" hash="5efb6e595d30536afa2d4a8e38d35a8b"/></dir><dir name="Grid"><dir name="Renderer"><file name="Arrange.php" hash="dbdd6573e2105280d4e7687e157bbe9c"/><file name="Image.php" hash="721de9b9eccac541737dc7a06af95aa3"/></dir></dir><file name="Edit.php" hash="e6c096481d92ef18527ea092998f8216"/><file name="Grid.php" hash="a0013fd52b382fc1983362c7ba1a2b65"/></dir><dir name="Tab"><dir name="Brand"><dir name="Renderer"><file name="Checkbox.php" hash="ab7596bb0dd186a1699c226b16dba076"/></dir></dir><file name="Brand.php" hash="db3db45c7f6142d6cfaa5e7533dbacb3"/></dir><file name="Brand.php" hash="bfd7a47137600b79aecc1852686b4a0e"/><file name="Tabs.php" hash="6c5674b87f2e32270d61a8f6289cb76e"/></dir><file name="Brand.php" hash="fcb1a83eff532365ea9f28bb38e663dd"/><file name="Brandinfo.php" hash="8b8224ae319a54e6a325e94b2e6ed3ba"/><file name="Category.php" hash="17f16d62d590017988c69dc7794ce32e"/><file name="Onbrand.php" hash="f1e8eeeda37b4b0b4c7c0aa312490d22"/></dir><dir name="Helper"><file name="Data.php" hash="d533aabcef6f6fa7e41f629befb5e5cb"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Brand"><file name="Collection.php" hash="aed1882a2deccfb34441a0b9c42b1443"/></dir><dir name="Category"><file name="Collection.php" hash="b6aea9d190da1c4726f26f4838e0c8a7"/></dir><file name="Brand.php" hash="a2cf81cba953ea515aad52163ff43401"/><file name="Category.php" hash="6804ea56d6c6b611eace7ca665021777"/></dir><file name="Brand.php" hash="dc03130d2682828d2d42690be5e877e5"/><file name="Category.php" hash="b8d7adf55972e7293e790c0d17a58eb1"/><file name="Categoryname.php" hash="e1b5f216aa1b1796014dec708e33c100"/><file name="Observer.php" hash="a3c2e8c5e9362b17d0a2df638c6ae2cd"/><file name="Status.php" hash="1c359ecd7c1e8e72e884191cca302f72"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BrandController.php" hash="d301233e6560b25e903afdc3cf570976"/></dir><file name="IndexController.php" hash="f864d56b2d7ad45269856f51861e71b0"/></dir><dir name="etc"><file name="config.xml" hash="bec2b2e348dfe6ff8e0ff33385048054"/></dir><dir name="sql"><dir name="brand_setup"><file name="mysql4-install-0.1.0.php" hash="ee1222e509f6b5f9f157ff5aeca07e79"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="1ceb98efe6b52ff256dd68805082b85e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Vilpjsc_Brand.xml" hash="8b0112a53ff9d27603d014530b0b5e6a"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="brand.xml" hash="b4411f55825b5675752bcdebbe761443"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="zoovillage"><dir name="layout"><file name="brand.xml" hash="7d2421a2a311421adc2963f4411f6029"/></dir><dir name="template"><dir name="brand"><file name="brand_info.phtml" hash="fba5be7f4aa39040ff240e70d3445683"/><file name="categorybrand.phtml" hash="205a3c4e27db817b5d2760e376b31f35"/><file name="index.phtml" hash="ff13a7d5a5aabdb85828428c76ea29f1"/></dir></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies/>
25
  </package>