Questions tagged [product-weight]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
200 views

Prevent custom weight from being overwritten

In my Magento 2 extension I do calculate the product weight when the user adds an item to the cart. My problem is that the weight I set gets overwritten at the checkout. Cause is the setProduct() ...
3
votes
2answers
540 views

magento 2 how to dispaly total products weight in shipping method chekcout page

I want to display total products weight (products weight* items quantity) in chekcout page shipping method lable beside.
2
votes
0answers
270 views

Magento2: How to convert weight unit to grams from kg?

I have a website in Magento2. Mageto2 provides product weight unit in KG, how an I convert it into unit Gram. I want to change the product weight unit from KG to Gram how it is possible ?.
1
vote
1answer
68 views

How to Get Weight Attribute in Totals Cart REST API Magento 2.X

How Can i Get Weight Attribute in Cart REST API. End Point: /rest/V1/carts/mine/ Response Default: { "id": 8, "created_at": "2019-09-16 13:51:25", "updated_at": "2019-09-18 12:07:31", "...
1
vote
1answer
68 views

Magento2, Admin panel. How to set ''require' for weight field to each sub-product of configuration product?

Magento CE 2.2.1: I need to force user to input the value for weight of each sub-product in configuration product while add new product.
1
vote
1answer
261 views

Custom shipping method check weigh of product [closed]

I followed this tutorial (https://magenticians.com/create-magento-2-shipping-module-method/) that showed me how to create a custom shipping method, but I still have one problem, i need to take into ...
1
vote
0answers
45 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 ...
1
vote
0answers
14 views

Magento 1 Tare Weight

Magento 1 doesn't allow you to enter tare weight (that I can find), so you have to include the weight of the box/packaging materials into the total item weight of each product. This works great for ...
1
vote
1answer
328 views

Call to a member function getValue() on null

Magento 2.2.7 Getting this error in the error_log and customer get's white screen when trying to login to site, Fatal error: Uncaught Error: Call to a member function getValue() on null in /home/...
1
vote
0answers
101 views

Weight doubled for configurable products

I have created a configurable product with a simple product as child (in Magento 1.9.3.8). The simple product has been given a weight of 100 kg. When buying the simple product by directly browsing ...
1
vote
0answers
39 views

Product weight is not allowed in my custom shipping method in French language in magento 2

I have two stores one is en_US and fr_FR. In en_US store my shipping is fetching data with out any issues. But in fr_FR store my shipping is not working. It shows error like below, [2018-04-10 05:32:...
1
vote
1answer
182 views

FedEx free shipping by minimum weight

I'm trying to set up my shipping rates to be free for products over 150lbs and calculate the shipping rates for products that are below 150lbs - per product, not on the order total. Scenario: I ...
0
votes
1answer
178 views

Programmatically Changing Order's Weight

Our products have custom fields corresponding to weight. How could I add (and update) this weight for the order, so that shipping is calculated with this new weight*? *Product weight value + custom ...
0
votes
2answers
2k views

Get product weight unit in phtml file

I have a phtml file that needs to load the weight unit of the product, the weight unit is from the store configuration, is there a way to do this?
0
votes
1answer
47 views

Magento 2: My shipping method I have created function like convert weight to Grams

I have my own website in Magento2 and also use my shipping method I have created below function in Model\Service\AbstractService.php /** * Convert weight to kilogram * * @param $weight ...
0
votes
1answer
45 views

Magento 2 Shipping Method I want Ternary condition for thee Like 'LBS' : 'KILOGRAM' :'GRAMS'

I am using shipping method in Magento2 my website.but this shipping method only two weight unit support so I want three weight unit support. my code is below, so help me public function ...
0
votes
1answer
278 views

Magento2: How to show shipping method condition wise?

I want to show shipping method base on total product weight. I have 2 Shipping method A and B. If total shipping weight equal or less than 150. Then will show shipping method A If total shipping ...
0
votes
0answers
36 views

Magento 2 price calculation for values under 0.01

I have a custom module that adds a modifier to the product price based on its weight. This is how it works: it adds a custom value (0.36€, in this case) for each Kg of product to its price. Now, it ...
0
votes
1answer
41 views

Magento 2: Bulk update “This item has weight” flag for all products?

Im using shipping method "Weight vs. Destination". For this all items need to have a weight. I can bulk update the weight for all the products but i cant bulk update the flag "This item has weight". ...
0
votes
1answer
34 views

How to disable shipping method if weight is more than 30 Kg

I installed this extension https://landofcoder.com/magento-2-table-rate-shipping-extension.html to manage shipping rates but i want to hide it or disable it if weight is more than 30 kg any ...
0
votes
0answers
30 views

Magento2 weight and qty decimal seperator

How to remove weight decimal from product page? Right now I set 3KG on admin panel but it shows 3.0000 in product page Also i have this issue on QTY too. it shows 5.00. I use Magento 2.1.8
0
votes
1answer
22 views

Added a product with weight 220LB to the cart, proceed to checkout, but the Shipping methods are not showing up

Using Magento 2.3.1 Added a product with weight 220LB to the cart ( the cart weight > 200lb ), proceed to checkout, but the Shipping methods are not showing up. There is no restriction for shipping ...
0
votes
0answers
93 views

Enabling weight attribute for custom type product

I want to implement a weight attribute to a custom type product that would enable shipping option for that particular product type. (My weight is working on other types of core product type: ex like ...
0
votes
0answers
36 views

magento2 error like undefined Property on shipping method like canada post

Magento2 checkoutcart page error like undefined Property on shipping method like canada post and not Calculated tax function inside on here general/locale/weight_unit like public function ...
0
votes
1answer
116 views

Magento 2 -> if weight =>100 then disable shipping method

How can I disable shipping method if product have weight is more than 100 ?
0
votes
0answers
205 views

how to get the weight unit of the product from quote in magento 2

I wish to get the weight unit of the product from quote in magento 2. Please provide me a solution to get quote value.
0
votes
2answers
290 views

How to Change Weight Unit in Magento 2 for Migrated Products

I have recently migrated my store from OpenCart. I have around 2700+ products. In OpenCart Grams as unit was available but not available in Magento 2. Is there any non-programing option available to ...
0
votes
2answers
298 views

How to change shipping cost per weight if is more than 10kg

Im using magento v2.2.2 Im trying to fix some shipping rates that shipping company gave me. I have 4 options Destination | shipping time | price up to 10 kg | price for extra 1kg In city ...
0
votes
1answer
454 views

Magento 1 OR 2 : Set custom product weight in quote

I have a dynamic product which is based on user size input. On the basis of user size input I am calculating product price and weight. I already set the product calculated price in custom price field ...