To know about Mage::getSingletone():
It is used for Always finds for an existing object if not then create that a new object.
To know about Mage::getModel():
It is used for Always creates a new object.
Iam a Wfm Scheduler in Conduent business services india LLP. As an scheduler, I am the responsible to check and create each and evey schedule assigned in the operations for the business line. This blog explains about Magento only.
<block type="cms/block" name="your_block_id" before="-">
<action method="setBlockId"><block_id>your_block_id</block_id>
</action>
</block>
This code will place the block “your_block_id” that you have created
in the admin above the content on the category pages (notice the before=”-“
attribute, which makes sure your block gets displayed before the rest
of the content). This is perfect for a seasonal banner that could
advertise a current sale on all product listings.[cc lang="php" tab_size="2" lines="40"]
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_block_id')->toHtml(); ?>
[/cc]
{{block type="cms/block" block_id="your_block_id"}}
public_html/app/design/frontend/base/default/template/checkout
/onepage/link.phtml
Here, you can find the following code:<?php if ($this->isPossibleOnepageCheckout()):?>
<button type="button" title="<?php echo Mage::helper('core')->
quoteEscape($this->__('Proceed to Checkout')) ?>
" class="button btn-proceed-checkout ban-checkout
<?php if ($this->isDisabled()):?>
no-checkout
<?php endif; ?>"
<?php if ($this->isDisabled()):?>
disabled="disabled"
<?php endif; ?>
onclick="window.location='<?php echo $this->getCheckoutUrl() ?>';">
<span>
<span>
<?php echo $this->__('Proceed to Checkout') ?>
</span>
</span>
</button>
<?php endif?>
app/etc/modules/Envato_All.xml
: It's a file used to enable our custom module.app/code/local/Envato/Recentproducts/etc/config.xml
: It's a module configuration file.app/code/local/Envato/Recentproducts/Model/Recentproducts.php
: It's a model file which provides the array of most recent products.app/code/local/Envato/Recentproducts/Block/Recentproducts.php
: It's the main block file for our custom block.app/design/frontend/default/default/template/recentproducts/recentproducts.phtml
: It's a template file which contains the XHTML-related stuff.app/design/frontend/default/{your folder}/template/catelog/layer/view.phtml
Then open that that file & paste the following jquery script at the end of the page:
<script>var $j= jQuery.noConflict();// no conflict method $j (document).ready(function(){ $j("#narrow-by-list > dt").click(function(){ if(false == $j(this).next().is(':visible')) { $j('#narrow-by-list dd').slideUp(300); } $j(this).next().slideToggle(300); }); $j('#narrow-by-list dd').hide(); $j('#narrow-by-list dd:eq(0)').show(); }); </script>
NOTE:
#narrow-by-list is the id used in that file( <dl id=”narrow-by-list“>).
If you used different id’s, replace this with your id and save the
file. Refresh the cache and reload the browser to see the results. Use
no-conflict method in magento. It is a good practice to avoid javascript
conflicts in the page.
Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...