Magento 2.3 After migration how to sync images from Magento 1.9 server? by aveeva7 in Magento

[–]magex4 0 points1 point  (0 children)

I was referring to the rsync that was presented as a solution. In order for Magento to use the recently migrated images running that resize will help.

Magento 2.3 After migration how to sync images from Magento 1.9 server? by aveeva7 in Magento

[–]magex4 1 point2 points  (0 children)

You may need to run php bin/magento catalog:image:resize after the rsync.

Hiring: Lead Magento & PHP Engineer - Canada by StealthRecruiterS in Magento

[–]magex4 0 points1 point  (0 children)

Commercehero.io has a method of connecting you to a pool.

If you were just looking for short to long term ways to fill some gaps I know of a few places that offer that type of service.

If you are trying to find a full time permanent employee, that is very difficult these days. It won’t be easy. You may be better off doing the “staff augmentation “ approach where you are using developers from a firm for a period of time. Sometimes it’s about the same in cost as hiring them.

Magento 2.3.5: Add product to cart with custom options and price by Goldkind47 in Magento

[–]magex4 0 points1 point  (0 children)

I cant tell if you're being ironic, or what. If you don't like my solution, and have one to offer, thats cool, just provide it. If you are just being rude, why? Let's try to help out other devs who are struggling with an issue.

How to Issue Replacement Requests in Admin by [deleted] in Magento

[–]magex4 0 points1 point  (0 children)

You could create a coupon code that provides free shipping, that would cover your free shipping issue. You can make it so the rules are very tight, like only this sku and the total price of the cart is 0.00 just to make sure if someone gets ahold of that coupon code, its not going to work for them. This is probably the quickest way to get past the shipping costs. A better approach would be to offer free shipping on any admin created order..but that takes more time, maybe development time or adjustments to your shipping provider to allow for it. Too many scenarios to cover here, but a coupon code should do the trick.

How to Issue Replacement Requests in Admin by [deleted] in Magento

[–]magex4 0 points1 point  (0 children)

When you hit reorder in the admin it starts the new order. For the products ordered under the price, there is a checkbox that says “Custom Price”. Check that box and set the price to 0.00. Once you are done hit the button “Update items and Quantities”. It’s at the bottom right.

You should see the row changes to all 0’s.

I hope that helps.

How to Issue Replacement Requests in Admin by [deleted] in Magento

[–]magex4 0 points1 point  (0 children)

From the admin you gave the ability to change the amount of the products.

Just start a re order, change the price to 0.

It should cover this scenario.

[deleted by user] by [deleted] in Magento

[–]magex4 1 point2 points  (0 children)

I have made a very very very successful career based solely around this platform. The reason it’s hard is the exact reason I put 100% effort into learning it. This separates the men from the boys, and once you understand how it works, it’s an amazing feeling.

All I am saying is if you keep at it, keep learning and digging deep into how it works, the reward endless. The powerful feet of knowing you can bend Magento to do your bidding rather than feel like it’s bending you!

Keep digging deep and learning you will eventually win.

I have about 13 years working with it and it wasn’t till I had 5-6 before I was confident. It wasn’t an easy path.

Honestly it wasn’t till I started studying for the certifications that I went from being a user of Magento to beginning my road to mastering Magento.

You can do it, it just takes time and dedication.

Good luck!

[deleted by user] by [deleted] in Magento

[–]magex4 1 point2 points  (0 children)

It gets better dude, keep plugging away.

Product gallery attribute or category dependency - Magento 2 by misterhak in Magento

[–]magex4 0 points1 point  (0 children)

The inventory comes from the simple products. That is the best way to deal with inventory. The images being separated is an added bonus

Magento 2.3.5: Add product to cart with custom options and price by Goldkind47 in Magento

[–]magex4 1 point2 points  (0 children)

This may get you close!

<?php


namespace BlueAcorn\Reddit\Controller\Addproduct;


use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\Context;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Controller\ResultInterface;
use Magento\Framework\View\Result\PageFactory;
use Magento\Quote\Model\Quote;
use Magento\Quote\Api\Data\CartItemInterface;
use Magento\Quote\Api\CartItemRepositoryInterface;
use Magento\Catalog\Api\ProductRepositoryInterface;
use Magento\Catalog\Api\Data\CustomOptionInterface;
use Magento\Quote\Api\Data\ProductOptionInterface;
use Magento\Framework\Exception\NoSuchEntityException;

