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

Questions tagged [custom-options]

denotes a question about the product custom options.

0
votes
1answer
15 views

Magento 1 remove currency symbol for product with custom options

We would like to remove the currency symbol for products with custom options. Our current code, displayed below, works perfect for normal products. But when a product got custom options it first show ...
1
vote
0answers
12 views

Magento 2.2.6: Programatically updating product custom options

I am working on custom script to update product custom options. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = $objectManager->create('Magento\Catalog\Api\...
0
votes
0answers
10 views

Sort products with custom options, based on minimum/initial price

In my website there are products with the following type: Price : 100$ Custom Option 1 price = 0 Custom Option 2 price = 50$ These products are sorted and filtered based on the max price (which is ...
1
vote
0answers
13 views

How to save entered in particular shipping method in database in magento 2?

I am trying to create one shipping method module which has custom field named 'account no'. So far I Have done this. When user clicks on custom shipping, Input box is coming up.Now I am stuck in how ...
0
votes
0answers
5 views

Custom checks after save or preview in content manager

The goal is simple enough, but I'm a total Magento noob and don't know how to accomplish this. We have a specific two column content block that has an image on the left hand column and text on the ...
0
votes
0answers
17 views

Simple Products Custom Options price sorting - magento 1.9.2

magento 1.9.2 - how to get simple products custom options price for price slider sorting in sidebar and load product collection in the list page. by default magento not sorting custom options price
4
votes
2answers
66 views

Magento 2: How to Apply Coupon Code based on Product Customizable Option

I want to create coupon code for specific product and custom option E.g. Sku: Test1 Custom Option: Name: Demo Custom Option Option Type: Field I want to apply the coupon code ...
0
votes
0answers
21 views

Upload image in custom option

I want to add the file uploaded in custom option (adminend). In CustomOption modifier: return [ 'arguments' => [ 'data' => [ 'config' => [ ...
0
votes
1answer
25 views

Magento2 : How to override any product custom option price sorting in list page

I have one simple product it's price zero(0). it has a custom option with name and price like: ------------------------- Name Price ------------------------- product A 10 ...
0
votes
1answer
25 views

Get selected custom options value Magento 2.2

I created an observer on checkout_onepage_controller_success_action event, I want to get selected custom options values for this particular order. How can I do this please help? Please check the ...
1
vote
1answer
30 views

Magento2 + Custom option price not included in price sorting

By default magento include minimum price from custom option in product listing price sorting but in my case this functionality isn't working. any one have idea which settings i need to update? I'...
0
votes
0answers
20 views

Unable to Update a quote item additional_options on cart edit item action

I would like to update the quote item additional option with my custom input value I am trying below event checkout_cart_update_item_complete public function customPriceUpdate(...
0
votes
0answers
47 views

Magento 2 : Product price should be change on custom option select in custom module

In my custom module, I display product on model popup. I set custom option in simple product. When, I select custom option then, product price should also update as like working in product page. But,...
0
votes
1answer
35 views

How to add **Note in Product Custom Option Magento 2

I want to add some description below to the each product custom option, Is there any way? Plese find below product screenshot:
3
votes
2answers
43 views

How to hide a custom text attribute which displayed in product edit backend

I am using Magento 2.2.5 I need to hide a text attribute which I'm using to save serialized data of custom options of product. I think this can be done using adminhtml/ui_component/product_form.xml ...
0
votes
1answer
17 views

How to save serilized data in product's text backend_type custom attribute

I'm working in Magento 2.2.5. Basically, I have created a custom product attribute serilized_data with text as backend_type by using below file and want to save custom options of product in this ...
0
votes
1answer
32 views

Magento2 How to Show Sepereatly Configurable Product attribute and Product Custom Options

Into Magento2 Configurable Product I want to add a Customizable Options. But both the Configurable Product and Customizable option display into the same class. Please check first size option is ...
0
votes
0answers
14 views

Magento 2: Set Additional options for grouped products

I am trying to add additional information on grouped products, but I am not getting results. I use following code which is working properly for other products but not working on grouped products. ...
0
votes
1answer
86 views

Magento 2- How to move custom options after cart button?

I want to move custom options below Add to Cart button and also want to move short description within form tag.How can I achieve this? Also I want to know why my custom php code not working in ...
0
votes
0answers
37 views

Magento 2 - How to get product custom option values in custom file?

I want to override custom options template file.I want to show static image with each option value. I just create a custom file in Catalog module but don't know how to achieve this task? app/design/...
5
votes
1answer
112 views

Cannot read contents from file.. Warning! file_get_contents Magento 2

I have file type custom option.When i browse any image and add to cart the products then it shows me error. Please check attached screenshot. I have already give the permission. Please help.Your help ...
0
votes
0answers
28 views

Magento 2 : How to get Custom Options HTML?

I'm trying to load custom options separately for the product. I managed to get options with using Magento\Catalog\Block\Product\View\Options But I want to implement the same HTML as Magento does. ...
0
votes
0answers
22 views

How to change custom theme print products per row 2 only

How to change custom theme print products per row 2 only In my theme the products per row 3 . but i want to only 2 products per row . How i can change it?.Please help me.
0
votes
0answers
39 views

custom field value not showing in product edit page in magento 2

i have created a custom field in product edit inventory its value was saved in database every time but not showing in admin edit here is my code <fieldset name="stock_data"> &...
0
votes
0answers
14 views

Magento 2 : How to add div to separate Swatch and Custom Option

I've a configurable product with custom options. I can see default HTML structure is like There's div with ID product-options-wrapper which contains HTML for swatch and Options. For Swatched there'...
0
votes
0answers
29 views

add product from codeigniter to magento 2 with options

On my server I have got Magento 2 running and at the same time I have got Codeigniter application. What I am trying to do, is for my Codeigniter users to be redirect to my Magento 2 site to ...
0
votes
0answers
9 views

Magento 1 product options inside popup or cms page

I am trying to display product options in cms page or popup. I am trying to find out if there any way to display it in a similar way like this: {{block type="catalog/product_view" product_id="391" ...
0
votes
0answers
31 views

Custom field value is not getting in observer in Magento 2

I have created a custom field in advance inventory in magento 2 product edit but its value is not getting in observer my code is like <fieldset name="stock_data"> <container ...
-1
votes
0answers
19 views

Magento 1.9.3.10 XMLRPC api - Error with Product Custom Options

ResponseException in ResponseException.php line 33: Invalid option type. in ResponseException.php line 33 at ResponseException::fault(array('faultCode' => '104', 'faultString' => 'Invalid option ...
0
votes
2answers
43 views

M2 - Check if product has custom options

On the category page (in list.phtml) I need to check if a product has custom options. What is the best way to do that without abusing the objectmanager? Regards,
1
vote
0answers
26 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 ...
1
vote
0answers
61 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
35 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.
1
vote
1answer
33 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
19 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
26 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
24 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
46 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
15 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
41 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
59 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
14 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
73 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
263 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
18 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
50 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
145 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 ...
3
votes
1answer
134 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 ...
1
vote
0answers
33 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
106 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 ...