Magento2: How to move category description to bottom

Try this



<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <move element="category.description" destination="content.bottom" />

Hope this help you

Thanks …

product – how to get short description on mail of refund on Magento2

i am want to show product short description on refund mail.

My error: Fatal error: Uncaught Error: Call to a member function getId() on null in

i am editing in : Magento_Sales/templates/email/items/creditmemo/default.phtml

My code is:

     * Copyright © Magento, Inc. All rights reserved.
     * See COPYING.txt for license details.
    // @codingStandardsIgnoreFile
    <?php $_item = $block->getItem() ?>
    <?php $_order = $block->getItem()->getOrder(); 
        <td class="item-info<?php if ($block->getItemOptions()): ?> has-extra<?php endif; ?>">
            <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
            <p class="sku"><?= /* @escapeNotVerified */  __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
$objectManager =  MagentoFrameworkAppObjectManager::getInstance();
   $productId = $block->getId($_item);
   $currentproduct = $objectManager->create('MagentoCatalogModelProduct')->load($productId);
   echo $currentproduct ->getShortDescription();  

Please help me.

ios – Whats the amount of ads you would be ok with for a game span time of 15-20 minutes? (Also, side question in the description)

I am asking how many ads you would be fine with/would rather have for an app that has a time span of 15-20 minutes. I am trying to not make another homescapes, but for info on the game:

It is a clicker/idle game, but instead of it being focused on one clicker/currency, its focused on three clickers/currencies. With each different currency, you can buy different upgrades for each clicker.

Its in-app purchases will not be a “buy an amount of a currency”, but will instead be something where you buy a different currency, that you can buy permanent upgrades with the currency, and you can get a little currency each time you rebirth.

Also, as a side question: How much money would you pay/be fine with for no ads? Or should I do a “buy anything to get no ads”?

Magento2: How to move product tabs to short description area

You only need to create catalog_product_view.xml.

If you have a custom theme, create catalog_product_view.xml at


If you have a custom module, create catalog_product_view.xml at



<move element="" destination="" after="-"/>

2. More Information

<move element=”product.attributes” destination="" after="-"/>

NOTE:- It will move attributes visible in More Information tab to product details section and will be shown below product details.

Check this link :-

3. Reviews

<move element="" destination="" after="-" />

Hope this help you

Thanks …

legal – In my browser game’s website description, can I use a title of another game?

First up: I am not a lawyer, and the following is not legal advice. For legal advice, you should always consult a lawyer.

Drawing from Examples & Explanations for Intellectual Property by Stephen M. McJohn, there are multiple actions that might be considered infringement of a trademark, including:

Implied Endorsement

…If a consumer sees a mark used in marketing goods or services, she may consider whether the mark owner has authorized the use. If she assumes that every legal use of a mark requires permission of the mark owner, she would likely assume that almost any use of the mark was endorsed by the mark owner.

Initial Interest Confusion

The “initial interest confusion” doctrine finds liability when defendent’s use of the mark may attract the attention of potential consumers looking for the products associated with the mark, even though the confusion is dispelled before a sale is made.

Based on this, it’s conceivable to me that the IP holder for one of the games you reference could try to sue you for using their trademark without permission, claiming that you are implying an endorsement or exploiting initial interest confusion to promote your game off the value of their IP.

Whether such a lawsuit would actually succeed in court, I cannot say. But it doesn’t have to succeed in order to bankrupt you as you try to defend against it.

You could however reference the genres of related games, to attract players searching for similar keywords, without drawing the ire of a specific company’s legal department.

c# – Writing code which is both understandable und pracical: What’s the best way? (see description)

I’m writing an application and I’m stuck on one spot. I try to figure out what is the best way. My application consists of two parts. One part is a console application which should run as a service. Furthermore there is a WPF application which should be used for configuring the console application.

There are several settings which are divided in catgeories. For example general settings, email settings, launch settings and so on. The values should be saved in an object and then exported into json. My WPF application is composed of one window with a navigation bar. You can select a settings page.

Each category has an own page. For a better overview. These pages look pretty similar. There’s a title. There are labels. There are textboxes, checkboxes, custom controls. It depends on the setting.

And here’s my question.

