Questions tagged [dynamic]

Denotes questions related to dynamic content or dynamic functionality.

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

Magento 2.4.6: Generate image upload fields as per another model data count in admin form using ui_component

My simple query is how to generate a dynamic field which will created as per count of another model data in admin form using ui component. suppose I have a model xyz and data countable in this model ...
Amit Dwivedi's user avatar
  • 1,550
2 votes
1 answer
763 views

Magento 2: Cart price rule Actions dynamically add text field using UI Components

I have need to add dynamic text field in cart price rule edit section. when click on Add button text field should be added. And save data in salesrule table. When select from Apply Percent Discount: ...
Kirti Nariya's user avatar
  • 3,471
1 vote
0 answers
125 views

How to create dynamic source model in Magento 2 depend on database?

Suppose MyEnity has column "status" in the database it values is 0,1,2 0 => None 1 => 'Good' 2 => 'Bad' I want In Add Page, source model display 1 => 'Good' 2 => 'Bad' In ...
Phạm Hòa's user avatar
2 votes
1 answer
22 views

Dynamic cron based on model value

I made a simple custom CRUD module. My table have 4 columns: id, name, action, schedule. Action is a select where I can select a controller. Schedule is a text field where I can store for example: * * ...
fmineo's user avatar
  • 219
0 votes
1 answer
162 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.
Oscprofessionals's user avatar
0 votes
0 answers
64 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" ...
Stu92's user avatar
  • 11
2 votes
1 answer
767 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 ...
artuzai's user avatar
  • 23
0 votes
3 answers
701 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,
zus's user avatar
  • 165
0 votes
1 answer
1k 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.
ZealousWeb's user avatar
  • 2,186
0 votes
1 answer
710 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
Deep Shah's user avatar
  • 565
1 vote
0 answers
167 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,...
Данил Васильев's user avatar
1 vote
0 answers
171 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 ...
Daly Design's user avatar
4 votes
1 answer
2k 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 ...
MageDev's user avatar
  • 41
0 votes
2 answers
145 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 ...
Rodders's user avatar
  • 81
0 votes
1 answer
720 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 ...
Dr. Christian Kusche's user avatar
1 vote
4 answers
5k 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 ...
aravind's user avatar
  • 1,844
0 votes
1 answer
455 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 ...
Herecomes's user avatar
0 votes
0 answers
1k 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 ...
gabtzi's user avatar
  • 656
2 votes
0 answers
25 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 ...
Rune's user avatar
  • 21
1 vote
0 answers
40 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 ...
Soumen Pasari's user avatar
1 vote
2 answers
675 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 $...
Amy's user avatar
  • 935
1 vote
0 answers
46 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 ...
Aditya Shah's user avatar
  • 7,617
-1 votes
1 answer
33 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 ...
user60743's 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 ...
sdeveloper's user avatar
1 vote
1 answer
294 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 ...
Matheus Portela's user avatar
0 votes
1 answer
57 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....
Karl Te Aika's user avatar
3 votes
1 answer
842 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" ...
Abdul Kadir's 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 ...
Jen's user avatar
  • 41
1 vote
1 answer
407 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 ...
DevAnd's user avatar
  • 516
0 votes
1 answer
651 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 ...
user52830's user avatar
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.
Altravista's user avatar
0 votes
1 answer
851 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 ...
Ramesh KR's user avatar
  • 866
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
1k 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 ...
Gerard Lamusse's user avatar
5 votes
1 answer
5k 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 ...
Jay Kapoor's 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,...
Esteban Flores's user avatar
1 vote
1 answer
26 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 ...
Matheus Portela's user avatar
1 vote
0 answers
532 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 ...
PHP Team's user avatar
  • 141
8 votes
1 answer
2k 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" ...
Nikhil Vaghela's user avatar
0 votes
1 answer
853 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 ...
anthony's user avatar
  • 121
1 vote
1 answer
859 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. ...
Mike Tim Turner's 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 ...
Pradeep Kumar's user avatar
0 votes
1 answer
63 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')->...
DevAnd's user avatar
  • 516
3 votes
0 answers
156 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 ...
Ashleigh Sims's user avatar
1 vote
0 answers
397 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\...
Jackson's user avatar
  • 9,909
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 ...
Farid Haq's 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()-&...
Manish's user avatar
  • 3,106
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.
gelanivishal's user avatar
  • 1,336
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 ...
Andy's 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 ...
Brad Duncan's user avatar