Stack Exchange Network

Stack Exchange network consists of 174 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

denotes a question about the product custom options.

0
votes
0answers
9 views

How to enable a custom shipping method for API in Magento 2?

We have created a custom shipping method in magento2, It's being added to the JSON response when we fetch the order data as well. But we are not able to append it in post request JSON of order ...
0
votes
0answers
25 views

Magento 2.2.5: Add, Update and Delete existing products Custom Options

I am working on updating custom options of an existing product programatically when admin click product save button - I have done below code to full fil my desire - app/code/Namespace/Module/etc/...
0
votes
1answer
22 views

How to hide custom option price (+$10.00) in magento2.1.7

I am not able to hide the custom price (+$10.00) in Magento 2.1.7. I am using Mageworx Extension for custom option. How can I achieve this, its my client requirement, as I am not able to hide this.
0
votes
1answer
23 views

Magento 2 Add custom discount to payment page

I want to add custom discount to only payment page, i am able to add discount on checkout/cart page using checkout_cart_index.xml but i need to show it only on checkout_index_index: <?xml version=...
0
votes
0answers
17 views

Exclude product regular price from custom option price

How to subtract product regular price (eg. 3.99) from product custom option price if custom option price is greater than zero on option selection in Magento 1.9? Need help.Thanks
0
votes
1answer
15 views

Setting a custom product option for a simple product in the cart

I have a simple product with a custom product option defined as a text field in the backend. After adding the simple product to the cart, with no value set for the custom product option, I'd like to ...
0
votes
0answers
8 views

Magento2: Issue in saving custom option to quote

I am saving custom options to the quote programmatically. But custom options are not visible in the backend. On debugging I found that in quote_item _option table rows are missing, entry corresponding ...
0
votes
0answers
18 views

How to get all possible combination of a custom options in magento 1.9.x.x

I want to get all the possible combination of custom options in Magento 1.9.x.x and putting it in an array. any ideas? Thanks, Pil
0
votes
0answers
32 views

Magento 2 How to add custom label and their Value in Order Summary?

I am making Layaways(Buying Products in installments) feature for a website. I have to add custom Lables and the values against them. I need these Lables and values: In Order Summary at the page ...
0
votes
1answer
13 views

Add Content to Backend Editing Forms

I've build a module that creates a new manageable entity to Magento, including the Backend Forms. What I now want to do is to display custom content above the form editing segment and below the title....
1
vote
1answer
32 views

How to apply dependent price combination in product custom options dependency with Main price in Magento 2

- Product is eligible for purchase and lease - purchase price is 240 - lease price is 24 per month (240 for 240 months) 1. How to make price dependent with this custom option with main price ex. ...
0
votes
0answers
20 views

Magento2: Import custom options from product programmatically

I want to import custom options from existing product programmatically.My custom options are copied but options having values are not imported.It throws invalid option value error. I am using below ...
0
votes
0answers
13 views

How to get single PDF (Table Format)of all order invoices having required fields in Magento2

I want to get Single PDF(Pick List) with fields like name, order number, webstock edit, quantity from sales order grid. I am getting these fields value from order collection but don't know how to ...
0
votes
0answers
20 views

Magento 2: Open custom options in modal/popup

How can we show custom options in modal dialog or popup in product detail page ? For example when user clicks one button, custom options of that product will be shown in modal dialog or popup.
0
votes
1answer
98 views

Magento 2 : Add to cart product with custom option programmatically

I want to add to cart product with custom options. I added simple product, but can't able to add with custom options. How to do it ? Please help me. Thanks.
0
votes
1answer
15 views

How can i display admin users as product's attribute options in magento 2

I need to add a select type product attribute (same as size/color) Magento 2. but options of this attribute should came from custom table (like admin user). Thanks
0
votes
0answers
22 views

How to add product to cart with custom options in Magento 2?

I am using Magento 2.2.3 I want to add a particular product with particular option into cart when I click on "Test" button.I want to add below product to cart refer above screenshot When I click ...
0
votes
0answers
74 views

