User wants to customize the website to have a video in the website. RequirementUser can upload a video file and then apply it with the following HTML code to display the video on webpage. Solution Navigate to Documents > Files > File Cabinet Click Web Site Hosting files Click Live Hosting Files Click Add File Browse a video file from a local directory… Continue reading Display a Video File in Site Builder
Month: December 2021
Add new campaign subscription category in email preferences in website.
Enable the feature.The subscription record is available only when the SuiteBilling feature is enabled at Setup > Company > Setup Tasks > Enable Features (Administrator), on the Transactions subtab. When the feature is enabled, you can access the subscription record in the UI by going to Transactions > Subscriptions > Create Subscriptions (Administrator). Go to Setup > Marketing >… Continue reading Add new campaign subscription category in email preferences in website.
The keys in React JS
The ‘React Way’ to render a List Use Array.Map Not a For Loop Give Each Item in Unique Key. Avoid using Array Index As the Key A key is a special string attribute that needs to be included when using lists of elements. Example Importance of keysKeys help react identify which elements were added, changed… Continue reading The keys in React JS
Remove Category Image on top of Category Page and Sub-Category Page
You can remove the image via layout in your custom theme. For example, in your custom theme: app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml – The layout – Template
How to list posts in a Blog page on a particular criteria
To Fetch and display all the posts in a page.(From the current scenario, it displays title and tag name.) Filter according to tag slug To list only three items
How to set multiple currencies in one storefront?
To setup multiple currency on Magento 2 follow this step: Setup currency: Move to menu Stores >> Configuration. Under GENERAL tab you will find sub menu Currency Setup. Setup Currency Options with what you need and click Save Config. 2.Setup currency rates: Move menu to Stores >> Currency Rates. Set value for all parameters and hit Saves Currency Rates
How to Fetch Post Data and Add Post Custom field in WP.
Possibility to fetch post data to a page template in WP Instead of fetching the content of a post to a template page, I discovered how to build up the post type’s common template. As a result, we may make a post using the same template. This procedure is comparable to making a page template.… Continue reading How to Fetch Post Data and Add Post Custom field in WP.
Commerce category import – Issue
Existing Categories replaced by other categories after importing new categories Commerce categories are used to create a hierarchical structure of items in your web store. The fields supported for commerce category CSV import reflect those on the Commerce Category Record at Commerce > Content Management > Catalog & Categories > Commerce Categories. After the import, the… Continue reading Commerce category import – Issue
How to get all children product from parent configurable product in magento2
You have to just keep below code inside block file and call function inside your template,
Correct Way to get Order items in magento 2
This is how the different methods to get items from an order work: This is how the different methods to get items from an order work: getItems(): returns array of items from loaded order item collection getAllItems(): returns array of all items that are not marked as deleted getAllVisibleItems(): returns array of all items that… Continue reading Correct Way to get Order items in magento 2