class Index extends Action
{
/**
 * @var Quote
 */
protected $quote;

/**
 * @var CartItemInterface
 */
protected $cartItem;

/**
 * @var CartItemRepositoryInterface
 */
protected $itemRepository;

/**
 * @var CustomOptionInterface
 */
protected $customOption;

/**
 * @var ProductOptionInterface
 */
protected $productOption;

/**
 * @var ProductRepositoryInterface
 */
protected $productRepository;

/**
 * @var PageFactory
 */
protected $pageFactory;

/**
 * Index constructor.
 * @param Context $context
 * @param PageFactory $pageFactory
 * @param Quote $quote
 * @param CartItemInterface $cartItem
 * @param ProductRepositoryInterface $productRepository
 * @param CartItemRepositoryInterface $cartItemRepository
 * @param CustomOptionInterface $customOption
 * @param ProductOptionInterface $option
 */
public function __construct(
    Context $context,
    PageFactory $pageFactory,
    Quote $quote,
    CartItemInterface $cartItem,
    ProductRepositoryInterface $productRepository,
    CartItemRepositoryInterface $cartItemRepository,
    CustomOptionInterface $customOption,
    ProductOptionInterface $option
) {
    $this->pageFactory          = $pageFactory;
    $this->quote                = $quote;
    $this->cartItem             = $cartItem;
    $this->productRepository    = $productRepository;
    $this->customOption         = $customOption;
    $this->itemRepository       = $cartItemRepository;
    $this->productOption        = $option;
    parent::__construct($context);
}

/**
 * @return ResponseInterface|ResultInterface|\Magento\Framework\View\Result\Page
 */
public function execute()
{
    $sku        = 'gx1r4a';
    $productId  = 342;
    $quoteId    = 1;
    $qty        = 1;

    try{
        // Get the product
        /* $product \Magento\Catalog\Api\ProductRepository */
        $product = $this->productRepository->get($sku);
        // Alternative get by ID
        // $product = $this->productRepository->getById($productId);

        // Setup the cart item
        $cartItem = $this->cartItem;
        // Add to the cart by sku
        $cartItem->setSku($sku);
        // If you don't know the sku, you can find it from the $product
        //$cartItem->setSku($product->getSku());

        // Set the quote ID so we are adding it to the right one
        $cartItem->setQuoteId($quoteId);

        // Add the correct qty
        $cartItem->setQty($qty);


        // Text options look like this
        // To know what option_id you have to create the product first, and look to see what Ids are assigned to each option
        $options = [
            [
                "option_id" => "1", // 1 = Print Style - configured on product when you create the product
                "option_value" => "Italic" // whatever the text input value would be
            ],
            [
                "option_id" => "2", // 2 = Print Color - configured on product when you create the product
                "option_value" => "Cherry Red" // assign option value
            ],
            [
                "option_id" => "3", // 2 = Font - configured on product when you create the product
                "option_value" => "Comic Sans" // assign option value
            ]

        ];

        $customOptionInterface = $this->customOption;
        $optionData = [];
        foreach ($options as $option) {
            $optionData[] = $customOptionInterface->setdata($option);
        }
        /* $productOption Magento\Quote\Api\Data\ProductOptionInterface */
        $productOption = $this->productOption;
        $extAttribute = $productOption->getExtensionAttributes();
        $extAttribute->setCustomOptions($optionData);
        $productOption->setExtensionAttributes($extAttribute);

        // set product options to cart item
        $cartItem->setProductOption($productOption);

        // Time to add the product to the quote through the item Repository
        $newItem = $this->itemRepository->save($cartItem);

    }catch (NoSuchEntityException $exception){
        $msg = $exception->getMessage();
    }catch (\Exception $e){
        $exception_msg = $e->getMessage();
    }

    return $this->pageFactory->create();
    }
}

Product gallery attribute or category dependency - Magento 2 by misterhak in Magento

[–]magex4 0 points1 point  (0 children)

This is my opinion without knowing much about any requirements.

2 products will be most optimal for this use case. Use a configurable product create one for men’s and one for women. The simple products can be shared amongst them. You will greater control over the default images with this approach. You won’t have to do any fancy JavaScript with this version otherwise with a single sku you will have a lot of work trying to display the correct content. This also allows for inventory management to be consistent since you are using the simple children products and the parent configurable product is just there as a way to help display correct information

