Questions tagged [custom-options]

denotes a question about the product custom options.

0
votes
0answers
2 views

Add or remove option in quote item

I had to create a controller that added or removed an option from a quote item. I succeeded but did not convince the solution. It seems strange to me that I have to manage the correct populating of ...
0
votes
2answers
24 views

How to delete multiple custom options?

I want to Delete products custom options using bulk remove functionality. How I can archive that?
0
votes
0answers
11 views

In Magento 2, How do I get the lowest price of custom options and set it as from price?

I have simple products in Magento 2 with base price as zero. I would like instead of showing zero price in the list and product details page to show from price which would be the lowest price form ...
2
votes
0answers
20 views

Add Product to cart with required Options is impossible

I added a required customizable option (not sure about the name in English, in French, it's "Option personalisable"). On the front, there is no problem until you try to add the product to the cart. ...
0
votes
0answers
18 views

Magento 2 : Custom Option Price + Finale Price = Show Total in custom options itself?

Product Price: 100 USD Custom Option: Premium: +50 Custom Option: Exclusieve: +100 I want it to show: 150USD. (instead of +50) if i choose Premium and 200(instead of +100) if i choose exclusieve.
0
votes
0answers
31 views

Update custom option value of item in cart Magento 2

I have custom option for one of my product. I am able to save it's value in cart programatically using below code: $params = array( 'form_key' => $this->formKey->getFormKey(), ...
0
votes
0answers
15 views

how i can add option for custom select attribute on customer edit admin page Magento 2?

I want to add a custom option in magento 2 customer edit page admin and how I can save the data when i can save the customer? Any one has an idea I have already tried this answer but showing ...
2
votes
0answers
27 views

How to pass custom option values from product detail page to cart page in Magento 2?

I want to pass custom option values from product detail page to cart page in magento2. Refer screenshot I have selected here size: 5 and want to pass the value to cart page. Here is my code: <...
1
vote
1answer
18 views

Custom product option not added in quote (prog)

Hi I'm creating a quote manualy. This quote contains a virtual product (so related to a configurable product). My quote is submitted, but the options from the parent product is not added to the ...
0
votes
0answers
21 views

Minicart - Html text reflecting raw , required formatted text in magento 2

In mini cart i am trying to put a custom/formatted text but it reflecting raw html over there, required for magento 2. Using Magento 2.2.4. I expect html formatted text but the actual output raw ...
2
votes
0answers
24 views

Magento 2.2.6 - grouped product's associated product assign issue while having custom options in admin

I have a problem in assigning the associated products of it's group product in admin area of magento 2.2.6. while having the custom options. when i add the simple products but not display in the grid ...
1
vote
0answers
16 views

Magento2.3 how to add custom option of product when create order programatically? [duplicate]

I am using Magento2.3 I need to how to add custom option of product when create order programmatically? I used below code for add custom option to product but it is not working $product = $om->...
0
votes
1answer
29 views

How to add custom option price when product is adding add to cart using controller

I have to add the custom option price when product is adding add to cart using controller
0
votes
0answers
11 views

Unable to edit custom options in configurable product (JS error)

When I try to edit a configurable product I get this error in console (after clicking the Custom options tab) : knockout.js:3012 Uncaught TypeError: Unable to process binding "afterRender: function(){...
1
vote
1answer
29 views

Add existing custom option to cart item if the option was not included initially

I can update existing cart values: $item = $quote->getItemById($itemId); $item->getOptionByCode('option_code')->setValue($value); $item->saveItemOptions(); But this only works if the ...
0
votes
0answers
13 views

how to change the custom option value to download link in magento 2 order

Hi I have created a custom option for product working fine in the front end When I order this product in order view the product custom option showing as text I need as the ...
0
votes
0answers
8 views

Add option on product quote

How do I add option to product quote ? $quote=$this->quote->create(); //Create object of quote $quote->setStore($store); //set store for which you create quote $customer= $this->...
0
votes
0answers
10 views

Magento2: Option of product : show and select only weeks

I have a date picker attribute for a product. How can I show only the number of the weeks so that the user can select only the weeks? (not the days of the weeks)
1
vote
0answers
23 views

How to modify the collection of options in step 2 when creating product configurations magento 2

I have overrided this template module-config product/view/admin/templates/catalog/product/edit/attribute/steps/attributes_values.phtml now i can't understand where options com from in the file and ...
4
votes
2answers
126 views

Magento 2 : We need to save product two time After generating Custom Option programmatically?

I have work on Custom Module. In Our Module I had use <event name="catalog_product_save_after"> <observer name="add_custom_option" instance="Namespace\Modulename\Observer\...
0
votes
0answers
9 views

cannot save my custom attribut product before save event magento 2

I created a new product attribut then i want to assign to it option dunamically before saving my product but i always found this error cannot save attribute 145 here is my code : class InstallData ...
0
votes
1answer
25 views

Change the options of my custom attribute product using plugin M2

I have created a custom attribute for product with static options but i want them to be dynamic i tried to created it with dynamic value via the class Options but i got error and i can't resolve it ...
0
votes
1answer
33 views

M2 | Can we create one field by dataprovider and one field by uicmponent in single group at Product Creation Page?

I have created toggle button by uicomponent in one group and some other fields by dataprovider way in another group. Can I get toggle button into group created by dataprovider way. As it is not ...
0
votes
1answer
41 views

“No such entity” ERROR in magento 2.4 admin after upgrade

I am facing these issues into the admin during the product custom option save. [2019-04-29 15:00:50] main.CRITICAL: No such entity. {"exception":"[object] (Magento\Framework\Exception\...
0
votes
0answers
13 views

No need to add variation price on base price when select variation in magento 2

I have configurable product in Magento 2, the product having the variation every variation having some price and product having the base price, when ever I select variation this price added in base ...
2
votes
1answer
18 views

Adding option to a product create error

I'm extending the \Magento\Catalog\Block\Product\View file in AddToCart.php. In my AddTocart, I've added this line : $stock = $this->isInStockCustom($sku); Now, I'm adding options to my ...
1
vote
0answers
26 views

Set quote item product custom weight no holding through shipping

I am trying to set a custom product weight based on a set product custom option. I've tried multiple things like a plugin, before/after events, actual events like sales_quote_add_item etc. I am able ...
0
votes
0answers
20 views

Add dynamic custom attribute like price to bundle form product M

I want to know how to add a dynamic attribute like dynamic price in the form of bundle product because I want to have in the dropbox the value of this attribute -and the value of price now when ...
0
votes
1answer
46 views

Magento2: custom options import using CSV

I am working on CSV import to create a custom option for Products I am facing the issue with the error Notice: Undefined index: type in /var/www/html/home/vendor/magento/module-catalog-import-...
0
votes
1answer
37 views

Magnto 2 update the cart custom option value

Currently am using magento 2.2.5, while adding the product to the cart the custom options values are stored in the quote_item_option table correctly. while updating the custom options ...
0
votes
0answers
29 views

Magento 2.2 - Custom options are not saved programmatically on cart update

Initially, while adding an item to cart the custom options and other details are saved successfully to cart. When reupdating the cart with updated custom options are not saved in cart programmatically....
0
votes
0answers
15 views

Different prices in custom option combinations

I have a store with more than 10.000 simple products. Every product has custom options for Size and Color. By default Magento allows setting up a different price for a combination using Configurable ...
0
votes
1answer
28 views

How to add a new field to Custom Options

How can I extend the "Custom Options" in a configurable product? I need to add a new field named Identifier. Where can I find the necessary templates? I figured out that the template is in app\design\...
1
vote
1answer
78 views

Magento 2 Custom extension admin grid returning blank

I have a custom module on my Magento 2 installation. The problem is when I access the admin grid, it's returning a blank page, just with the title of the page, like the following picture. I already ...
1
vote
0answers
31 views

Need the help of an EXPERT in Magento 2

i am currently trying to wireframe a very custom website e-store, i will try to be as direct and clear as possible to my question: Is it possible to have for example, in a product page where you are ...
0
votes
1answer
33 views

How to custom field select options in register and saving them in db

I need to add select input in registration from in magento 2 I did all the steps but in InstallData.php file I have this partial code $eavSetup->addAttribute(Customer::ENTITY, 'account_type', [ ...
2
votes
0answers
35 views

Magento 2 unable to add a New Option (Custom Option section)

I will try to explain how it happened. There were 3 options already created for a simple product (Custom Options) size 1 size 2 size 3 when I removed the size 1 and saved, all options disappeared.....
1
vote
1answer
50 views

How to get custom option value and title from ids in magento 2

How to get product custom option value and title from ids, I have following ids [0] => stdClass Object ( [option_id] => 3283 [option_value] => 8893 ) ...
1
vote
1answer
22 views

Magento2.2.5 : How to maintain a session value in product detail page to custom controller page?

I implemented some custom options in the product pdp page. i.e, i have to engrave the product in frontend(eg.pendant FRONT SIDE) as well as the backend(eg.pendant BACK SIDE) without refreshing the ...
1
vote
0answers
38 views

Magento 1.9.2.3 Product Custom Options - Filters Not Working - Prototype.js error

I cant able to use Custom Options, drop-down showing error in prototype.js:612 and my prototype.js: https://justpaste.it/61c3a
0
votes
1answer
31 views

How to get the store id for customoptions?

I have 3 languages in my site. I need to add different titles based on language. If I add through back end it will take much time (more than 300 values I have to enter for each product). If I get the ...
0
votes
0answers
35 views

Magento 2 How to add configurable product to cart in product view page?

How can I add Configurable Product to shopping cart in product view page ? I try this code to show the custom option.` $customOptions = $_objectManager->get('Magento\Catalog\Model\Product\Option')-...
1
vote
0answers
70 views

How to import custom options with price is 0 in magento 2

I am trying to import the custom options with price 0 via backend. But it failed to save the price value with 0. Throws error like below Notice: Undefined offset: 6336 in /var/www/html/xx/vendor/...
0
votes
0answers
36 views

Magento 2 - Product Customizable Options is not showing on frontend

i create a product with Customizable Options but sometimes at frontend, the place which custom options should have appeared is now nothing I'm not sure why it happen, but when i resaving the product ...
1
vote
2answers
52 views

How to create a nameplate extension?

I am looking for Nameplate extension similar to the one found here: https://www.soufeel.com/necklaces/design-your-name-necklace Where can I get the extension or how would I add this functionality ...
0
votes
0answers
32 views

How to add custom option before adding to cart by code in Magento 2?

I have a list of custom options that are adding to cart when click on Add to Cart button. But what i want i have created a custom select box with image,so it should be added to cart with image name ...
2
votes
0answers
32 views

Magento 2 admin product custom option page add customer group dropdown

I want to add customer group dropdown on product custom option page. the reason behind is to show the custom option based on the customer group in front-end. how can i achieve the above functionality....
1
vote
0answers
28 views

Magento 2 subscription products approach

I am working with the subscription related product, consider the following scenario.we are having two customer group like C1 and C2. then having the product P1, the price of the product will vary ...
1
vote
0answers
174 views

Cron deleting expired quotes

Magento has a cron job for the deletion of expired quotes which hasn't changed since the first version I got in touch with, i.e. 1.6. The cron job is located in Mage_Sales_Model_Observer::...
1
vote
0answers
17 views

files saved from custom options 'file' delete after x days

I have products where the custom option 'file' is selected' all those files are saved in the folder "pub/media/custom_options/quote/x/x" the names are difficult to track: ...