Remove
wp-includes/general-template.php/ change
switch ( $type ) {
case 'html':
$gen = '<meta name="generator" content="ZiaPhotography ' . get_bloginfo( 'version' ) . '">';
break;
case 'xhtml':
$gen = '<meta name="generator" content="ZiaPhotography ' . get_bloginfo( 'version' ) . '" />';
break;
case 'atom':
$gen = 'WordPress';
break;
case 'rss2':
$gen = 'http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '';
break;
case 'rdf':
$gen = '';
break;
case 'comment':
$gen = '';
break;
case 'export':
$gen = '';
break;
}
return apply_filters( "get_the_generator_{$type}", $gen, $type );
}
programatically change order status magento
require_once 'app/Mage.php';
umask(0);
Mage::app('default');
/*
const STATE_NEW = 'new';
const STATE_PENDING_PAYMENT = 'pending_payment';
const STATE_PROCESSING = 'processing';
const STATE_COMPLETE = 'complete';
const STATE_CLOSED = 'closed';
const STATE_CANCELED = 'canceled';
const STATE_HOLDED = 'holded';
const STATE_PAYMENT_REVIEW = 'payment_review';
*/
$orderId = '200000120';
$order = Mage::getModel('sales/order')->loadByIncrementID($orderId);
$order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, true);
$order->save();
echo "
Status Updated";
?>
Currency Switcher Bug Home page
New Products Currency Switcher Bug Home page :
The currency switcher was enabled and working perfectly everywhere on the site except the home page. Add a “cache_lifetime” node on your new products block and set it to the minimum allowed (1 second). In the end, your block code should look something like this:
Proper currency conversion:
currency(number_format($_product->getPrice(),2)); ?> change ⇒
currency($_product->getPrice()); ?>
Create Custom Cron Job in Magento
Magento default have a cron.php file located in the root directory. To set a cron in magento you have to create your own module first, and in the config.xml you have to declare the method which will fired and the time. Below is a dump of a etc/config.xml file of a custom cron module
<?xml version="1.0"?>
<config>
<modules>
<Wl_Cronset>
<version>0.1.0</version>
</Wl_Cronset>
</modules>
<crontab>
<jobs>
<Wl_Cronset>
<schedule>
<cron_expr>01 00 * * *</cron_expr>
</schedule>
<run>
<model>cronset/expired::productExpired</model>
</run>
</Wl_Cronset>
</jobs>
</crontab>
<global>
<models>
<cronset>
<class>Wl_Cronset_Model</class>
</cronset>
</models>
</global>
</config>
As per mentioned in this xml your cron will be fired every day @ night 00:01 min
Now you have to write your own functionality in your module Model file, Here my model file name is Expired and the function which will trigger is productExpired().
<?php
class Wl_Cronset_Model_Expired extends Mage_Core_Model_Abstract
{
public function productExpired()
{
// Your code goes here
}
}
?>
Now login to your server to call the magento root cron.php and set to be fired in every minute.
Magento Bracbank External Payment Gateway
Bracbank External Payment Gateway in Bangladesh:
Magento Bracbank payment extension which links up to an external payment gateway in Bangladesh.
Name:Mediasoftbd_Bracbank_Payment Gateway
Version number: 1.0.0
Stability: Alpha
Compatibility: 1.4, 1.4.1.1, 1.4.2, 1.5, 1.6, 1.6.1, 1.6.2.0, 1.7
Magento Connect 1.0: magento-community/Mediasoftbd_Bracbank-1.0.0
Magento Connect 2.0: http://connect20.magentocommerce.com/community/Mediasoftbd_Bracbank-1.0.0
Contact Bracbank Bank in Bangladesh & Change redirect url to app/design/frontend/base/default/template/redirect.phtml
Magento Bkash External Payment Extension
Version 1.0.1
http://connect20.magentocommerce.com/community/Mediasoftbd_Bkash-1.0.1
bKash External Payment Gateway Bangladesh:
Magento Bkash External Payment Extension which links up to an external payment gateway in Bangladesh.
1.Change your Bkash mobile number from system =>configuration =>Payment Methods=>bKash Gateway=>Title
2.Create a page Page Title:Bkash Instruction URL Key: bkash_instruction Content(just past):
<h2>{{block type=”core/template” template=”Bkash/bkash_instruction.phtml”}}</h2>
<h3>Send Money on +8801717-676441 From any bKash agent with you order Invoice</h3>