Categories
CMS Mastering Development Wordpress

Securing WordPress running on Azure platform

We have a static website hosted on Microsoft Azure. Our marketing team wanted a easy way to update it so WordPress was installed on Azure, the site was created, marketing team updates it. A WordPress plug-in exports their updates as HTML which is shown on the static website. By not allowing WordPress to constantly run, […]

Categories
CMS Drupal Mastering Development

How to use computed twig element in Drupal Webform module to get value from a custom composite element?

I have created a custom composite element by cloning the example module of Drupal 8 Webforms. It has a radio button and 4 select boxes. So when clicking ‘Add" button, another row is being created, and likewise a series of 10 clicks would make the page too lengthy. I need to list out a selected […]

Categories
CMS Drupal Mastering Development

db_select condition is fails when query argument contains & Symbol. how to solve it?

$query = db_select(‘node’,’n’) ->fields(‘n’,array(‘nid’)) ->condition(‘n.title’),$node_title,’=’);. when the n.title and $node_title string contains the & symbol, it isn’t working. how to encode the n.title ?

Categories
CMS Magento Mastering Development

How to add sales rule action fieldset in customer group area

I want to add sales rule fieldset to customer group form using custom module. can any one please guide me on this how to add this sales rule condition form under customer group edit form and save this info in custom table for later use on frontend. Here is how i would like to display […]

Categories
CMS Magento Mastering Development

Installing magento 2.4 issue

After running the composer command: composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition magento2 I am receiving the following error: An error has happened during application run. See exception log for details. and in the logs: main.CRITICAL: No key available {"exception":"[object] (RuntimeException(code: 0): No key available at Development/magento2/vendor/magento/framework/Encryption/Encryptor.php:255)"} [] Not sure why I am not getting the setup wizard. […]

Categories
CMS Magento Mastering Development

How to reduce product description and short description input field height in the backend?

Im using magento 2.3.4 and when i want to add/edit new product by default the product description and short description height is set too much like this: how can i reduce this?

Categories
CMS Magento Mastering Development

How to display product image in summary section in bundle product page in Magento 2?

we are using Magento V 2.3.5-p1 In default Magento when we select options in bundle product page the selected option will be displayed in the summary section. By default, only the quantity and name of the selected option is displayed in the summary section. I have created one bundle product and created bundle options with […]

Categories
CMS Magento Mastering Development

magento2 plugin and str_replace

In file module magento have function public function formatPrecision( $price, $precision, $options = [], $includeContainer = true, $addBrackets = false ) { if (!isset($options[‘precision’])) { $options[‘precision’] = $precision; } if ($includeContainer) { return ‘<span class="price">’ . ($addBrackets ? ‘[‘ : ”) . $this->formatTxt( $price, $options ) . ($addBrackets ? ‘]’ : ”) . ‘</span>’; } […]

Categories
CMS Magento Mastering Development

Allowing two base URLs (same instance, same store)

Is there any way to allow Magento to accept two base URLs? The reason being our security team requested to disallow admin URL from being accessed from the internet so we are planning to use two URLs for internet vs intranet respectively. The admin URL will be blocked if accessed via the internet base URL […]

Categories
CMS Magento Mastering Development

Upgrade magento 2.3.3 to 2.4

How to upgrade Magento 2.3.3 to Magento 2.4?