Questions tagged [custom-options]
denotes a question about the product custom options.
1,057
questions
0
votes
2
answers
25
views
Order items, product with options set sku with custom delimeter
I have a simple product with options.
When I add to the cart and buy, I have a new SKU with the delimiter '-'. I would like to change the delimiter, where can I do that?
Example simple product SKU: ...
0
votes
0
answers
29
views
2.4.7-p1 Override product custom options
I am using a custom module which create some new features for magento 2 product custom options. It was working fine till version 2.4.6
Now I am testing version 2.4.7 and it seems that it cannot ...
0
votes
0
answers
28
views
How to fix image preview into admin product form Customizable Options
How to add admin product form Customizable Options need to upload and show the image.But image upload successfully after saving the product form but not display the image on customizable option.
Is ...
0
votes
1
answer
56
views
Magento 2.4.6 Preselect Magento 2 Product Custom Options based on URL Parameters
I have a product with custom options like Color and Size.
When users visit a product page with a URL like https://example.com/product.html?color=Red&size=Small, I want the Color option to be ...
0
votes
0
answers
25
views
Magento 2 How to move custom product options under the custom container on Product page
I am customizing the Magento2 Blank theme, by using a custom child theme. I want the custom options,product prices add to cart section to appear in my custom container.
I have created the file:
app/...
0
votes
1
answer
28
views
Magento2 How to get Customizable dropdown Options of a simple product in phtml file
How to get this https://prnt.sc/HE4LFsRji9fs Customizable option data in a phtml file.
I want to data in like in this format...
<div class="field required">
<label ...
0
votes
0
answers
34
views
Magento 2 : Provide Name Attribute in Customizable Option of Product
I am implementing a functionality where each product have different input field in frontend where user can input value as per their requirement. It has multi step form in frontend, second step have ...
0
votes
1
answer
312
views
Magento2: How to add a custom extra field for product options, such as an image upload, in the select option type
I want to add custom field for image upload in custom option value like given in image. I tried following Magento 2 add new custom option image upload field but it add earlier while i need it with ...
1
vote
0
answers
26
views
Product Main price should not update on custom option selection
I am using Mageworx advance custom option module. Right now everything working fine.
Current Workflow:
My custom options are basically have radio/checkbox options. If i select any option then product ...
1
vote
1
answer
37
views
Product Detail page custom option in accordion not validating in Magneto 2.4.6
After upgrading Magento 2.3.3 to 2.4.6-p3, custom options of product are not being validated in Magneto 2.4.6. In Magneto 2.3.3 we added validation ignore to apply validation on hidden field
$('....
1
vote
1
answer
151
views
How to add Product to Cart with Mutiple custom options using GraphQl?
I have Two custom Options for Downloadable Product
here is my query response for getting product
{
"data": {
"products": {
"items": [
...
0
votes
0
answers
26
views
How to set data in custom option filed which is created progrmatically in Magneto 2
I have created a custom field "Plan Identifier" in custom option for products.
Now, I want this field to be updated when we create a product using REST API and also the data of this filed ...
0
votes
0
answers
74
views
Change product option price dynamically in Magneto 2.4.6
I want to change product option price dynamically in Product Detail Page.
For Example:
In admin i have set White Color Price $10.00 but i want to change that price based on some condition.
I'm ...
3
votes
2
answers
393
views
Magento 2 How can i customize the product on the page Product Listing Page Widget of Live Search
I am using
magento version 2.4.5
live search versions : * 3.0.1
How can I customize the product information displayed
https://experienceleague.adobe.com/docs/commerce-merchant-services/live-search/...
1
vote
0
answers
33
views
How to stop custom options price to apply on each qty of configurable product? Magento 2?
I have a custom option price which gets applied to each quantity. But I only want to apply that custom option price once instead of applying to each quantity. Below I am adding image of custom option
...
0
votes
1
answer
25
views
Configurable Product for all the associated products
Is it possible to create a configurable product, which works both ways?
So for example:
Product A is configurable, which means that you can choose a particular option let say color or size, and when ...
1
vote
1
answer
534
views
Custom field for product custom options - Magento 2.4
We used the following method, to create a custom field for the product custom option section: https://devhooks.in/blog/magento2-how-to-add-custom-field-in-custom-option
This works fine, but we can not ...
1
vote
0
answers
58
views
Add custom option in the title in bundle product options
I need to add the custom title with WYSIWYG editor as marked in the screenshot for the bundle product options. If anyone has done like this, please help me on this.
0
votes
0
answers
582
views
Magento 2.4.2 How to implemented single image upload in from the admin side using the UI component and Save and Show in product Edit/ Add Page
I am Trying to create Custom Field to upload single Image. With the help of various documentation I tried to implement using UI Component. Thanks for your help my code is given below.
app/code/PCsoft/...
0
votes
3
answers
554
views
TypeError: Magento\Catalog\Pricing\Price\CalculateCustomOptionCatalogRule::execute(): Argument #1
I am facing error like,
TypeError:
Magento\Catalog\Pricing\Price\CalculateCustomOptionCatalogRule::execute():
Argument #1 ($product) must be of type Magento\Catalog\Model\Product,
null given, called ...
0
votes
3
answers
936
views
How to call the shipping method click event on custom dropdown click event in magento 2?
I have a dropdown to choose store for pickups after select the custom shipping methods Store Pickup.
I want to call the shipping method click event on change function in the pickup store dropdown ...
1
vote
1
answer
108
views
How to add custom attribute in PDP and save that in database?
How to add a custom attribute in Product Detail page and save it's value in quote table after the add to cart is clicked?
0
votes
0
answers
194
views
Need help customizing the magento core code to add custom options to bundle product
Is there a way to choose a specific custom option/customizable option of a simple product while adding the simple product to the Bundle product?
I need help in customizing the magento core code to add ...
0
votes
0
answers
453
views
Magento 2: How to display multiple prices for same product?
I would like to display multiple prices for the same product and customer can select any one of the product price and place an order. But as per my understanding I think this is not achievable by ...
0
votes
2
answers
2k
views
magento 2.4 add to cart multiple simple products with options
I'm trying to add to cart multiple simple products with different custom options at once. So far, I've overridden the checkout/add controller and replaced the line
$this->cart->addProduct($...
0
votes
1
answer
47
views
Add custom option Programmatically in cart its not increasing quantity in cart
I am adding custom option programatically in below observer.
<event name="checkout_cart_product_add_after">
<observer name="mymodule_checkout_cart_product_add_after" ...
0
votes
2
answers
1k
views
Send Custom Data to quote table
I am new to magento 2. I have created a custom checkout step where user can select delivery day and time via dropdown. Dropdown options are coming from system.xml via customConfigProvider after seller ...
0
votes
1
answer
24
views
Magento 1.9 new color custom option inherit the characteristics of the size existing custom option
I am new in Magento and need to learn. I have a platform based on Magento 1.9 developed by another developer.
I have addeded custom option of color. but there is size custom option already added ...
0
votes
1
answer
53
views
Set Use Default on custom option title programmatically
I'm adding and removing custom options programmatically like so:
$product = $this->getProductModel()
->setStoreId($taskStore)
->load($productId);
$optionInstance = $product->...
0
votes
1
answer
53
views
How to retrieve a list of products with no price (empty field) in Customizable Options?
Magento ver. 2.4.2-p1
This could be due to us migrating from Magento 1.9.4 via the Magento Migration Tool. We keep getting phone calls from customers saying they are unable to add certain products to ...
0
votes
2
answers
2k
views
Custom Sorting option not working in Magetno 2.4 search
Custom Sorting option not working in Magetno 2.4 search
app/code/Arun/NewSorting/etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
0
votes
1
answer
149
views
Custom Options deleted after saving products programatically
In Magento 2.4.2, when i am going to update products programmatically, it's removed customizable options automatically
Below code for your reference:
$objectManager = \Magento\Framework\App\...
0
votes
3
answers
136
views
Magento 2 How to check Product Customizable option set or not?
I tried to check product customizable option is exists or not but it is not working.
I have a Product Id so just I had to check if this product customizable option is set or not.
1
vote
1
answer
64
views
Magento 1: MySQL failing on flat catalog / locked tables
I'm running quite an old Magento 1.9.2 instance, for a couple of weeks, it's going offline periodically because of MySQL load. MySQL server CPU usage is going over 1000% (one thousand), all cores are ...
0
votes
1
answer
119
views
Issue with showing coupon code in admin grid
I am trying to add new functionality and need to show coupon code in the Orders grid. I was able to show the column in the grid but it is not showing the data.
I followed this link https://meetanshi....
1
vote
0
answers
329
views
Magento 2: Dynamically update custom options (percentage) price
I am working with a simple product with custom options.
I am updating the base price of the simple product with custom logic (height and width inputs). This is working fine.
Now here comes my problem. ...
0
votes
1
answer
200
views
Catalog Price Rule - Ignore Custom Options
I recently migrated over from a Magento 1.9 instance.
When we applied the catalog price rules it only discounted the price of the product and the associated custom options remained as they were (no ...
1
vote
0
answers
826
views
magento 2.4 show product options in custom template
On the frontend, I have a custom template with some tabs: when the user switches among tabs, he can load a simple product. Each tab loads a different product. This works fine with normal products but ...
1
vote
1
answer
223
views
AddProductsToCart Mutation Custom Option Upload File Magento 2.4
I am struggling to understand the correct way to get a custom option that is an uploaded file to attach correctly when adding a product to cart via graphql.
I have tried using
entered_options: [ {uid: ...
0
votes
1
answer
201
views
Get attribute from using dropdown yes no
I have created a dropdown attribute with the options of "yes" and "no" with the hope to show an element with yes is selected in the admin. I have a few of these dropdown attributes ...
2
votes
2
answers
1k
views
Magento directory_country_region_name table for city : City Dropdown
I want to make the country, state, city dropdown in the checkout field. I research lots of times in the internet and I didn't find any solution rather than a paid module. I noticed that for some ...
0
votes
1
answer
85
views
Programmatically Updating Products changes Custom Option & MetaData scope
I am working on a free standing script that updates product price and I have noticed that the scope of the product's custom options change after execution, causing the 'Use Default Value' to become ...
2
votes
0
answers
199
views
How to stop custom options price to apply on each quantity of configurable product? magento 2
Basically I have a custom option price which gets applied to each quantity. But I only want to apply that custom option price once instead of applying to each quantity. Below I am adding image of ...
0
votes
1
answer
496
views
How can I get customer data in a plugin class?
I'm trying to access logged in customer data in an "after" plugin.
The plugin is working, but I need some logic based on a custom customer attribute.
I try to do this but I get an error
...
1
vote
2
answers
57
views
Best Way To Achieve Configurable Product? Is This A Configurable Product?
Maybe configurable product is not the appropriate term, but I'm looking to provide different product options that will dynamically update the URL/SKU/Price. I've included a perfect example below of ...
0
votes
1
answer
618
views
How to add new field to 'catalog_product_option' table using Schema Patch?
I have created a custom option checkbox field, now on save, i have to update the value(0/1) to the table 'catalog_product_option' so that i can utilize this field on frontend.
How can i achieve this ...
0
votes
1
answer
304
views
Hide Bundle product option price if it is 0.00 on checkout page
I want to hide Bundle product option price if it is 0.00 on checkout page.
I have created a after plugin as following.
etc/frontend/di.xml:
<?xml version="1.0"?>
<config xmlns:xsi=&...
1
vote
1
answer
337
views
magento 2 - remove Customizable Options for all products?
how I can delete / remove Customizable Options for all products?
Thank you
0
votes
2
answers
766
views
Add to cart product with custom option "file"
I am trying to add products to cart with custom options. All are working but if custom options is file, it's not working. I've tried everything so far, but no luck. Anyone tried this and have a ...
0
votes
1
answer
578
views
Magento 2: Export All Products with their custom options
I want to export all products with their custom options through database.