Magento2 : How to add a custom option to Item in cart

I have product with a custom option. On the event checkout_cart_product_add_after, I want to assign to this option some value programmatically. If the option has been set by the customer in product ...
2
votes
1answer
109 views

How to get Sidebar slider Feedback Form in Home Page?

I have created Feedback form with PHP,HTML,CSS,JS. Form Lookalike, my feedback form Code https://www.dropbox.com/sh/32zqgejubfllz0h/AACkB_iIh-KJQxtEUikZ8i9Na?dl=0 how can i apply Sidebar Sliding ...
0
votes
0answers
18 views

Magento 2 - Show custom options after check

I was wondering if someone knew a solution for my question. I would like to have a configurable product with simples underneath and custom product options. But i would like to show the custom ...
1
vote
0answers
20 views

Magento2 staging getting error in my custom module

I am facing this error in our staging environment Exception: Warning: array_key_exists() expects parameter 2 to be array, null given here added my code $hash = array(); $hash['0'] = 'test'; $...
3
votes
1answer
57 views

Magento 2 : Add product.info.options.wrapper in custom module

I want to add product.info.options.wrapper block in my custom module. I see in product view page that custom options render from this block. So, I need to add this in my module. I tried to using by ...
0
votes
1answer
34 views

getting this “Integrity constraint violation: ” while creating custom option

I have create custom module to create custom option with the reference of this "https://meetanshi.com/blog/create-custom-options-programmatically-in-magento-2/" page. I'm getting bellow error for ...
1
vote
0answers
20 views

Magento 1.9 Can I override the registration page only for one of the stores?

I have multiple stores. I need to override the existing registration page, but only for 1 store? How can I achive that?
1
vote
1answer
36 views

How to make a product not visible in storefront

Current Magento Version: Magento EE 2.2.5 I have created a product in admin panel I need that product not to display in storefront but I should be able to place an order for that product through API....
1
vote
0answers
22 views

Magento 2.2.5 : Custom option functionality work same as core in custom module

I want to add custom option functionality in my custom module. It should be working as like working in Magento 2 product view page. Here, Custom option display in product view page. I want to the ...
0
votes
0answers
8 views

Custom product not able to save after m2 upgrade

I have upgrade magento version from 2.1.5 to 2.1.14. I have create custom module to create custom option with the reference of this "https://meetanshi.com/blog/create-custom-options-programmatically-...
1
vote
0answers
36 views

How to apply Shipping Restriction to particular products - WebShop Matrix Rate Shipping Extension? [closed]

How to restrict some particular products to the selected shipping method? My Rate Chart is as follows : Here, The products of the category ids 4 and 5 are not eligible for India Post. My ...
1
vote
1answer
39 views

Magento 2, How to add a control in custom option in configuration product

Using Magento 2, Configuration Product, Custom Option. I need to add check-box for hide custom option item price in front page. Backend Catalog -> Configuration Product Front Product option ...
0
votes
0answers
22 views

How to delete duplicate custom options from product in Magento2?

I have migrated data from magento 1 to magento 2. But most of the product have duplicate custom options. So I want to remove only duplicate custom options? Can anyone help?
0
votes
0answers
17 views

Magento 2: How to get option_id for new option value in catalog_product_save_after observer

When we create a new custom option value for dropdown option, new option value exists in array but it does not have option_id. It shows record_id. For debug, I used below code in execute method of ...
1
vote
0answers
19 views

Magento 2.2.5 Add product custom fields in view page

In Magento 2.2.5, I need to achieve the following: In product detail(view) page, I need to add the mandatory from date, to date and Comments fields. That should be added in the order Details and also ...
1
vote
1answer
16 views

Service pricing on magento [closed]

We are considering using magento to create our ecommerce solution for selling mobile repair services. Here, in a typical scenario, a repair job is created by the customer and damaged mobile is sent to ...
1
vote
1answer
49 views

