Today, we’ll show you how to create a module for the shipping service. The main peculiarity is that such module should be inherited from the abstract class CarrierModule and should implement the following 2 methods: «getOrderShippingCost», «getOrderShippingCostExternal»: (more…)
In order to add a video content to a product in Magento 1.x, you needed to create a separate module or an attribute. In Magento 2 it is much easier. This functionality has been added to a default functions set.
Let’s take a look into how to add a video from YouTube service.
At first place you should generate API in order to use YouTube functions. Open your YouTube account following this link.
Let’s create a new project.
Enter the API section.
Select API Youtube and activate it.
Generate a key.
After that, open Magento admin panel and save the key.
Now you can add YouTube video content for your products. Enter product page in the admin panel and select Images and Videos.
And enter the link to the video content that you would like to add.