Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Denotes a question related to the Magento products.
0
votes
Get category name from product detail page
To get a consistent ordering you can use asort().
1
vote
Buy a single product from bundle product
You can set the simple product's visibility to "Catalog, Search" if it is currently "Do not show individually". Then they would show up in the catalog and can be purchased separately.
1
vote
Accepted
How can shipping cost in checkout cart?
There is a box in the shopping cart where you can enter your ZIP code and country to estimate shipping costs. If you use this, the shipping cost (and tax) is included in the cart.
1
vote
Accepted
Magento 2 delete specific product categories
You can do it with n98-magerun2 if this is a one-shot task:
If you want to delete categories with IDs 1, 2, 3, 4
$di->configure($di->get(\Magento\Framework\ObjectManager\ConfigLoaderInterface::class)- …
4
votes
How to Insert Product Selection Widget into Backend Form?
When the user chooses a product, the parameter id_path would be set in your widget. … Inside of your widget block you can get this parameter like this:
$this->getData('id_path');
The ID path contains stuff like 'product/123' - you probably only want the product id:
list($dummy, $productId …
24
votes
Accepted
How to Programmatically set a Product's Multi-Select Attribute by Labels
$attrCode = 'color_base';
$sourceModel = Mage::getModel('catalog/product')->getResource()
->getAttribute($attrCode)->getSource();
$valuesText = explode(',', 'red,green,blue');
$valuesIds = array_map … (array($sourceModel, 'getOptionId'), $valuesText);
$product->setData($attrCode, $valuesIds);
$product->save(); …
2
votes
Accepted
Change scope for "Maximum Qty Allowed in Shopping Cart" in product
This field is stored in the table cataloginventory_stock_item which does not have a store_id field - so you basically could extend this table and adding a store ID.
Then you have to modify \Mage_Cata …
1
vote
Magento 2 How to Remove product information tabs
You might want as well just to un-check the option "show on product detail page" for all attributes. …
17
votes
3
answers
17k
views
How to Programmatically set a Product's Multi-Select Attribute by Labels
If have a multiselect attribute and want to set the selection on a product.
$selectedOptions = "red,green,blue";
$product->..... // # what to do?
How can I do that? …
0
votes
Get product only with attributes used in product listing in a test
This should also work
/** @var \Magento\Catalog\Model\Config */
protected $config;
...
$attributes = array_keys($this->config->getAttributesUsedInProductListing());
11
votes
3
answers
12k
views
Find out to which categories a product belongs to
I opened a product in the backend, but when I switch to the categories tab, the category tree is fully collapsed. I would have to expand all categories to see in which ones the product is in. … How can I quickly see (in the backend) to which categories the product belongs? …