Magento create block from controller php code
/0 Comments/in Magento2 /by puneetk00this code write in your controller you have to no write in xml layout
How to add custom fields for Order Line Items in magento
/0 Comments/in Magento2 /by puneetk00Remove precision from price of a product
/0 Comments/in Magento2 /by puneetk00Remove precision from price of a product
As I said in the title, I want to remove precision from price ( .00 ) I did these :
in
I changed
to
in
I changed
to
I changed
to
I changed
to
Then I cleared the cache, and reindexed Magento (which is i |
i am using its working thank bro
Magento add new class accourding to your module and you
/0 Comments/in Magento2 /by puneetk00if ($root = $this->getLayout()->getBlock('root')) {
$root->addBodyClass('whatever');
}
and xml
<reference name="root">
<action method="addBodyClass"><classname>whatever</classname></action>
</reference>
Magento Mask product set attribute value
/0 Comments/in Magento2 /by puneetk00Magento Mask product set attribute value
States if India not displaying in dropdown list during checkout process in magento 1.7.0.2
/0 Comments/in Magento2 /by puneetk00INSERT INTO `directory_country_region_name` (`locale` ,`region_id` ,`name` ) SELECT ‘en_US’, tmp.region_id, tmp.default_name FROM `directory_country_region` AS tmp WHERE tmp.country_id=’IN’;
magento log clear query
/0 Comments/in Magento2, Mysql /by puneetk00magento order viedw how to add new filster coloume ?
/0 Comments/in Magento2 /by puneetk00Magento how to mail in magento php script
/0 Comments/in Magento2 /by puneetk00Magento how to mail in magento php script ?
$mail = Mage::getModel( ‘core/email’ );
$mail->setToName( $to_name );
$mail->setToEmail( $to_email );
$mail->setBody( $email_content );
$mail->setSubject( $email_subject );
$mail->setType( ‘html’ );
if ( Mage::getStoreConfig( ‘jbmarketplace/jbmarketplace/email_from_name’ ) != ” )
$mail->setFromName( Mage::getStoreConfig( ‘jbmarketplace/jbmarketplace/email_from_name’ ) );
if ( Mage::getStoreConfig( ‘jbmarketplace/jbmarketplace/email_from’ ) != ” )
$mail->setFromEmail( Mage::getStoreConfig( ‘jbmarketplace/jbmarketplace/email_from’ ) );
$mail->send();
}
catch( Exception $e ) {}
}
Connect With Us
Whatsapp : 9891472590
Contact
K2/25, Harijan Colony,
Sangam Vihar, New Delhi 110080
+91 9891472590
mg2dev@gmail.com
Product
Magento 2
WordPress
Shopify
SEO
SMO