Amazon Product API: Offers from Amazon missing - amazon-product-api

I am confused how the Amazon Product API works. For my example I used this ASIN (B00Y9S4V22) which is available in the german Amazon.
I requested the data from the API with the response Group "Large,OfferFull,Offers" and was confused because the only price it returns me is "1,80". On the Amazon Page itself it shows 2,37 (orderable with Prime).
As you can see in the response below it says that there are total 3 new (In the Summary in TotalNew) - which is correct. But in the Offer Listing I only have 1 of them - the cheapest. But my goal is to get the offer which is sold by Amazon it self / prime orderable / plus-product orderable. But these offers are missing completely.
When I open the "All Offers" link I get this result:
As you can see the amazon offer is listed there - but still missing in my response.
XML Response (I removed unnecessary properties)
<FormattedPrice>EUR 2,37</FormattedPrice>
<FormattedPrice>EUR 1,80</FormattedPrice>
<Name>mane Büroshop</Name>
<FormattedPrice>EUR 1,80</FormattedPrice>
<FormattedPrice>EUR 0,57</FormattedPrice>
<Availability>Versandfertig in 1 - 2 Werktagen</Availability>
And here is the Request:
<Argument Name="AWSAccessKeyId" Value="---"></Argument>
<Argument Name="AssociateTag" Value="---"></Argument>
<Argument Name="Condition" Value="All"></Argument>
<Argument Name="IdType" Value="ASIN"></Argument>
<Argument Name="ItemId" Value="B00Y9S4V22"></Argument>
<Argument Name="Operation" Value="ItemLookup"></Argument>
<Argument Name="ResponseGroup" Value="Large,OfferFull,Offers"></Argument>
<Argument Name="Service" Value="AWSECommerceService"></Argument>
<Argument Name="Timestamp" Value="2018-10-30T22:14:08.000Z"></Argument>
I know that there is a "ListPrice" but as far as I understand Amazon this is not always the price which is Amazon is selling it.

For anyone else who is looking for a solution:
You can also provide the argument "MerchantId" and set it to "Amazon". I am still confused why not all Offers are listed but when setting the argument "MerchantId" the response will provide the Amazon Offer (but no offer else)


Sales Order Export CSV in Magento2

How can we add new column with custom data in the “Order Export CSV” like discount amount, coupon code, Product Attributes?
I found solution by myself spend few hours on it. Below steps will clear solution.
1) Create New Column in below xml
<column name="custom_product_name" class="Magento\Sales\Ui\Component\Listing\Column\Price">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">textRange</item>
<item name="visible" xsi:type="boolean">false</item>
<item name="label" xsi:type="string" translate="true">Custom Product Name</item>
2) alter sales_order_grid table, (Using upgrade Schema)
ALTER TABLE `sales_order_grid` ADD `custom_product_name` VARCHAR( 255 ) NOT NULL ;
Note: column name of table and column name in XML should be same.
3) Run Observer after the place order. StackOverflow - Which observer to use after success order on Magento 2?
Important : DO NOT work in core files, you have to override all the files in your module.

Overwriting Templates with custom Module in Magento 2

I am trying to overwrite a template defined in /vendor/magento/module-grouped-product/view/frontend/layout/catalog_product_view_type_grouped.xml in a custom module. The file has a block named defined like so:
<block class="Magento\GroupedProduct\Block\Product\View\Type\Grouped" name="" before="" template="product/view/type/grouped.phtml"/>
So I created a file /app/code/FortyThree/GroupedConfigurableProduct/view/frontend/layout/catalog_product_view_type_grouped.xml and in it
<layout xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<referenceBlock name="">
<action method="setTemplate">
<argument name="template" xsi:type="string">FortyThree_GroupedConfigurableProduct::product/view/type/grouped.phtml</argument>
and created the corresponding .phtml file but it doesn't overwrite the original template file. Is there something else I need to do to get the overwrite to register? I've tried setup:upgrade and flushing the cached nothing seems to work. I also have the Magento_GroupedProduct set in the sequence section of my module.xml to make sure its loading after.
It really doesn't seem like my catalog_product_view_type_grouped.xml is being read at all since nothing I do in there seems to do matter.
You layout file isn't good.
This should do the trick :
<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<referenceBlock name="">
<action method="setTemplate">
<argument name="template" xsi:type="string">FortyThree_GroupedConfigurableProduct::product/view/type/grouped.phtml</argument>
Also don't forget to add a dependency to GroupedProduct in your module.
There are a few ways to check if you are referencing properly a block. You could simply use a remove, to see if that works to confirm that you have the proper block.

Magento 2 : Display multiple grids in admin area

