Questions tagged [dynamic]

Denotes questions related to dynamic content or dynamic functionality.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to edit html block element to a form element? magento 2

Add FieldSet in Ui Rename category true true true 1 ...
user avatar
0 votes
0 answers
25 views

Dynamic update of price when configurable variation choosen

I am adding PayPal pay in 3 which I want to dynamically update the price when choosing different options on a configurable product. So in my code I need a way of updating the $finalPrice variable ...
user avatar
  • 1
0 votes
1 answer
26 views

Dynamic category module for price range based category

Thanks in advance. I am looking for a script or module that will run via cron and remove products from a category if their price is above 5 USD also it will add products that have a cost up to 5 USD.
user avatar
0 votes
0 answers
27 views

Magento 2.4.2 Body Tag Empty

Trying to update one site from 2.4.0-p1 to 2.4.2-p1 and another from 2.3.6 to 2.4.2-p1 Both Magento instances now don't add anything to the Body Tag? Before: <body data-container="body" ...
user avatar
  • 11
2 votes
1 answer
183 views

How to handle dynamic data in a script tag in head section for every page

I am absolutely new to Magento 2 (1 week in). I am trying to develop a Magento module that lets the admin specify a string (token) and when the admin saves the module I would like the token to ...
user avatar
  • 23
0 votes
3 answers
363 views

M2.3 - How to set Catalog -> Categories -> Content -> Description cms block based on shop by attributes selection programmatically?

I want to set the category description cms block based on the shop by attributes selection on product listing page,
user avatar
  • 95
0 votes
1 answer
645 views

How to import product images programmatically with the use of custom script in magento 2?

I have all product images in one folder. Images are in path like - pub/media/Fotos/MA/{{ sku }}/ So need to import images as per SKU folder. I want dynamic script for it.
user avatar
  • 1,958
0 votes
1 answer
378 views

How to redirect to controller using jquery ajax in magento 2.3.5

I want to pass dynamic text-box value to controller using ajax, so if anyone have idea about it then please share with me. Thanks In Advance
user avatar
  • 498
1 vote
0 answers
105 views

Review form - dynamic rows

I need to add dynamic rows to review form, the problem is that the form is not defined in xml, but in php class \Magento\Review\Block\Adminhtml\Edit\Form, i cannot find how to add dynamic rows via php,...
user avatar
1 vote
0 answers
58 views

create dynamic pages

I have a website with about 200 accessories for a certain type some cars, the accessories are set up as normal products within Magento. However, the cars are stored in a new table within our Magento 2 ...
user avatar
3 votes
1 answer
754 views

Magento 2 How add dynamic rows field to custom widget

I need add dynamic rows field to my custom widget, which should have three columns: title(text field), color(select field), url(text field). There should also be an add button, and delete buttons for ...
user avatar
  • 31
0 votes
2 answers
55 views

Dynamic Content based on items in Basket

Is there a way to dynamically display content on a page, based on whether there is something in your basket. i.e Page would display certain block of text IF there is something in the customers basket ...
user avatar
  • 81
0 votes
1 answer
391 views

Change page layout dynamically depending on url parameter

The standard layout of my categories is 2-columns-left so that the layered navigation is visible in my shop. What I want is, to use the same categories to display content. This is an example for my ...
user avatar
1 vote
4 answers
4k views

Magento 2 system configuration state multiselect dropdown

First i have created country drop-down in back-end system configuration, using source model as <source_model>Magento\Directory\Model\Config\Source\Country</source_model> Next based on ...
user avatar
  • 1,706
0 votes
1 answer
312 views

Dynamic change of custom attribute in configurable product. M2.3

