Sunday, January 31

Best ways to promote your Magento Extensions


Top 10 ways to Promote your Magento Extensions.

1. Submit the extensions in Magento Connect. Magento market place(Magento connect) played a major role on promoting the Magento extensions.

2. Create a separate Store to sell the Magneto extensions. Because customer can't purchase the paid modules directly from Magento Connect.

3. Participate various forums and submit the Magento extensions links. Forums are a great way to spread the word across the globe.

4. Write a detailed description about the extensions with HQ screen shot in Magento connect as well as your store.

5. Become a Industry partner in Magento to positioned the extension in top of the search results in Search Engines.

6. Get reviews from the customer also very important one. Great customer reviews helps to promote the Magento Extensions.

7. Sharing the Magento Extensions in various social website Like Facebook, Twitter, LinkedIn, etc.. Building and Maintaining the professional Business Page 
in social media will helps to promote the Magneto Extensions.

8. Create a Demo website for the both Frontend and Backend. Make a Videos of the extension so that customer can well understand about the modules.

9. Write a blog about the Magneto Extension and promote it in various social media websites.

10. Write more guest blogging about your Magneto Extension will also helps a lot to promote your Magento Extensions. 
               

Friday, January 22

Magento2 How to get custom attribute value in Product View page


In Magento2 product detail page you can able to see the product description, short description, price, etc.. these are all the attributes already exists in Magento. But every business may need some more additional attribute based on their products. let's say if you want to create additional attribute and you want to show those attributes in product view page, you need to follow the below steps.

Let's assume I want to specify the product warranty in product detail page.

Step 1 : Create a new attribute 'warranty' in Magento back end under STORES->Attributes->Product.

Step 2 : Assign the newly created attribute 'warranty' to the default attribute set. You can see the attribute set option under STORES->Attributes->Attribute set.
I assume you already know how to create and assign the attribute to attribute set. So we don't want to go deeper.

Step 3: Now we can able to see the attribute while creating the products. we can give whatever value for the attribute.

Step 4: Edit the catalog_product_view.xml file and update the below content. you can add this section inside the product.info.main container. you can add your block next to product.info.overview block. So it will be shown next to the short description.



getWarranty
warranty
warranty 
warranty 
itemprop="warranty "



Step 5: Create a new file warranty.phtml under mageno2root/vendor/magento/module-catalog/view/frontend/templates/product/view with the below content.

<?php
$_helper = $this->helper('Magento\Catalog\Helper\Output');
$_product = $block->getProduct();
$_code = $block->getAtCode();
$_className = $block->getCssClass();
$_attributeLabel = $block->getAtLabel();
$_attributeType = $block->getAtType();
$_attributeAddAttribute = $block->getAddAttribute();

if ($_attributeLabel && $_attributeLabel == 'default') {
$_attributeLabel = $_product->getResource()->getAttribute($_code)->getFrontendLabel();
}
$_attributeValue =$_product->getResource()->getAttribute($_code)->getFrontend()->getValue($_product);
?>
<?php if ($_attributeValue): ?>
<div class="product attibute <?php echo $_className?>">
<?php if ($_attributeLabel != 'none'): ?><strong class="type"><?php echo $_attributeLabel?></strong><?php endif; ?>
<div class="value" <?php echo $_attributeAddAttribute;?>><?php echo $_attributeValue; ?></div>
</div>
<?php endif; ?>

That's it. Now we can able to see the warranty value in product detail page next to short description section.

Hope it helps for someone who starts to work in Magento2.

If you are looking for a post to get an attribute value Magento1.x Here you go