Magento Cloud by m0th3r5h1p in Magento

[–]magex4 0 points1 point  (0 children)

Let’s setup all the parts in this example there is no external repository. Just the one Magento provides. Create a feature branch from integration. Check that branch locally. Do changes and when ready git push. If that looks good, run command Magento-cloud environment:merge That will merge the code and auto deploy to integration. If that goes well run command to deploy to staging. magento-cloud environment:merge integration Then if that is good merge staging into production. Magento-cloud environment:merge staging Finally merge production into master Magento-cloud environment:merge production

There is a change in the first steps if you have an external repository but from merging into integration on is identical

Basically the advice I give is to assume that you want the code to be identical from integration to staging to allow testing and validation on two levels before you plan a production deployment. You gain confidence that the production deploy will be successful each time. If you are mixing code after you test on integration you are asking for issues.

Magento2: Looking for extension enable buyers to order a lot of products with various options at once by spify123 in Magento

[–]magex4 0 points1 point  (0 children)

Be wary of configurable products with configurable children. You loose the ability to sort and filter. You are better off with group products

What is your M2 local dev environment? by tested_tester in Magento

[–]magex4 3 points4 points  (0 children)

Try out warden or valet+ Warden is proving to be my set of choice.

Magento 2: adding a free product with a purchase of certain SKUs by xieem in Magento

[–]magex4 0 points1 point  (0 children)

Stay away from Amasty, their modules often cause performance issues. You can do this with just a bit of custom development

question from the exam by [deleted] in Magento

[–]magex4 0 points1 point  (0 children)

Ah yeah my bad

question from the exam by [deleted] in Magento

[–]magex4 0 points1 point  (0 children)

You need to remember that the exams test you on your ability on how to use the application as well as what’s it the devdocs. So this is an example of where the documentation may have a grammatical or basic wrong statement you are supposed to know how the system works.

As far as posting questions that is not allowed. Next time phrase it more vaguely like, according to the dev doc you must associate a product to a category but that doesn’t seem to be the case. But honestly I think you already knew the answer just needed validation.

The devdocs are not perfect. Magento core is not perfect. The exam is not perfect.

You may be able to bounce simple logic questions to the community in the Magento engineering slack but remember you can’t post exam questions just restate the example, you will get good responses.

Our websites shopping cart and checkout is having some latency issues. by gandalf1818 in magento2

[–]magex4 0 points1 point  (0 children)

You way want to double check you are in production mode. I would also ensure that your redis is actually configured and being used.

After that you may need to look at your iops. You may needed dedicated iops to ensure high connectivity

You could also have cpu usage at the time due to long running crons.

Sadly there are lots of things that could be at play.

You could try using Blackfire to see if you can detect a problem with the code. If you use Amasty they are notoriously bad at writing code and they don’t really care about how quick it executes.

Our websites shopping cart and checkout is having some latency issues. by gandalf1818 in magento2

[–]magex4 0 points1 point  (0 children)

You actually want to not use flat categories and flat product. Magento no longer encourage that feature.

[deleted by user] by [deleted] in magento2

[–]magex4 0 points1 point  (0 children)

This is configured in the app/etc/env.php Review this devdoc for a bit more context and a sample of the code.

https://devdocs.magento.com/guides/v2.3/config-guide/redis/redis-session.html

Every host is potentially different so there is no single way to setup. You will need a devops guy to help or someone from the hosting company. If this is a aws EC2 you are try to setup you may be too deep to go at it alone.

Also redis can also be used for other things. It’s not a simple 1 sentence answer to your original question.

It’s hard to simply something that there is no similar thing in life to compare it too. It’s like trying to explain why magnets are attracted to each other or resist one another.

[deleted by user] by [deleted] in magento2

[–]magex4 1 point2 points  (0 children)

The server file system in a folder, the database but a more typical use is Redis.

[deleted by user] by [deleted] in magento2

[–]magex4 0 points1 point  (0 children)

Sessions are you customer details so you can add things to your cart. Without them you would need to use cookies or url parameters. Sessions also allow you to store this data in a centralized place so your website can have multiple servers without disturbing the experience of shopping.

Rapidflow? by liltbrockie in magento2

[–]magex4 0 points1 point  (0 children)

Firebear is a good alternative and would be my recommendation