• March 7, 2023 Aimsinfosoft

    Download All Versions of Magento 2 With Sample Data

    Planning to start business online, and choosen for the E-commerce ?

    Great, You’ve made perfect decision to go with Magento 2. Magento CMS is a flexible platform to develop E-commerce stores with rich functionalities and many more to decorate your store.

    Magento is continuously releasing its better and updated version online with the intention to improve your magento e-commerce web store.

    If you want to get your store up-to-date, you will need to update version of your magento store each and every time its new release. However, one requires to sign up and log in to access the Magento version files.

    To save you from these processed, here is the list of each and every version of magento with sample data.

    Download Latest Magento 2 Version

    Download Magento 2.4.0

    Download Latest Magento 1 Version

    Download Magento 1.9.4.5

    Download Data Migration Tool For Magento 2

    A data migration tool is a command line interface to transfer data form Magento 1 to Magento 2. It operates in three modes:

    • Settings – To migrate configuration settings
    • Data – To bulk migrate the main data in the database
    • Delta – To transfer incremental data updates

    Moreover, it verifies the consistency between the database structures of both the versions, track the data transfer progress, create log, and run data verification.

    However, before starting with the data migration tool, make sure that you select the same version of this tool which is your Magento 2 version.

    It is always good to share resources and when you have stumbled upon such a comprehensive list of Magento version downloads, why not share it among the Magento community via social media!

    Moreover, feel free to contact us for any professional help required related to Magento or even, E-commerce! Coz, we love to optimize such stores!

    CONTINUE READING...
  • March 7, 2023 Aimsinfosoft

    Magento 2 : Create cart rule programmatically with shopping cart amount condition

    This article will help you to create cart rule programatically with shopping cart amount or any other condition. Here I am giving you an example that how you can create cart rule with cart amount condition.

    Code:

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $sp_storeManager = $objectManager->create('\Magento\Store\Model\StoreManagerInterface'); $website_id = $sp_storeManager->getStore()->getWebsiteId(); $simple_action = 'by_percent'; //or $simple_action = 'by_fixed'; $free_shipping = '1'; //or $free_shipping = '0'; $sp_customerGroup = $objectManager->create('\Magento\Customer\Model\ResourceModel\Group\Collection'); $customerGroups = $sp_customerGroup->toOptionHash();
    foreach (array_keys($customerGroups) as $key) { $customerGroup[] = $key; }
    $model = $objectManager->create(‘Magento\SalesRule\Model\Rule’);
    $data['name'] = "5% off over 500"; $data['coupon_code'] = '5OFF500'; $data['discount_amount'] = '5'; $data['description'] = 'User will get 5% off on purchase of 500 or more'; $data['from_date'] = '2019-5-20'; $data['to_date'] = '2019-5-26; $data['simple_action'] = ''; $data['coupon_type'] = '2'; $data['website_ids'] = array($website_id); $data['customer_group_ids'] = $customer_groups; $data['is_active'] = '1'; $data['use_auto_generation'] = '0'; $data['uses_per_customer'] = '1'; $data['uses_per_coupon'] = '1'; $data['is_advanced'] = '1'; $data['sort_order'] = '1'; $data['discount_qty'] = '0'; $data['simple_free_shipping'] = $free_shipping; $data['is_rss'] = '0'; $data['apply_to_shipping'] = '0'; $data['times_used'] = '0'; $data['conditions']['1'] = array('type' => 'Magento\SalesRule\Model\Rule\Condition\Combine','aggregator' => 'all','value' => '1','new_child' => ''); $data['conditions']['1--1'] = array('type' => 'Magento\SalesRule\Model\Rule\Condition\Address','attribute' => 'base_subtotal','operator' => '>=','value' => $min_cart_amount);
    $model->loadPost($data);
    $model->save();

    Thank you and enjoy your coding!

    CONTINUE READING...
  • March 7, 2023 Aimsinfosoft

    Magento 2 : Delete Customer Programmatically

    Hello Developers,

    Here you can find quick code for the Delete Customer in Magento 2 using any custom PHP Script. Here I am giving you an example to delete customer which Id is ’45’. You can create this script in Magento root.

    use Magento\Framework\App\Bootstrap;

    require __DIR__ . ‘/app/bootstrap.php’;

    $bootstrap = Bootstrap::create(BP, $_SERVER);

    $obj = $bootstrap->getObjectManager();

    $appState = $obj->get(“Magento\Framework\App\State”);

    $appState->setAreaCode(“admin”);

    $resource = $obj->get(‘Magento\Framework\App\ResourceConnection’);

    $connection = $resource->getConnection();

    $obj->get(‘Magento\Framework\Registry’)->register(‘isSecureArea’, true);

    $customerId = ’45’;

    $customer = $obj->create(‘Magento\Customer\Model\ResourceModel\CustomerRepository’)->deleteById($customerId);

    try {

    echo ‘Deleted Customer for Id : ‘ . $customerId . ‘ ‘;

    } catch (Exception $e){

    echo ‘Error for Id : ‘ . $customerId . ‘ ‘ . $e->getMessage() . ‘‘;

    }

    Thank you and Keep Coding!

    CONTINUE READING...
  • March 7, 2023 Aimsinfosoft

    Release of WordPress 5.5 “Eckstine”

    WordPress has released another version named “Eckstine” – In the honor of Billy Eckstine.

    What is Eckstine ?

    – The Eckstine is the another WordPress version posted on August 11, 2020 by Matt Mullenweg, With the help of Eckstine the WordPress gets new power in three important modules.

    • Speed
    • Search
    • Security   

    1) Speed :

    – The main thing that consume time to load the webpage is the images, as when you load or refresh the page it will go to request for the image and will load that image to page, even after we haven’t reached to the screen that has the images.

    – In WordPress 5.5, It

    will wait to load image until they’re just about to scroll into view, and it will speed up your page loading.

    2) Search :

    – Here, The Eckstine got the XML site map which will help your search engine to discover the most important pages.

    – By This, The more and more visitor will found your store on internet and probably, You will have more and more customer to your store in the blink of the eye.

    3) Security :

    – Before this version, if there is any update for the plugins and themes you have to update it.

    – But, Now we have the “Eckstine”

    – It will allows you to decide yourselves that do you want the plugins or themes to autoupdate?

    ” The wordpress 5.5 is just an awesome update we got to use for our websites”

    Thank You

    CONTINUE READING...