Posted by mazoerkam on
- -
1. Create from backend
Go to cms-static block
Example
Block title: my block Identifier: my_block
Call :
Backend :
{{block type="cms/block" block_id="my_block"}}
Front end call layout :
<block type="cms/block" name="my_block" before="-">
<action method="setBlockId"><block_id>my_block</block_id></action>
</block>
Front end phtml
<? php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my_block')->toHtml(); ?>
2. Create from front end
we create from layout template and we want to call block to another layout template .phtml
Myblock/myblock.phtml
<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('myblock/myblock.phtml')->toHtml(); ?>
If we want calling frontend static block .phtml in backend
{{block type="core/template" template="myblock/myblock.phtml"}}
If there are another methods please put your code in comment.
Best regards
[ Read More ]
Posted by mazoerkam on
- -
It happen when I built this website. Everything were ready to launch, I got headache why always fail uploading my templates from backend and almost surrender. May be it’s caused by limitation time session in backend because my file size too big. Change backend session value, waw..still no result :D :D
Finally, why don’t try using FTP for big size downloadable product.
Here is what I do.
Create
.htaccess
with code content
Order allow,deny
Allow from all
Put .htaccess in your downloadable folder .
call your downloadable product with url in your backend downloadable product mode.
Example :
http://yourweb/media/downloadable/program/accounting.rar
Now you can upload downloadable product via FTP and customer must login before they can download product purchased.
[ Read More ]
Posted by mazoerkam on
- -
It happen when I built this website. Everything were ready to launch, I got headache why always fail uploading my templates from backend and almost surrender. May be it’s caused by limitation time session in backend because my file size too big. Change backend session value, waw..still no result :D :D
Finally, why don’t try using FTP for big size downloadable product.
Here is what I do.
Create
.htaccess
with code content
Order allow,deny
Allow from all
Put .htaccess in your downloadable folder .
call your downloadable product with url in your backend downloadable product mode.
Example :
http://yourweb/media/downloadable/program/accounting.rar
Now you can upload downloadable product via FTP and customer must login before they can download product purchased.
[ Read More ]
Posted by mazoerkam on
- -
One of the magento ecommerce features is downloadable product. We don’t need to install any extensions. Use it and get it. The problem comes when our store have big size for downloadable product. Suddenly message error come, “HTTP error blah blah blah”. Usually it’s caused by our server reject for file upload more than 2MB. Don’t worry this is my solution
Open your php.ini server;
copy this file to your php.ini
post_max_size = 64M
upload_max_filesize = 64M
now you have maximum upload for downloadable product limit to 64MB
[ Read More ]
Posted by mazoerkam on
- -
Simple contribution from goocek.com, customer do not need to go to account just for login. We put login page when mouse over login on top link. So customer can login everywhere.
copy goologin.css to skin/frontend/default/default/css
copy js/goologin.js to skin/frontend/default/default/
copy goologin/goologin.phtm to app/design/frontend/default/template
copy mini.login.phtml to app/design/frontend/base/default/template/customer/form/
replace old mini.login.phtml
go to
app/design/frontend/base/default/layout/page.xml
copy
<action method="addItem"><type>skin_css</type><name>css/goologin.css</name></action>
under
<action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
go to
app/design/frontend/base/default/layout/customer.xml
go to line
<customer_logged_out> until</customer_logged_out>
Change with this value
<customer_logged_out>
<!---<reference name="right">
<block type="customer/form_login" name="customer_form_mini_login" before="-" template="customer/form/mini.login.phtml"/>
</reference>-->
<reference name="top.links">
<block type="core/template" name="goologin_toplink" template="goologin/goologin.phtml" >
<block type="customer/form_login" name="customer_form_mini_login" as="goologin" template="customer/form/mini.login.phtml"/>
</block>
<action method="addLinkBlock"><blockName>goologin_toplink</blockName></action> </reference>
<remove name="wishlist_sidebar"></remove>
<remove name="reorder"></remove>
</customer_logged_out>
Customize style, change value in goologin.css
Enjoy top link login with observe command..
Best regard
Keep goocek.com
[ Read More ]
Posted by mazoerkam on
- -
based from free module top link cart view freedownload goocek.com. If we feel shopping cart disturb our website and we want to fill that column with other content. Another method is put shopping cart when on mouse over on top link. So customer can look what they have been bought and checkout immediately.
Just simple way to show top link cart on mouse over
copy goocart.css to skin/frontend/default/default/css
copy js/goocart.js to skin/frontend/default/default/
copy goocart/goocart.phtm to app/design/frontend/default/template
go to
app/design/frontend/base/default/layout/page.xml
copy
<action method="addItem"><type>skin_css</type><name>css/goocart.css</name></action>
under
<action method="addCss"><stylesheet>css/styles.css</stylesheet></action>
go to
app/design/frontend/base/default/layout/checkout.xml
comment out under
<default>
<!-- Mage_Checkout
<reference name="top.links">
<block type="checkout/links" name="checkout_cart_link">
<action method="addCartLink"></action>
<action method="addCheckoutLink"></action>
</block>
</reference>-->
Copy this code under above.
<reference name="header">
<reference name="top.links">
<remove name="checkout_cart_link"/>
<block type="core/template" name="cartview_toplink" template="goocart/goocart.phtml" >
<block type="checkout/cart_sidebar" name="cart_sidebar" as="goocart" template="checkout/cart/sidebar.phtml"/>
</block>
<action method="addLinkBlock"><blockName>cartview_toplink</blockName></action>
<!--
<block type="checkout/links" name="checkout_cart_link_cartview">
<action method="addCheckoutLink"></action>
</block>
-->
</reference>
[ Read More ]
Posted by mazoerkam on
- -
When we put product list example new product and we want to change currency. Page will reload but currency not change. It’s because cache of the new product still kept in server. Don’t worries, just put
cache_lifetime="1" in the end of code
example
{{block type="catalog/product_new" new" products_count="6" name="home.catalog.product.homepage" alias="product_homepage" template="catalog/product/new.phtml" cache_lifetime="1"}}
enjoy it
[ Read More ]