I have displayed my one custom table in a grid format. Now, I want to display one other custom table in a grid format (Under different menu). But I am little bit confused, how to add code in di.xml file.
Here is my di.xml which I have created for my first grid :
app/code/Ved/Mymodule/etc/di.xml :
<?xml version="1.0"?>
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<virtualType name="Ved\Mymodule\Model\ResourceModel\News\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<argument name="mainTable" xsi:type="string">ved_zipcodes</argument> <!-- here ved_zipcodes this is the db table name -->
<argument name="resourceModel" xsi:type="string">Ved\Mymodule\Model\ResourceModel\News</argument> <!-- Path -->
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<argument name="collections" xsi:type="array">
<!-- Here name value, we will use in mymodule_my_grid.xml layout file -->
<item name="mymodule_news_grid_data_source" xsi:type="string">Ved\Mymodule\Model\ResourceModel\News\Collection</item> <!-- Collection path -->
How should I update my di.xml for displaying second grid in admin? <>br
Any help would be highly appreciated. Thank you.

Magento 2 - How to change htmlClass, htmlId attributes by referenceContainer or another way?

In magento 2 Frontend developer guide, I have read that :
Certain attributes, like htmlClass, htmlId, label attributes can be
changed in extending layouts
I want to change htmlClass of the container defined in 1column.xml. Could you tell me how to do it by referenceContainer or another way ?
I used : (both html_class & htmlClass)
<argument name="html_class" xsi:type="string">sm-page-header</argument>
but not affected
If a container is declared in xml with the following code:
<container name="my.container" htmlTag="div" htmlClass="old-class">
You can simply override the css-class by placing the following code somewhere in your extending layout files:
<referenceContainer name="my.container" htmlClass="new-class" />
EDITED: Bellow does NOT work;
<referenceContainer name="">
<argument name="html_tag" xsi:type="string"><![CDATA[]]</argument>
<argument name="html_class" xsi:type="string"><![CDATA[]]</argument>
<argument name="html_id" xsi:type="string"><![CDATA[]]</argument>
For changing or adding new class/id you can use htmlClass and htmlId attributes in container (child of referenceContainer) instead using of referenceContainer.
1column.xml file path for custom theme
<container name="footer-container" as="footer" before="before.body.end" htmlClass="page-footer another-class" htmlId="test-id" label="Page Footer Container" htmlTag="footer" />
for details please take a look in this built-in 1column.xml file.

Lucene search in sitecore with 2 websites

I integrated lucene search in my sitecore website which has one more website under content item in the content tree. I added a new searchindex.config file in app_congif/include folder. I've also changed the lucenesearch source to get siteroot as
SiteRoot = database.GetItem("/sitecore/content");
But the search isn't working. It shows:
unable to find results item
which means it isn't getting anything in the /Standard_Items/Search_Results. This is my searchindex.config:
<configuration xmlns:patch="">
<database id="master">
<obj type="Sitecore.Data.$(database).$(database)HistoryStorage,Sitecore.Kernel">
<param connectionStringName="$(id)"/>
</Engines.HistoryEngine.Storage> <Engines.HistoryEngine.SaveDotNetCallStack>false</Engines.HistoryEngine.SaveDotNetCallStack>
<index id="SearchIndex" type="Sitecore.Search.Index, Sitecore.Kernel">
<param desc="name">$(id)</param>
<param desc="folder">search_index</param>
<Analyzer ref="search/analyzer"/>
<locations hint="list:AddCrawler">
<resources type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel">
<include hint="list:IncludeTemplate">
<template>{2A609D52-7B9F-49F3-83BE-047FD16397A7} </template>
<template>{F98712D8-27DB-4324-82E6-65242F0977F9} </template>
<template>{849CA304-3F51-4FCB-B9B3-2AC7E950B476} </template>
<template>{A87A00B1-E6DB-45AB-8B54-636FEC3B5523} </template>
<template>{52BDB3C4-0585-437C-89AD-6AAC81950633} </template>
here is my content tree. I want to search in sitecore/content/DruBlue.
Can anyone please help me ?
You have an error in your configuration:
<include hint="list:IncludeTemplate">
<template>{2A609D52-7B9F-49F3-83BE-047FD16397A7} </template>
<template>{F98712D8-27DB-4324-82E6-65242F0977F9} </template>
<template>{849CA304-3F51-4FCB-B9B3-2AC7E950B476} </template>
<template>{A87A00B1-E6DB-45AB-8B54-636FEC3B5523} </template>
<template>{52BDB3C4-0585-437C-89AD-6AAC81950633} </template>
This part will only include the {52BDB3C4-0585-437C-89AD-6AAC81950633} template as all they have the same tag name. You need to use different tags for each of them (doesn't matter if you use template1, template2 ... or news, article, event, e.g.:
<include hint="list:IncludeTemplate">
See Sitecore search and indexing pdf for more details.
Then you should rebuild the index (you can do this from Sitecore Desktop > Control Panel > Database > Rebuild the Search index. When reindexing is done try to confirm that there are any items in the index. You can use
Sitecore index viewer module or standalone Luke - Lucene Index Toolbox.
Here you can find more information about solving Sitecore and Lucene problems.