I am using this extension on Magento
http://www.magentocommerce.com/magento-connect/nblog-blog-extension-by-neotheme.html
My blog page is working fine but i want show the recent 3 posts on my footer.
i am not getting any solution for it.
If any one Know this please help me
Check your app\design\frontend\base\default\layout\neotheme\blog.xml.
Add this code in the <default> tag
<reference name="footer">
<block type="neotheme_blog/widget_post_list" name="blog.latest.posts"/>
</reference>
use the following code in default tag of blog.xml
<block type="neotheme_blog/widget_post_list" after="blog.category.list" name="blog.latest.posts">
<action method="setPostCount"><param>5</param></action>
</block>
where between param tag you can enter any digit. the blog will show the no. of posts accordingly.
Related
Hi i have added a new product tab in admin grid by following the below link
http://inchoo.net/magento/how-to-add-custom-product-relations-in-magento/
Everything is working fine. BUt this has added the new tab at the last position in product edit section. Can you please suggest me how can i change the position of that tab.
thanks
You can use the action addTabAfter instead of addTab, then you have to specify the <after> parameter (categories, websites, upsell...).
I edited the code of your tutorial for example:
<reference name="product_tabs">
<action method="addTabAfter">
<name>custom</name>
<block>inchoo_customlinkedproducts/adminhtml_catalog_product_edit_tab</block>
<after>upsell</after>
</action>
</reference>
I hope this is fexible enough for you.
after searching a lot i have not got any default solution to change the custom tab position so i have decided to go with JavaScript.
I manage to do this with the below code
in my module file i have loaded a custom JavaScript file with the below code on product edit action and product create action
<adminhtml_catalog_product_edit>
<reference name="head">
<action method="addJs">
<script>jsoveride/accesorytab.js</script>
</action>
</reference>
</adminhtml_catalog_product_edit>
<adminhtml_catalog_product_new>
<reference name="head">
<action method="addJs">
<script>jsoveride/accesorytab.js</script>
</action>
</reference>
</adminhtml_catalog_product_new>
and in the i have use the below code
document.observe("dom:loaded", function() {
document.getElementById("product_info_tabs_crosssell").appendChild(document.getElementById("product_info_tabs_custom"));
});
and it has done my work.
If anybody gets better solution please let me know.
thanks
It is a totally easy problem, but Im not able to solve it.
I tried the following:
add layout xml to the update layout field in the backend for this cms page:
<reference name="right">
<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>
or the same in the local.xml
<cms_index_index>
<reference name="right">
<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
</reference>
</cms_index_index>
Thanks a lot, I know its not complicated, but I cant get it.
Here is some checks:
Check if your page is using two-column-right or three-column layout.
Clearing cache
Add your layout update to cms.xml directly and clearing cache.
Hope this help
You might have missed to echo the block in the custom home page template file?
echo $this->getChildHtml('right.reports.product.viewed');
Or may be your home page is using 2-template left or other templates where there is no 'right' content block.
I'm using Magento 1.7.0.2 and certainly I observed that the bundle pricing is not showing up in the listing pages of product.
Is there any quick fix for it? Any help will be highly appreciated.
Thanks
I will just toss a big fat guess at it and say that if you are adding a block that is custom, you may need to add the Price action hook like so:
<reference name="content">
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
I just found this solution to the problem of bundle pricing not displaying properly in category pages: http://www.magentocommerce.com/boards/viewthread/224677/.
I hope it will help.
Thanks,
C
I want to add a login form to CMs page in Magento, I have tried adding this:
{{block type=”core/template” template=”customer/form/login.phtml”}}
in the content section of the CMS page, but its not working . Please help me.
This code finally wordked for me .
{{block type ="Mage_Customer_Block_Form_login" template="customer/form/login.phtml" }}
Open cms.xml in your theme and find the following
<reference name="content">
<block type=”cms/page” name=”cms_page”/>
</reference>
Replace it with this
<reference name="content">
<block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
<block type=”cms/page” name="cms_page"/>
</reference>
Then your code should work.
If your magento version less than 1.6 use the below code.
{{block type="customer/login" template="customer/form/login.phtml"}}
if your Magento version is 1.6 or greater
{{block type="customer/login" template="persistent/customer/form/login.phtml"}}
Try this:
{{block type="customer/form_login" name="customer_form_login_block" template="persistent/customer/form/login.phtml"}}
This is a way to do it without modifying any files:
Go into the Design tab
In "Custom Layout Update XML" add the following:
< reference name="content">
< block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml" after="-"/>
< /reference>
There you go. You can also do this in Categories.
Tested in Magento 1.8.1 (should work on most versions)
I'm making some changes to /customer/form/register.phml but they are not showing up in the frontend. Changes that I made to login.phtml and forgotpassword.phtml do show up.
I checked if magento was using a fallback from the base/default theme but it's not. I deleted register.phtml in both my theme and in the base/default theme to check what would happen: the page showed up just fine (without the changes of course).
I looks like magento gets the file from somewhere else (maybe the core). I've got no idea on how to solve this.
Thanks in advance for your help.
My Customer.xml file looks like this, I'm using magento 1.5.1
<customer_account_create translate="label">
<label>Customer Account Registration Form</label>
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml">
<block type="page/html_wrapper" name="customer.form.register.fields.before" as="form_fields_before" translate="label">
<label>Form Fields Before</label>
</block>
</block>
</reference>
</customer_account_create>
The best way to debug this - is to turn on template path hints.
You probably need to edit template/persistent/customer/form/register.phtml.
Yes i agree with WebFlake turn on template hints that will let you know which template file the form is being pulled from, most likely you are modifying the wrong template.
Here is a link which explains how to turn on template hints: http://vimeo.com/1067069
Use the template hints. Also, with any phtml changes you make, make sure that you have caching disabled, and flush all caches (System -> Cache Management).
I used template hints and discovered a plugin replaced the file. Enabling template hints: http://vimeo.com/1067069 helped a lot