Skip to main content

Magento2

Power your online business with the most flexible and scalable ecommerce platform

Generate data for performance testing

To Generate data for performance testing, you can use those four profiles,

1- Small profile (small.xml)

2- Medium profile (medium.xml)

3- Large profile (large.xml)

4- Extra large profile (extra_large.xml)

and you can install the profile using SSH commadn

1- first go to the magento root folder.

2- type this comand 

php bin/magento setup:perf:generate-fixtures  {path to profile path}

The files are exist in this path

{magento root} /setup/performance-toolkit/profiles/ce

Magento2 Deploy specific theme with specific locale language

In this wiki, i will show you how to deploy the static content for specific theme and the locale languages 

First of all, we know that the Deploy command is 

php bin/magento setup:static-content:deploy

Now , if you need to deploy a theme we need to use this command

theme name : {vendor}/{them name}

Command: php bin/magento setup:static-content:deploy --theme {vendor}/{them name}

if you want to deploy many locale you can use this command

locales are : en_US, fr_FR

Display PHTML file or Static Block in CMS page Magento2

Yo display phtml file in CMS page put this line


{{block class="Magento\Framework\View\Element\Template" name="test_block" template="{Vendor}_{Module}::test_block.phtml"}}

the same way in XML layout file you can use 

<block class="Magento\Framework\View\Element\Template" name="test_block" template="{Vendor}_{Module}::test_block.phtml"/>

if you want to put it in phtml file