Where should this JS go? re: Remove price from select field on product page [closed]

Following up on Magento 2.2.3 - Remove price from select field on product page From the accepted answer by Remco, where should I put this JS code? $('select.product-custom-option').change(function(){...
1
vote
0answers
26 views

Magento 2 - How to show amount "save $100 considering custom options also on detail page?

How to show "YOU SAVE $XXX.XX" amount considering custom options (type RADIO/CHECKBOX) also on the product detail page when changing different option based on customer selection? I have a simple ...
2
votes
1answer
21 views

Magento 1 : Add additional product with extra price on product page?

I am working on magento 1.9 community edition website. I want to add a feature in product page such as additional product at extra cost. Such as if there is a dress worth 500₹ and a belt option is ...
1
vote
0answers
36 views

Custom setting Option for magento admin panel

I want make a custom option as custom module in admin panel in product adding or product edit option. That there is custom checkbox will show by the name of "Check this box for showing this product ...
1
vote
1answer
72 views

Magento 2, add sku selector to custom widget

How to add below in my custom widget.xml? below code does not have possibility of multiple products selection :( <parameter name="id_path" xsi:type="block" visible="true" required="true" ...
3
votes
2answers
49 views

custom option when product add to cart in magento 2.2.5

<?php namespace Ecomsolver\Measurement\Observer; use Magento\Framework\Event\ObserverInterface; use Magento\Framework\App\RequestInterface; class SetAdditionalOptions implements ...
1
vote
1answer
47 views

Magento 2 Customizable Options for orders not appearing using API

Is there a way to get customizable options from an order to the API? For example, this product allows a customer to enter a name on a t-shirt - This also appears on the admin side of the order - ...
1
vote
1answer
19 views

How to create a product were the customer enters the price?

New to Magento and I am trying to figure out how to create a miscellaneous product that initially has a price of zero. I would like to have a field that the customer can enter any amount into and ...
1
vote
0answers
21 views

Multiselectbox for custom table in Product-Edit Page not displaying Selected values. in Magento 2.5

I have created a multi-selectbox using Ui component and getting data from a model to display in Option-fields. Data is saving in my custom table. but when i click on the same product to edit, the ...
3
votes
0answers
62 views

Upload custom images dynamically from product edit page magento 2

I want to create custom image swatches for custom option. There is functionality in magento 1 please check this video. https://www.youtube.com/watch?v=tUvVjvgbJzI I want to develop similar ...
1
vote
0answers
50 views

Get products in Magento 2 by option's SKU

I wonder how to get products where the product options->SKU field is 'MyOptionSku' in Magento 2. Something like /** @var \Magento\Catalog\Model\ResourceModel\Product\Option\Collection $...
1
vote
0answers
83 views

Show message on specific custom option select Magento 1.9

I would like to show a message when user select any specific custom option in Magento 1.9. I have two checkbox options: 'disposal' and 'installation'. Current Issue At the moment I can only show ...
0
votes
0answers
53 views

Add extension attribute in Product Custom Option Value

I would like add extension_attribute field in ProductCustomOptionValue entity. My idea is to use extension_attribute.xml to create news attributes to this entity liking with a new table.
0
votes
1answer
140 views

How to change item custom option in cart

I have products with custom options. One of these products options must be updated just after product has been added to cart. I then created an event launched just after ...
0
votes
0answers
25 views

Add New Custom Option from Cart table

I need to provide an option to add Warranty (custom option) to particular cart item. I know that we need to modify $buyRequest['options'] value and also add new option value. Once we get Quote Id and ...
0
votes
0answers
31 views

Magento 1.9: External API's in Magento store

I have a Magento store which lists my products. I also have an external API which fetches product from the different website. I want to integrate those API's in my Magento store so that I can list ...
2
votes
0answers
44 views

Magento 1.9 : Add value to file type custom option when adding product to cart programmatically

I am calling $cart->addProduct($product, $params); for adding product to cart. Where, $product is product collection & $params is as follows as received from product page. Array ( [...