Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [default-values]

The tag has no usage guidance.

2
votes
2answers
30 views

Magento 2 checkout form customer email value pre-fill does not work while other works

I am using Magento 2.3. I am trying to pre-fill fields in Magento checkout form. I have done following. I followed this article. First I defined dependency injection at vendor/module/etc/frontend/di....
3
votes
1answer
46 views

Magento 2.3 use default value problem admin

In my magento 2.3 I have two store views. I noticed today in product page in every field which has store view, the use default value isn't working as expected. For example: I have a product in ...
0
votes
1answer
32 views

Magento 1.9 set default 'Qty' to 100 and 'Stock Availability' to Blank

In magento 1.9 I need to set the default qty value to 100 and Stock Availability to blank while creating a duplicate product. So when a user duplicates a product, he should see qty value as 100 and ...
0
votes
1answer
101 views

Magento 2 How to Change Estimate Shipping Default Country

I have Magento 2.2.5 installed. General > Default Country is set to 'United Kingdom' however on the 'Estimate Shipping' part of the cart page, the default country shown is United States (we don't ...
0
votes
1answer
114 views

Unselect Attribute “Is Default” - Color

Magento 2.2.6 The attribute 'color' had, for as long as I can remember, no "Is Default" value selected. A few days ago, I add a new color to the color value. Upon saving, there is now a color value ...
4
votes
2answers
282 views

How to set default value for configuration field with type time

How can I set a default value for a field from system.xml with type time? <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
2
votes
1answer
82 views

Magento 2 : Call Model Class in the default value for UpdateData.php

I have part of setup code in the setup/upgradeData.php to be like this : $dataSetup->addAttribute( 'vendor', 'allowed_type', array( 'group' => 'General ...
0
votes
1answer
105 views

Magento2: Custom attribute of category. Add default value in all existing category once we InstallData script

Here I need to Add defaul value of my custom category attribute in all existing category while I install the script. here is my code: <?php namespace CommercePundit\HtmlSitemap\Setup; use ...
1
vote
1answer
267 views

In etc/config.xml This element is not expected. Expected is one of ( default, stores, websites )

Magento version : 2.1.11 I am using a custom module at custom-module/etc/config.xml there is below file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
0answers
27 views

How to set default custom option (text area) value for product? [duplicate]

I've created a custom product option, which gives the customer an option to write a message. When the customer arrives on this product page the text should be prefilled with a message. The customer ...
4
votes
1answer
232 views

Implement “Use system value” in custom module

In the magento backend under Stores -> Configuration some of the fields have the "Use system value" checkbox next to them and some don't have it. Checking the checkbox "restores" the field to the ...
11
votes
1answer
867 views

Set default values for a multiselect ui-component

I have a custom entity in my magento 2 install. And one of the fields in this entity is of type multiselect and contains the list of all countries. I'm using the ui-components for my admin form. Since ...
1
vote
2answers
2k views

How to add default values for system configuration in magento 2

How to add default values for system configuration in magento 2. I need to create and assign default values for system configuration(system.xml) for my custom module. I have already created ...
0
votes
2answers
366 views

How to set default value to region(state) in checkout page magento 2.1..?

I need to set a default value for the region(state) in the checkout page. tried it using jQuery. it's showing the value the field but it's not saving. require([ 'jquery', 'jquery/ui'], function($){ ...
2
votes
1answer
163 views

Magento 1.9 disable default value on product save in cron

I have Magento ver. 1.9.3.0. I have 2 stores, each for different country. Everyday my shop synchronizes prices with ERP system by cron. If price for one product was changed in ERP, then cron sets new ...
1
vote
1answer
13 views

Which version added the core swatch for attributes support via URL hash?

The answer of this question https://magento.stackexchange.com/a/71077/61389 presented a core way to automatically select attributes values using the URL hash. We are developing a module that will ...
2
votes
1answer
512 views

How to change position of default welcome message in magento 2?

I am customizing my Magento theme. I have come across the problem of customizing default Magento message. Is there any way to change to position this in the middle. Right now it is on the left side. I ...
0
votes
2answers
100 views

one month previous day in magento

I want new date from current date, difference of 30 days. $dt = date("Y/m/j",strtotime("-1 month")); and $firstDayOfPrevMonth = date("01.m.Y", Mage::getModel('core/date')->timestamp(strtotime('...
1
vote
1answer
154 views

How to add radio button to set default value for Customizable Options in Magento2

How to add radio button to set default value for product custom options (Customizable Options) in Magento2 Admin grid
0
votes
1answer
942 views

How to set a default value for a attribute to all products

I have create an attribute "Brand Name" from Catalog > Attribute > Manage Attribute. I have only one brand name so i want to set that name in "Brand Name" attribute for all the products. How ...
3
votes
0answers
166 views

Unable to edit product attribute value

Running 1.9.x Magento, I found a handful of products (out of 80k) that have a product attribute value that cannot be edited from the product edit panel. The attribute value is a custom value called '...
1
vote
2answers
1k views

Default meta title for product and category page

I want to set default meta title for product page,category page and for cms page. If I'm not setttin title in admin panel I want to set my default title. But I don't know how to make this. I try ...
4
votes
1answer
518 views

How to set default value for product custom option in Magento 2?

Can any one help me on how to set a default value for a product custom option, so that default value can be visible in product details page as default value. Help would be appreciated.
10
votes
6answers
3k views

How to set default value in custom option in magento2

I want to set default option to the custom options value in the product level. How to do that in Magento 2 ? Please help me to resolve on this.
3
votes
2answers
307 views

“Use Default value” randomly unselected - so Move infotmation from [Store View] to [Global]?

Something wrong happens with my store view management since I've created a new store view. Basically, till now all the boxes for all views "use default value" were selected but recently most of all ...
8
votes
3answers
2k views

System Config Multiselect default all selected

I have a system config field of type multiselect which will be populated using the catalog/product_attribute_collection. This is a part of the system.xml that defines it. <attributes> &...
2
votes
1answer
316 views

How can I default the “Append Comments” checkbox to unchecked when creating new order in backend?

When a member of our staff creates a new order in the Magento backend, they frequently add comments into the order but forget to uncheck the "Append Comments" checkbox on the order. Sometimes we don'...
0
votes
1answer
497 views

Serialized array default data

I've written a module with a config section that saves it's data as a serialized array. After having tested the module and making sure it works, I want to also include default data so that nothing ...
3
votes
1answer
417 views

How Can i Reset Default Category Products Count Number?

I don't have products in my website but Default category shows count of the products. How can i reset?
0
votes
2answers
170 views

Show the saved value in admin form: right now it is now showing

I have an admin form that is saving the data to database but it is not showing the values from database once it saved: protected function _prepareForm() { $form = new Varien_Data_Form(array( ...
3
votes
1answer
800 views

Programatically set product attribute defaults - Magento 2

My specific use case is that I want to set the news_from_date and news_to_date for the a thirty day period from when the product is created. I would like this to work so when a user goes into the ...
0
votes
1answer
52 views

How can i increased selected items default QTY count in products page

I need to set up selected products default count is what i suggest. How can i set my default minimum count. I need to set defauly Qty = 5 for elected products
1
vote
3answers
185 views

Change Attribute value from 1 & 0 to Yes and No on Front End

I have an attribute whose value when input was 1 & 0, 1 = yes and 0 = no. I have just upgraded to Magento 1.9.2 and on the front end, it is showing 1 & 0, instead of Yes or No. Is there a ...
2
votes
1answer
1k views

Magento 2: Possible to set up drop-down attribute without selecting “Is Default”?

We're in the process of setting up our Magento 2 dev site, and in creating some drop-down elements that will display on the front-end if selected, it occurred to me that there doesn't appear to be a ...
2
votes
1answer
641 views

Set Category Attribute to Use Default Value

When setting the product to use the default value, setting the value to false would do it. Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product = Mage::getModel('catalog/...
4
votes
2answers
337 views

Saving category from collection resets include_in_menu

Sometimes it is convenient to save a category directly from the collection it was loaded. For instance, for all categories of which the name attribute starts with foo, I want to update the meta_title ...
0
votes
1answer
369 views

If Statement for attribute value is set to no

Just trying to write an if statement for this situation: We do have some attributes which could have 3 values: empty space, yes and no. The statement should require a yes value to display a jpg and ...
3
votes
1answer
8k views

Options values of attribute “visibility”

I am looking for the option values for the attribute visibility. We have a import script running, which is delivering all articles to magento and automatically sets the visibility for simple products ...
1
vote
2answers
1k views

Add default value to City field in Billing and Shipping

Just like there is a default value for 'State/Province' field which is: 'Please select region, state or province' I need to add a default value to City field in billing and shipping steps in checkout. ...
1
vote
1answer
2k views

How do I change the default attribute 'position' in layered navigation?

I'm organizing my attributes to show in a specific order in layered navigation. To do this I need to set the 'position' value of them all. Magento defaults them to 0 so to put an attribute (say color) ...
7
votes
1answer
4k views

Set default value to custom attribute for all products

I have created the custom attribute (test) for products as a text field with default value('test') from admin panel And assigned that attribute to default attribute set. Now I can able to see the ...
0
votes
1answer
157 views

attribute values are displaying in frontend only from store view

i needed to convert an dropdown attribute to multi select attribute. so i followed this link : http://swarminglabs.com/how-to-change-a-product-dropdown-attribute-to-a-multi-select/ Than i got this ...
0
votes
1answer
1k views

How to Change wysiwyg editor default p tag FONT Magento

I'm using Magento with the WYSIWYG editor - and we're in the processing of converting the entire site to use the Verdana Font, the issue is, whenever we create CMS pages the WYSIWYG editor uses arial ...
0
votes
2answers
1k views

adding bundle product with default options with setLocationAjax function

I'm trying to add to cart a bundle product with default options (options already selected from backend) using the setLocationAjax function. I managed to get the correct url to add which will be ...
1
vote
1answer
381 views

how to set dafault value for custom field in simple products [duplicate]

i'm working with magento 1.9.0.1 and be-responsive theme.I have a series of products with custom options of type radio. However I cannot set from the setup of the product the default state of that ...
4
votes
2answers
698 views

Remove <values> option from an extended module

we have a general module which implements some widget functionality and adds basic templates to a shop, which are defined in the widget.xml like this: <some_module> <name>my name</...
8
votes
2answers
6k views

Set Default Value to custom options for products

I am having custom options created for the products. I need to set some option as default for the custom option so that when user checks on the front end default option will be seen instead of "Please ...