Tier price not working on Migration_Default attribute set Magento 2 - magento

I just migrated to magento 2.2.6. If I change the attribute set of product from 'Migration_Default' to 'Default', then it works fine. Also that it is just not showing on product detail page, but working fine in cart page on both attribute sets.

Got it resolved. In my case it was a qty attribute that was duplicated, i.e their were 2 qty attributes in 'Migration_Default' attribute set. So I just made the values of all products with 'Migration_Default' attribute set, to zero '0' from admin. (catalog > product > filter > {attribute_Set -> Migration_Default, status -> enabled} > select all > update attributes > quantity attribute -> 0 > save). Hurry!

Related

Same sku in different row in cart | Grouped product | Magento

If we have same sku present in different grouped product, i would need to display that sku in different rows in cart.
For example,
I have a grouped product sku GP001 which has the child skus (SKU0001,SKU0002 and SKU0003).
I have another grouped product sku GP002 which has the child skus (SKU0001,SKU0004 and SKU0005).
Scenarios:
1) Add GP001 to cart
2) Add GP002 to cart
Expected :
SKU0001 shoule be present in cart as two separate rows.
1) Add GP001 to cart
2) Add SKU0001 to cart
Expected :
SKU0001 shoule be present in cart as single row with increased qty.

Get products which are back in stock in Magento

How to get products which are back in stock i.e whose quantity is changed from 0 in Magento recently?
Open Admin > go to catalog> Manage Product > Select multiple product that have 0 qty > Select UPdate attribute (left to submit button) > Submit > Product Information > Inventory > Change Qty > save.

Credit Memo’s Return to Stock Checkbox Unavailable for Fixed type Bundle Products

Following are my Magento setup regards to this issue
Configuration
System > Configuration > CATALOG Tab > Inventory > Automatically Return Credit Memo Item to Stock = YES
Bundle Products
001 = SKU, Weight and Price set to DYNAMIC with Two Bundle Items
002 = SKU, Weight and Price set to FIXED with Two Bundle Items
After I put Orders and Invoices with above bundle products.
Assume enter code here
ORDER1 has product 001
ORDER2 has product 002
The Return to Stock Checkbox is available/visible only for ORDER2 Only. Not Available for ORDER1
Can anyone help me telling why is that?

Magento set "Show All" products by specific category (or in .phtml) rather than globally

I'm aware of the setting in the admin panel for the default number of products to show on the category list pages. This appears to be a global setting for the whole store. I'm looking for a way to set this on a per category basis (e.g. have most categories default to 25 products per page, but one specific category default to showing all products on the first page). Ideally this would be done in admin or in a .phtml file if possible. How can I set the default products per page for a specific category?
Take a look in
design/package/theme/catalog/product/list/toolbar.phtml
The items per page select drop down is generated by a for loop around:
$this->getAvailableLimit()
The block for the toolbar has the following method on it:
public function getLimitUrl($limit)
{
return $this->getPagerUrl(array(
$this->getLimitVarName() => $limit,
$this->getPageVarName() => null
));
}
The trick is to do one of the two following:
1) leverage magento to build the proper url when it is injected in any link directing to the category you want to be in view all mode.
2) on the /catalog/product/list/toolbar.phtml block check the current category, if the current category is the desired category execute the following code:
if( strtoupper($this->getLimitVarName()) != "ALL" )
{
$viewAllUrl = $this->getLimitUrl('All');
$this->_redirectUrl( $viewAllUrl );
}
At Admin Panel
Go to -> CMS -> Pages -> Home Page
Click on "Content" tab on LEFT
Click on "Show/Hide Editor" Button at RIGHT
Copy - Paste This Code there :
{{block type="catalog/product_list" category_id="2" template="catalog/product/list.phtml"}}
Give Category ID of your desired Category
To check Category_id of any category Go to : Catalog Menu -> Manage Catagories
Click on category, at right side's TITLE somewhat like will be displayed :
"CATEGORY_NAME ( ID : 5 )"
Regards.

is it possible to get only the associated product count from shopping cart?

I am working on a Ajax cart for my website. I am trying to validate Configurable products for the stock availability. Please consider below case
Cotton shirt (Product ID : 421 - Configurable Product)
Size : L (Product ID : 425 - Simple product)
Size : M (Product ID : 436 - Simple product)
User should select at least one size to add product to the cart.
When i added this product with "Size L" twice and added this product with "Size M" once.
And when i print the item ids in shopping cart, it shows only the id of Configurable product (421).
How do i get ids of Simple product which are really being added to the cart?
You will need to check if the product in the cart is configurable, then if it is you can get the information stored in the product options to work out the simple product that was actually added. The below code should help a bit:
if($product['product_type']=='configurable'){
$options = unserialize($product['product_options']);
$simpleProduct = Mage::getModel('catalog/product')->loadByAttribute('sku',$options['simple_sku']);
}

Resources