I use styles and templates. This code is understandable and there is a distinction between appearance (XAML) and functionality (C#). Nevertheless it feels like copy&paste.

I’m thinking of a different approach. Create each page dynamically. Reflect the settings object. Create a title, some labels and a suitable control (string → textbox, bool → checkbox,…). It’s more flexible. However, it seems to be more complicated and everything is done in code.

What’s the better way? Is there a framework which deserializes a JSON (or XML) to a page and suitable controls?

custom post types – Plugin translation not working apart from name and description

I wrote a plugin that creates a custom post type and I tried to translate it using Poedit, but it’s not fully working. I did translate a few other plugins before and I’m not sure what’s causing this error:

The plugin’s name and description are correctly translated in the backend, but no post type names are translated.

File Structure

├── languages
│   ├──
│   ├── test-de_DE.po
│   └── test.pot
└── test.php

I defined the Text Domain test and Domain Path languages in the plugin header in test.php.

The post type is defined in the same file like so:



 * Plugin Name: A Test
 * Description: A Test Plugin
 * Version: 1.0.0
 * Text Domain: test
 * Domain Path: /languages

function test_custom_post_types()
    register_post_type('test_post', (
        'labels' => (
            'name' => __('Test Posts', 'test'),
            'menu_name' => __('Test Posts', 'test'),
        'public' => true,
add_action('init', 'test_custom_post_types');

I created a .pot file using the wp-cli command i18n make-pot .wp-contentpluginstest


# Copyright (C) 2020 
# This file is distributed under the same license as the A Test plugin.
msgid ""
msgstr ""
"Project-Id-Version: A Test 1.0.0n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>n"
"Language-Team: LANGUAGE <>n"
"MIME-Version: 1.0n"
"Content-Type: text/plain; charset=UTF-8n"
"Content-Transfer-Encoding: 8bitn"
"POT-Creation-Date: 2020-06-12T15:08:36+02:00n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONEn"
"X-Generator: WP-CLI 2.4.0n"
"X-Domain: testn"

#. Plugin Name of the plugin
msgid "A Test"
msgstr ""

#. Description of the plugin
msgid "A Test Plugin"
msgstr ""

#: test.php:15
#: test.php:16
msgid "Test Posts"
msgstr ""

Then I used Poedit to create the german .po and .mo files.

With the plugin activated I can see the plugin’s name and description in german, but the added post type still shows up in english.

This is the .po file generated by Poedit:


# Copyright (C) 2020 
# This file is distributed under the same license as the A Test plugin.
msgid ""
msgstr ""
"Project-Id-Version: A Test 1.0.0n"
"Language-Team: n"
"MIME-Version: 1.0n"
"Content-Type: text/plain; charset=UTF-8n"
"Content-Transfer-Encoding: 8bitn"
"POT-Creation-Date: 2020-06-12T15:08:36+02:00n"
"PO-Revision-Date: 2020-06-12 15:09+0200n"
"X-Generator: Poedit 2.3.1n"
"X-Domain: testn"
"Last-Translator: n"
"Plural-Forms: nplurals=2; plural=(n != 1);n"
"Language: de_DEn"

#. Plugin Name of the plugin
msgid "A Test"
msgstr "Ein Test"

#. Description of the plugin
msgid "A Test Plugin"
msgstr "Ein Test-Plugin"

#: test.php:15 test.php:16
msgid "Test Posts"
msgstr "Test Beiträge"

As a bonus, it also doesn’t translate (server side rendered) Gutenberg blocks that I created in the same plugin.

Any ideas how to fix the missing translations? Thanks!

magento2 – (Magento 2.3.5-p1) “A technical problem with the server created an error” when editing a category description that has links or HTML comments inside

I created a category description with a style element and some ordinary block-level elements like div and ul, and that worked out fine; then I tried to turn some of the text into links, and whether they’re links to external sites or to internal pages, and whether they have the rel and target attributes or not, as soon as I saved the category description, I got the “technical problem with the server created an error” message whenever I tried to edit the category again.

The category page itself renders as expected, and I can remove the spinner with Inspect Element and edit the category from the backend again, but it does get a bit annoying; also, trying to turn the a tags into HTML comments doesn’t work out so well either, because I get the same error.

I did not find any PHP errors in the logs relating to this, and I did not find anything in the PHP or JS versions of Escaper that appeared relevant; I did see an error in the console relating to the virtual-category previewer in Smile Elasticsuite (this is not a virtual category, but the code needed to load anyway).

Is there any advice about how to isolate this problem? I’d much rather not have to hack something into the backend theme to get rid of that spinner just so I can keep editing the category description.

Another idea I had is that I could break all of that content out into a block and dynamically include it (I’ve already used the “CMS Block” selector for something else).

cpu – My Kali Linux is Freezing Randomly (Check description)

See My issue is that my system Os freezes randomly like for example I have opened a VS code and I’m writing a code suddenly everything freezes, I tried to see the CPU usage but I saw that even closing a normal text editor cpu usage goes more than 100% I don’t know why it happens and it’s not like my hardware is damaged, whenever I reinstall os The system works outstanding For more than 3 months, I can’t even see what is happening in CPU usage every data freezes. Please Help I will really appreciate your help. Thanks