Product gallery attribute or category dependency – Magento 2

Hi. Trying to find the most optimal solution for a client of mine and would love some input.

So, they have a SKU number, that is “Unisex”, but they would like to brand it on their page and man/woman. So they need different product galleries, BUT, this would require to make 2 different SKUs or somehow extend so 2 SKUs can share stock.

What they want:
On womens category, to show the images with the woman (or at least show this in the thumbnail and first image on product page)
On mens category:
Show the images with the male model.

My idea is to make Image attribute that’s dependent on attribute
Attribute: Each category needed for this gets and attribute, gender “man” or “woman”.
Then, this can be used on the image gallery with tag “man” “woman” to determine which images are used on which categories

Anyone has other input that could be useful? Or some extension maybe?

submitted by /u/misterhak
[link] [comments]

Magento 2.3 after migration – Something went wrong while saving this configuration: Unable to load theme by specified key: ‘default/theme327k’

Magento migration from magento to magento 2.3.3 theme error => There is no default/theme327k inside core_config_data. How to solve the error.

Following tutorial :

Error Screenshot :

How to set default Luma theme?

submitted by /u/aveeva7
[link] [comments]

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

Hello guys,

unfortunately no one is willing to help me at Magento forum wherefore I would appreciate your help very much.

I have a simple product without options, price equals 0, etc. It’s not even visible in store because I just created it to refer to it when adding it to cart. I need to be able add the product to cart programmatically via Rest Api post request. Furthermore I need to add custom options with custom values and a custom price to it, so the options as well as the price will be visible in cart, in checkout and in order (user area & admin area).

My current code looks like this:

protected $_cart;
protected $_productFactory;


public function __construct(
MagentoCheckoutModelCart $cart,
MagentoCatalogModelProductFactory $productFactory
) {
$this->_cart = $cart;
$this->_productFactory = $productFactory;


$product = $this->_productFactory->create()->load($product_id);
$params = array(
'qty' => 1,
'price' => 100,
'product' => $product_id,
'options' => array(
"test" => array(
'label' => 'Print Style',
'value' => 'Test'
$this->_cart->addProduct($product, $params);

The product will be added to the cart and the amount of products equals the quantity I stated in my array.

There are several problems though:

  1. The product is only visible in the cart after adding a different product to it via the regular add to cart button.
  2. The price is not adjusted. The normal price is used.
  3. The custom option isn’t visible. The custom option should be visible in the cart, at the checkout and in the order details.

I also found this article but it doesn’t allow to state completely custom options and values:

It’s really important for me to solve this problem. I appreciate your help.



submitted by /u/Goldkind47
[link] [comments]

How to add a custom container only on certain pages?

Hi, I’d like to add my custom container only to a certain page. In my case I want to add a banner to the homepage. I added my main.content.banner container before main.content which places the container correctly.

<page layout="1column" xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="page.wrapper"> <container name="main.content.banner" before="main.content" > <block class="MagentoFrameworkViewElementTemplate" name="main.content.banner.banner" template="Magento_Theme::html/custom.phtml" /> </container> </referenceContainer> </body> </page> 

Here is an image:

However, I want this container only to be on the homepage. Not on the other pages (like category page). The problem is, how would I tell M2 that I want my custom container only on top of main.content of homepage but not of other pages?

Is that even possible?

Thank you

submitted by /u/zlep
[link] [comments]

Magento 1.9.4 With MariaDB 10.3

I am currently running Magento and in the process of setting up Magento 2 and migrating. I would like to go ahead and upgrade our MariaDB version from 10.1 to 10.3 and was wondering if any of you have done so?

I need Magento 1 to keep running until we switch later this month, but would like to use the newer database version for Magento 2 on the same server.

submitted by /u/xecutech
[link] [comments]

Magento Cloud

I’m having issues with migrating data from a staging branch to integration branch. Basically we haven’t used integration branch in months, so we decided to force push the git files from stage to Integration so we can start using sub developer branches. What I’m asking the community (only magento cloud users) is what is your “local development” process?

1.) Do you start on your local docker, then push it up to integration?
2.) Or do you code directly on a sub integration branch via SSH/SFTP (on phpstorm)
What is the reason for either 1 or 2? Pros or Cons?
Example: Pro: using local docker you can test easier on your local. Con: Coding directly on integration doesn’t allow xdebug?

1.) Do you keep each sub integration branch as your development workspace that is never removed and keep all your git branches pushed to your int branch?
2.) Or do you use each sub integration branch as a “feature” branch that may be the only code needed to test before pushing it up to staging… and then remove the sub integration branch and spin up a new one from the parent integration branch? Thus giving a clean magento store.

submitted by /u/m0th3r5h1p
[link] [comments]

Magento 1 EOL : Adyen end of service from 01/07


We have several M1 shops with a lot of customization that we are migrating to M2.

This migration to Magento2 is taking longer than expected and our ecommerce sites will not be migrated before the 3rd quarter of 2020.

We use Adyen as PSP which has confirmed to us (several times) that from 01/07 they will not process payments from M1.

We are therefore changing from PSP to Ingenico which is more tolerant and which will allow us to finish the year. The Adyen policy seems incredible to me given that our shops are still secure (B2B therefore restricted access)

Do you also have to change your PSP?


submitted by /u/Maroly
[link] [comments]