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.
Add code
Thursday, 8 October 2020
How to change the order status from COMPLETED TO CLOSED in Magento?
How can i Import all categories into Magento Site ?
How to Import all Categories into Magento website
To import all categories and products to your Magento website, we need to follow the following instructions.
- Create all categories and create one product on your Magento website
- Then export the data and keep that file with you.
- Now arrange the data which you want to import into the website, that total has to be arranged in the format which like your exported data.
- After arranging you can easily import the data into your Magento website.
Note: After import the data, you need to make reindex.
How to redirect my Magento website from HTTP to HTTPS ?
To redirect a Magento website from HTTP to HTTPS, I think which Magento version you are using is not an important one.
You just follow these following steps:
- Your host/PHPMyAdmin
- Select your database from the existing
- Find for the table `core_config_data` in that
- Now, change the secured and unsecured URLs here, like https://www.domain.com/
New order confirmation email is not being sent on Magento website
We have 2 methods to send the confirmation emails from our Magento 1 website.
- Using Cron
- Avoiding Cron
If you want to avoid the Cron :
Open the file order.php file from the following path:
app/code/core/Mage/Sales/Model/Order.php
Line#1356,1450
Change the following
//$mailer->setQueue($emailQueue)->send();
to the following:
$mailer-> send();
In the following path `app/design/frontend/base/default/template/checkout/success.phtml`:
add the following line Top success page for sending mail direct
$order = Mage::getModel('sales/order');
$incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
$order->loadByIncrementId($incrementId);
try{
$order->sendNewOrderEmail();
} catch (Exception $ex) {
echo "Email Not Sent...";
}
$customer = Mage::getSingleton('customer/session')->getCustomer();
$email = $customer->getEmail();
//End Email Sending
Friday, 2 October 2020
Magento 2: How to remove decimal points from the price
You need to override vendor/magento/module-catalog/view/base/web/js/price-utils.js and change the value of precision on line 38:
from
var precision = isNaN(format.requiredPrecision = Math.abs(format.requiredPrecision)) ? 2 : format.requiredPrecision,
to
var precision = 0
Magento2: How to get list of category's dropdown attributes?
Let's say that `$category` is the instance of the current category;
$collection = $category->getProductCollection()->addAttributeToSelect(['manufacturer', 'color']);
$manufacturers = [];
$colors = [];
foreach ($collection as $product) {
$manufacturer = $product->getData('manufacturer');
if ($manufacturer && !isset($manufacturers[$manufacturer])) {
$manufacturers[$manufacturer] = $product->getAttributeText('manufacturer');
}
$color = $product->getData('color');
if ($color && !isset($colors[$color])) {
$colors[$color] = $product->getAttributeText('color');
}
}
after this, `$manufacutrers` and `$colors` should contain all the values you need. The key is the id, and the value is the option label.
But this may cause performance issues if you have a large product collection.
Thursday, 1 October 2020
What is Magento ?
- Magento is an open-source e-commerce platform written in PHP.
- It uses multiple other PHP frameworks such as Laminas and Symfony.
- Magento source code is distributed under Open Software License v3.0.
- Magento was acquired by Adobe Inc in May 2018 for $1.68 Billion USD.
How do I find my Magento Theme name?
Look at the HTML source in your browser ("View Source") and search for skin/frontend, which is followed by PACKAGE/THEME, where PACKAGE is usually the name of the theme and THEME is usually default or contains site-specific changes.
Which version of Magento is best?
Magneto 2 runs approximately 20% faster than Magento 1, which can lead to improved SEO and increased sales. All of the content from a static page can be cached, thus increasing site performance and drastically reducing the server load. This makes the Magento 2 platform more scalable for large eCommerce stores.
Wednesday, 30 September 2020
Magento 1.9 Import products issue
Question:
I am trying to import some products, Magento performs everything right, but when I look at the catalog, there is no imported product
Starting profile execution, please wait...
Warning: Please do not close the window during importing/exporting data
Starting Mage_Dataflow_Model_Convert_Parser_Csv :: parse
Found 453 rows.
Starting catalog/convert_adapter_product :: parse
Processed 100% 453/453 records
Imported 453 records
Please wait while the indexes are being refreshed.
Finished profile execution.
The message below shows that it was 100% successful, but there is no product.
One Possible Solution:
It seems a Re-index issue.
Please run the following commands
php bin/magento indexer:reindex
php bin/magento cache:flush
Thursday, 31 May 2018
Magento 1 : Hide other shipping methods when free shipping is available
Open :
/app/design/frontend/[Your_package]/[Your_theme]/template/checkout/onepage/shipping_method/available.phtml
<?php
if ( array_key_exists('freeshipping', $_shippingRateGroups )) {
unset($_shippingRateGroups["flatrateperproduct"]);
}
?>
Then , flatrateperproduct Method will be remove from the shipping method.
Tuesday, 15 May 2018
How to add Buy Now At Product Page in Magento - 1 version ?
/app/design/frontend/[package name]/[themename]/template/ajaxcart/catalog/product/view/addtoCart.phtml
<button type="button"
/app/design/frontend/[package name]/[theme name]/template/catalog/product/view.phtml
Magento : 404 error is showing admin 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: ...
-
I have tested this and worked for me on my server : INSERT INTO `directory_country_region` VALUES ( NULL , "IN" , ...
-
Warning: a form on this page has more than 1000 fields PHP MySql After reaching so many entries PhpMyAdmin started showing this warning:...
-
Hi , In this blog I’m going to explain you how to create accordion tabs in magento for layered navigation as displayed below for attribut...
-
Open your phpmyadmin from your host try once this sql command. Run this Sql : SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_i...
-
Step 1 : First, Optimize your Server and the System Requirements Step 2: Update your Magento 2 to the latest version of Magento 2 Step 3 ...
-
To prevent other shipping options to display when Free Shipping is available, add the following code to your template: Open : /app/des...
-
Find out the easiest way to setup Magento with SSL The private SSL certificate is an important upgrade to your website. The basic functi...
-
To create a 404 page Create a CMS Page with Correct 'Store View'. Then go to System=>Config=>General=>Web in Default ...
-
How to create and manage pages in Magento In order to manage your web site pages you need to navigate to the CMS section in the Magento ...
-
If you want both Add to Cart and Buy now, add the buy now button to addtoCart.phtml Go to /app/design/frontend/[package name]/[themen...