I need to change custom attribute and sku every time when customer change color and size (http://prntscr.com/nwzt1h). With sku i found article how to do it and it's working, but i can't find some ...
user avatar
0 votes
0 answers
773 views

Mixin for Magento_ConfigurableProduct/js/configurable::_reloadPrice not working

I'm trying to follow the example here Magento 2 - Why do SKU not change dynamically in configurable product view page to create a mixin for configurable products that will show dynamically a ...
user avatar
  • 531
2 votes
0 answers
19 views

Magento 2 : Category products dynamic rules get scope between 10% and 20% discount

We have a category where we need to add all products from another category with between 10% and 20% discount. The problem is that some of the products have a special price AND a price-rule which ...
user avatar
  • 21
1 vote
0 answers
38 views

How to add dynamic row in custom module magento 2 [duplicate]

I have created the adding dynamic row entity in config module, here is the snap shot for same, Now i want the same functionality while i am adding or editing the form through admin grid . Please ...
user avatar
1 vote
2 answers
468 views

How to call custom slider from backend to frontend dynamically in magento2.2.5?

I have created a custom module in backend for uploading image slider in homepage, but I am not able to call in homepage?(frontend). I don't know where I am making mistake. Here is my code. <?php $...
user avatar
  • 925
1 vote
0 answers
44 views

How to connect whole Native site of Magento in Mobile application?

Is it possible to connect whole Native Magento site with Fire-base ? Without creating APIs or connection the default APIs. Example http://127.0.0.1/Magento23/catalog/product/view/id/2446/ Where ...
user avatar
  • 7,399
-1 votes
1 answer
30 views

How to display created dynamic attibute into the customer array?

We already created dynamic attribute and that attribute display on the admin side Account information tab of admin. But when we need to add some value on that feild at that time we find that, that ...
user avatar
0 votes
1 answer
2k views

in Magento 2 how to Open Modal popup with dynamic value for dynamic click button?

When I click on item "edit link" modal popup is open but when i edit other product it will show previous product data. Can anyone help to get dynamic popup with dynamic data in per different ...
user avatar
1 vote
1 answer
219 views

Get breadcrumb in Controller Action

I need to get the breadcrumb in the controller action because I am using the cache modules(FPC and another system externally). It cached the breadcrumb in the frontend page. With that, I would use ...
user avatar
0 votes
1 answer
37 views

Dynamically change template based on user type

We're about to move to Magento 2.3. Trying to understand whether a product page can display one of two actions based on the visitor/customer type. I have one product with two different customer types....
user avatar
3 votes
1 answer
663 views

How to create a dynamic generated admin fields with Image upload?

This is XML : <field id="threesegmentimages" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1"> <field id="threesegmentimages" ...
user avatar
4 votes
0 answers
1k views

Create system config section with dynamic number of fields

I have looked around and this is my last resort. I'm new to magento 2. I created a plugin in magento 1 (using this link as a good guide) and i would like to replicate same in magento 2 however things ...
user avatar
  • 41
1 vote
1 answer
308 views

How can I make a cms pages product price dynamic?

So I have a cms page which I use as a lading page. The page is custom html coded with 3 of my products (basically showing the product and the price). When you click on an "Buy Now" button it takes you ...
user avatar
  • 496
0 votes
1 answer
592 views

How to implement dynamic product price calculation on weight basis in magento 1.9?

I'm developing an eCommerce website in Magento for Silver business. the price of the product is should be in weight basis. For example today I've added a 1000 rupees silver necklace of 10 grams to my ...
user avatar
  • 13
3 votes
2 answers
1k views

Magento 2 - Generate css dynamically

I have an observer and i need to generate a css file dynamically - using my admin theme setting configuration - calling my observer function.
user avatar
0 votes
1 answer
703 views

Magento 2 : How to change input tags value dynamically which is rendered by knockout js?

I need to change product enable option to keep in disabled by default. I used data-index in css to hide the input which works fine but I need to change input tags value. My phtml to switch check box ...
user avatar
  • 828
0 votes
1 answer
1k views

Custom Module dynamic URL

I am in the process of developing a Custom Module for my Magento 2 web store. The module will be a forum, I am developing this from scratch as it will require integrating with an existing custom ...
user avatar
0 votes
1 answer
959 views

Magento 2: Getting dynamic url of image from media browser in js

So I have been building an extension to allow me to insert images into the textarea block of blocks and pages with custom styles. I call the MediabrowserUtility and am able to get a long funky url ...
user avatar
5 votes
1 answer
4k views

Magento 2: Create a Page with Dynamic URL with Same Controller

I posted a question earlier but didn't able to understand the answer, Magento 2: How to create a dynamic url with the same controller i want to create a page with the dynamic url but with same ...
user avatar
3 votes
2 answers
1k views

Magento 2.1 Dynamic Drop-downs 2 models with UI component

Having 2 Drop-downs where the second one should load options according to the first one selections, but both come from the EAV models, I want to make them work in the admin but I can understand how to,...
user avatar
1 vote
1 answer
25 views

Products in Magento - SKUs from a category

Would you have any way to get product SKUs from a category? For example, I have a category with id = 13 and I need to get the SKUs of these products dynamically, so I can do checks that I created in ...
user avatar
1 vote
0 answers
478 views

How to display custom category attribute in category form magento2?

I have created custom category attribute in Magento 2.1.X version. Attribute created successfully in the database. I know display category attribute using UI-component 'category_form.xml' but that ...
user avatar
  • 141
8 votes
1 answer
1k views

How to add a dynamic label In Magento 2?

I want to add a dynamic label in customer dashboard (label name set dynamically ) <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" ...
user avatar
0 votes
1 answer
821 views

Magento 1.x custom block with dynamic content

Is it possible to add a block to Magento page which has dynamic content. Let's say I want to create a block in which a product is displayed. And after a certain period time 15 seconds for example the ...
user avatar
  • 111
1 vote
1 answer
822 views

Load CMS Block or PHTML file after page load

I have a PHTML file that loads products based on the data I send via the set data method. e.g ->setData('xxx', $xxx) I call this file in another PHTML file numerous times to show all products. ...
user avatar
0 votes
2 answers
1k views

Magento 2 : How to Add Dynamic CSS Url

I need to add custom css in head dynamically, where css url is dynamic. I can add using below code but page will get cache, I need to add css dynamically each page re-fresh, css url will be also ...
user avatar
0 votes
1 answer
61 views

How to pull an image being added to cart dynamically

<?php $count = $this->helper('checkout/cart')->getSummaryCount(); //get total items in cart $total = $count > 0 ? Mage::helper('core')->currency($this->helper('checkout/cart')->...
user avatar
  • 496
3 votes
0 answers
127 views

Create a PDF with customer/order information for virtual product

I've setup products as "Virtual Products" because I don't ship anything so thought this would be the best product type. With that the option to attach downloadable PDF products. On sale of this ...
user avatar
1 vote
0 answers
386 views

Magento 2: How to show request variable in Layout file

http://localhost/magento2/module/List/Variable Here Variable is my dynamic value, which would like to show in Breadcrumb & Title via Layout File. app\code\Custom\Module\view\frontend\layout\...
user avatar
  • 9,473
1 vote
0 answers
1k views

Adding a dynamic attribute to products

I wish to add a dynamic attribute to products. I am looking to add an attribute "Calorie" associated with food products and wish to add them in bundled products much in the same way as their price add ...
user avatar
7 votes
1 answer
7k views

Dynamic create block in magento 2 and send as ajax call response?

I want replacement of following in magento 2.x $block = $this->getLayout()->createBlock('customer/form_login')->setTemplate('persistent/customer/form/login.phtml'); $this->getResponse()-&...
user avatar
  • 3,018
0 votes
3 answers
2k views

How to change theme programatically for specific controller?

How to change theme programatically for specific controller ? I have to change theme for a particular controller.
user avatar
  • 1,286
2 votes
1 answer
2k views

Dynamically updating the sku on the product page of a configurable product based on selected options

I've successfully got the attributes to update dynamically for the SKU on the product page based on the simple product selected (through help found on the web). I'm now trying to apply this logic to ...
user avatar
  • 21
0 votes
1 answer
4k views

how to get wordpress data in fishpig magento integration

I need to crease a author block for the wordpress posts in fishpig integration furthermore I need to create an author profile page and recommended posts etc. However inorder to do this I need to ...
user avatar
0 votes
2 answers
351 views

How to change store theme dynamically

I am new to Magento. But i got a requirement. Below is the requirement: On the Frontend, user is having an option to select the theme from a given list of themes (Drop Down). Upon selecting a theme, ...
user avatar
3 votes
1 answer
702 views

Change dynamic title of review page

I want to change the title of the review page. Currently it is display as "Productname | Websitename". But I want to change it in "Reviews of Productname | Websitename" How can I achieve that? ...
user avatar
  • 1,474