Hi,
1. Overriding show_microdata.php is indeed the way to go.
2. You can indeed do it like that. However, as you can read at
developers.google.com/search/docs/appear...d-data/return-policy
supporting all the cases for us in an interface is complex. A simpler approach is to just configure the return policy in the settings of your merchant account:
support.google.com/merchants/answer/1401...8037-3481869007&rd=1
By configuring it in your merchant account, you don't have to create an override of this view file. So, it will be easier to maintain in the long term. This possibility is why we didn't bother with implementing something for this in HikaShop.
3. For shipping details, you can configure the "Shipping" setting of the HikaShop Google Products plugin:
www.hikashop.com/support/documentation/8...google-products.html
The shipping rules for your product. Rules must be separated by a comma. Each rule has four variables separated by a colon. For example, if you want two shipping methods for France, a standard one at 5 euros and an express one at 10 euros you should write: FR::Standard:5.00 EUR,FR::Express:10.00 EUR . If you enter here the column name of a custom product field, it will use the value of the custom field for each product allowing you to have different shipping rules for each product.
With it, you can provide shipping fees globally or per product and this will be provided to Google via your product feed generated by the Google Products plugin. However, this won't be added to the JSON-LD output by show_microdata.php as this is not supported for now.
However, similarly to the return policy, it's also possible to configure your shipping fees directly in your merchant account:
support.google.com/merchants/answer/1257...1815-1460720483&rd=1
So that's the approach I would normally recommend.