Questions tagged [custom-options]
denotes a question about the product custom options.
108
questions
4
votes
2
answers
3k
views
Magento 2: Override for product custom option value Interface and model file
I have added custom product option value to below interface ProductCustomOptionValuesInterface.php and Value.php model file.
File path: magento2/vendor/magento/module-catalog/Api/Data/...
18
votes
3
answers
12k
views
Creating Custom Option on Product Save
I'm working on creating a custom option for my products automatically any time a product is created. What I've got so far is an observer that fires on the catalog_product_save_before event and runs ...
11
votes
2
answers
9k
views
default state of custom option for simple products
I have a series of products with custom options of type checkbox. However I cannot set from the setup of the product the default state of that particular option.
I need at least one of the ...
0
votes
1
answer
913
views
How can i add custom multi option Attribute in sales order grid like select warehouse and able to edit on the grid itself
I need to add custom multi selection option for admin purpose, like the ordered products currently available in which location warehouse. Its display like both inside of the order page and Sales->...
4
votes
6
answers
23k
views
how to display product image in sales/order/view/ page
I am trying to customize sales order view page and I want to show product image in order view page how can we achieve this. and the path of the file is
vendor\magento\module-sales\view\frontend\...
3
votes
1
answer
679
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 ...
6
votes
1
answer
31k
views
magento2 how to override model file? [duplicate]
I would like to override (call the below model file from my custom module called Demo_Customprice
/vendor/magento/module-catalog/Model/Product/Option/Value.php
How could we achieve this?
3
votes
1
answer
2k
views
Dependent Custom option in Magento-2
How to create Custom option programatically in which both are drop-down and they are dependent on each other . Dependent in the sense , changing value of second drop-down option based on the value of ...
15
votes
2
answers
11k
views
Creating Custom option and prize to just added product to cart using observer
I want to add custom option to quoteitem using observer which observer checkoutCartProductAddAfter event and fires after product added to cart.
public function checkoutCartProductAddAfter(...
2
votes
0
answers
232
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
1
answer
6k
views
Product Types: custom options vs bundle vs configurable
I am about to start working on a shop that has around 1000 products, which normally is nice and easy. Some are simple products (no problem here) but around half have the possibility to be configured.
...
8
votes
1
answer
7k
views
Magento 1.9.2.4: Custom Options price not changing
I got this issue where Price is not updated when checking the custom options (Fixed Price: +400).
I got this error:
TypeError: Product.OptionsPrice is not a constructor
TypeError: optionsPrice is ...
5
votes
2
answers
10k
views
Magento 1.9 adding custom option programmatically
I am trying to add a custom option programmatically.
Below is piece of code I tried to attempt.
Problem is for my first product get updated with one custom option where as my second product gets ...
2
votes
1
answer
2k
views
Magento2 : Custom payment Module with Drop down list Is not working
Please check my Custom payment Module, I was able to display the list in drop down in Payment method, But when i select and place order it is not working as expected.
Please download the complete ...
1
vote
1
answer
558
views
DHL - Not Able to change Ship to Specific Countries and Ship to Applicable Countries
1) I can't able to selected specific countries, if i selected all countries except INDIA half of the countries not choosing, i mean not selected.
2) If i change Ship to Applicable Countries as All ...
13
votes
1
answer
19k
views
How to get all options for all store views for a single attribute?
I am trying to retrieve all options for all store views for a single attribute e.g. color.
For the attribute color I have created two options blue and white. I have tried the following code that is ...
5
votes
2
answers
17k
views
Magento2 programmatically adding a custom option
I'm trying to programmatically add a custom option to a product, there are no errors being returned, but the custom option doesn't get added. I've tried a few methods to achieve this, without much ...
4
votes
2
answers
5k
views
Add Product to Wishlist with a Selected Custom option
I used below code to add a product pragmatically to a Wishlist, and is working successfully-
$customer = Mage::getModel('customer/customer');
$wishlist = Mage::getModel('wishlist/wishlist');
$...
4
votes
1
answer
4k
views
how to add a new customizable product option
I want to add a new custom option that has a special datepicker. So basically I just need the type text with a new template, that template x-magento-init a js-file and this template gets passed some ...
1
vote
2
answers
2k
views
Custom option File upload getting in order
I have a custom option for image upload on product page I just want to know how can i get this image in customer order.
There is by default functionality which gives you link but it redirect on ...
1
vote
0
answers
178
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
2
answers
4k
views
Magento 2: Add product option custom value in product Rest API
I added custom field Image and Qty in Product Customizable Options. I add those filed to Product Option Value in Product Rest API. So how can it possible.
Method: GET
API Request URL:
http://...
10
votes
6
answers
23k
views
Magento 2 Programatically add product to cart with additional options
I want to add product to cart with some additional data. My code adds the product to cart,but the additional info is not saved properly.
I want to display the additional content in cart like custom ...
8
votes
1
answer
9k
views
Is it possible to link to a configurable product with pre-selected values?
I'm building a couple fairly large configurable products under the Products category with about 175 products that basically have the same content, just different options (& they need their own SKU'...
8
votes
4
answers
15k
views
How to update product custom options on Cart Page?
I have a simple product with custom options. When someone select any option and click on add to cart the product with the option goes to the cart where the product and selected option is shown.
Now ...
7
votes
1
answer
9k
views
Magento2 : How to add a new product custom option type?
Two years ago, I developed under Magento 1.9 a module aiming at adding a new product custom option input type using this tutorial :
http://magento.ikantam.com/qa/custom-input-types-custom-options
I ...
5
votes
1
answer
7k
views
Bundle product with custom options
Does anyone know any technical reasons as why bundle products with dynamic pricing cannot have custom options?
5
votes
2
answers
4k
views
In magento 2 how to add custom options in action apply field in cart price rule form in admin
In magento 2 how to add custom options in action apply field in cart price rule form in admin
In admin panel -> marketing ->cart price rule -> add new rule
Image:
Reference Image
4
votes
4
answers
5k
views
How to get Product custom options name?
How to get Product custom options name?
$data = $this->getRequest()->getParams();
echo "<pre>"; print_r($data); die;
Array
(
[options] => Array
(
...
4
votes
2
answers
13k
views
Add custom options to products programmatically
Hi I am developing a script which makes simple products for magento store. I have added the products through the script but now I want to add custom options to the added simple product. How would I do ...
3
votes
2
answers
8k
views
Create magento pagination in custom product collection inside phtml file
First of all, i didn't create custom module to handle this product collection, so, i just put model inside phtml file, i know it's bad implementation, i'm new in magento and i have to do small ...
3
votes
5
answers
8k
views
Programatically delete custom attribute options
I'm trying to delete all custom attribute options not contained within a specific options array as follows:
/** @var \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute */
$...
3
votes
1
answer
6k
views
Magento2 : Get Custom Options from Product Id? [closed]
I am trying to get product custom options using next code:
$_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$product = $_objectManager->get(‘\Magento\Catalog\Model\Product’)-&...
3
votes
4
answers
9k
views
Configurable Product options box not showing on the front end
The drop down selection box is not showing for configurable products, the configurable product itself is showing but not the options to choose which simple product is selected.
It is probably notable ...
2
votes
1
answer
3k
views
Magento 2: How to add Class on Checkout Page?
I would like to add below class on "Firstname"
class="validate-length minimum-length-10 maximum-length-100"
It should be applied on Checkout Page.
domain.com/checkout/
Need to override file ...
2
votes
1
answer
1k
views
Custom options operations
My client needs to make an operation on products custom options.
Using Magento CE, I create a product, and give it some custom options from within the built-in left hand side menu in "Manage products"...
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 ...
2
votes
1
answer
5k
views
Filter by Product's Custom Options or set diffrent options for each products from Attributes Sets
I don't know what is the best way of doing this.
The idea is that I have about 500 products. I created 11 Attribute Sets (to cover 11 product categories).
These attributes are filterable.
But I need ...
1
vote
1
answer
988
views
Custom Options - Drop Down add field
I have 2000+ products all set to simple products but with custom options.
An option is a drop-down option with an SKU etc... What I want to know is, is it possible to add another input box after '...
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
650
views
How to calculate price based on weight
I need guidance on the following if this is the scenario.
If Green Beans is configurable product with following Custom Options:
100g is of $10.75,
200g is of $21.50,
250g is of $32.25 and
500g is of ...
28
votes
3
answers
35k
views
Delete custom EAV attributes from the database
I want to remove unused EAV attributes directly from the database before I move my store live. Attributes can be found in eav_attribute table, can I delete attributes from this table? Is it safe? Or ...
10
votes
5
answers
13k
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.
7
votes
2
answers
4k
views
Use Magento opConfig.reloadPrice() with jQuery and Custom options
I am trying to use the Magento reloadPrice() with jQuery to refresh the price. I have a configurable product with custom options. Without jQuery, the SELECT code for the option is :
<select id="...
6
votes
1
answer
4k
views
Magento 2 Configurable option not showing my custom theme
Magento 2 Configurable Swatch option option not showing my custom theme but it's working in Default theme
My Default theme
Custom Theme
Product Details page it's working fine only problem is ...
6
votes
3
answers
29k
views
Get Custom Option Values of a product magento 2
I have two custom options for a product. Color and Size and both are drop-downs. In product detail pages, I have to display all available colors of that product.
I tried the following code and it ...
6
votes
4
answers
20k
views
Magento 2 : Get Quote Item Selected Options
I want to programmatically fetch quote item options which are currently selected.
I've added product with options like following;
Color : Red
Size : 6
Now I want to fetch that selected options ...
6
votes
1
answer
3k
views
Why can't Simple Products with options be grouped?
Synopsis
I have a store where-by I create a Grouped Product and associate a number of Simple Products. When I add custom options to the simple products it is not visible in the Grouped Products' ...
6
votes
5
answers
20k
views
Get Attribute option Id by Attribute admin value
For a Magento Dropdown Attribute, it is possible to get an Attribute option Id by Attribute admin value?
5
votes
6
answers
10k
views
How to add bundle product to cart programmatically with custom price and quantity (of all products) in Magento 2?
I am struggling with Bundle Product add to cart programmatically in Magento 2.
Here I need to add all products with custom price and quantity and I want to do this operation in Product list.phtml ...