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?
Magento migration from magento 188.8.131.52 to magento 2.3.3 theme error => There is no default/theme327k inside core_config_data. How to solve the error.
Following tutorial : https://bssthemes.com/blog/unable-to-load-theme-by-specified-key/#Using_SSH
Error Screenshot : https://snipboard.io/b0UZIQ.jpg
How to set default Luma theme?
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:
public function __construct(
$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'
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:
- The product is only visible in the cart after adding a different product to it via the regular add to cart button.
- The price is not adjusted. The normal price is used.
- 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: https://devdocs.magento.com/guides/v2.3/rest/tutorials/orders/order-add-items.html
It’s really important for me to solve this problem. I appreciate your help.
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="http://www.w3.org/2001/XMLSchema-instance" 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: https://imgur.com/AQ2vbsk
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?
I am currently running Magento 184.108.40.206 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.
I have been developing shopping cart solutions for many companies since 2009 with the majority of them being Magento based. What I would like to do is partner with companies that can provide fulfillment for orders I take for their products. PM if this interests you.
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.
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?