commerce – One-Off Products – Drupal Answers

I’m creating a store with Drupal 8 Commerce 2 to sell fabric remnants. Each remnant will have a Length, Shipping Weight, and Price. There will be only one of each remnant available for purchase. Once it’s purchased, it needs to be automatically removed from the store. And on the back-end, it needs an easy way for an average warehouse employee to add new remnants to sell.

After several hours of searching, I can find no recommended way to implement this. Has anyone else done something like this? Is there a solution out there that I’m missing?

Drupal 8 Commerce 2 One-Off Products

I’m creating a store with Drupal 8 Commerce 2 to sell fabric remnants. Each remnant will have a Length, Shipping Weight, and Price. There will be only one of each remnant available for purchase. Once it’s purchased, it needs to be automatically removed from the store. And on the back-end, it needs an easy way for an average warehouse employee to add new remnants to sell.

After several hours of searching, I can find no recommended way to implement this. Has anyone else done something like this? Is there a solution out there that I’m missing?

commerce – How to add a field to an order that only the administrator can view/edit in the orders admin?

I am looking for help in reference to commerce 2, not commerce 1. The requirement is to add a field (select list) to the order admin area, not the customer order form. The administrator should be able to input via a select list some additional tracking on an existing order. However the requirement is to not use the STATE field/functionality. The requirement is also that this field should not be visible or editable by non-admins. I know how to add a field to the order through the order types > manage fields but that will create a field for the customer order form (and doesn’t even seem editable by admin). Anyone know how to accomplish this?

How do shipping methods, shipment types & package types work with each other in Commerce 2?

Sadly the Commerce 2 documentation on shipping is blank and offers no guide on how to setup a store’s shipping.

Trying to setup products but not sure what is the best approach. Don’t know what to setup first or in what order. Knowing the difference between the shipping methods, shipment types and package types and how they work with each other would be very helpful.

Also, if a product has dimensions, how does that affect the shipping or is there a way to add the dimensions per type? For example, if we sell 4×6 postcards. What would be the thickness on that since its basically a thin sheet, not inches or anything like that. How does this setting affect the shipping process?

Sorry for all the questions but there is no documentation on this and all the videos I found are all for Drupal 7 using Commerce 1x. I have found no documentation or videos on how the shipping works on Commerce 2 in Drupal 8/9.

I setup my product types… Post cards, CDs, toys.
Then I added products with their weight and dimensions into each product type. Now I have to create the shipping methods but have no idea what is the best approach since each product type’s weight is so different. A post card does not weight the same as a DVD so it would not be ideal to have a flat rate that overcharges a post card or a flat rate that undercharges the DVD. How can we setup a shipping method by weight?
0-8oz postcard = $priceA
9-16oz postcard = $priceB

0-8oz toy = $priceC
9-16oz toy = $priceD

But not only that, the post cards ship in envelopes which cost much less than the price of a boxed toy so having methods only based on weight would not work. Need to have options based on weight and size. So how does one get something like that setup?

Just any help on documentation on how shipping works on commerce and the flow of things would help greatly to get me going on the right path. Do you know of any videos or docs that explain how to use the shipping module (methods, shipment types & package types)? and how these work in conjunction with the product variation’s weight & dimensions? Maybe if I get that cleared up I can figure out how I can custom create our solution.

Thank you.

e commerce – Recommended frame size, resolution and typography scale

I’m a junior designer so I’d appreciate it if you could give me as many details as possible 🙂

I’m currently designing an E-commerce website (PC for now, maybe add a mobile layer later on) and would like to know how to space the elements properly (recommended grids and margins), which typographic scale sizes are recommended and what frame(screen size reference resolution) to use.

Thanks for all the help ☺️

7 – Drupal commerce discount issue

Im working (still) on a big Drupal 7 commerce site and I have some issues with the commerce discount module on order discount. Both Drupal 7, commerce, commerce discount and rules is on newest stable releases.

When going through the checkout and a order discount is attached to the order (either with a discount code or direct) it’s visible in the commerce_order_total_data field in the field_data_commerce_order_total table.

When going from checkout_review -> payment the discount is suddenly removed from this order and not getting back.

Cannot figure out what caused this neighter where it happens.

And a sitecomment here is that it works on dev and stage server, but not production (same code and every thing)

e commerce – Is a scoped search the way to deal with different content types?

On my website, I have regular informational content and a shop. Both should be available to search, but I do not want to search everything with one bar and offer two separate lists of content after the search. I also do not want two search bars.

The only opportunity I can think of right now is a scoped search, i.e. the user has to choose “Website” or “Shop” in a button next to the search bar.

I have the impression that this is not really often used nowadays – is this still state of the art or can you think of a better alternative?

9 – Commerce 2 Klarna Checkout – How to install Klarna Checkout PHP Library?

I try to get Klarna Checkout running in a Commerce 2 intallation on Drupal 9.
Sorrily most of the links on the modules project page are broken, so I find no documentation / setup-instructions or info on getting it set up.

The module “Klarna Checkout” is installed and set up as payment gateway. It can be chosen in the checkout pane. But after submitting the checkout review page, I get the “page encountered a problem” error.

This is due to no having installed the “Klarna Checkout PHP Library” I downloaded from Github. I tried to put it inside root/libraries/klarna_checkout/…, in root/modules/commerce_klarna_checkout/libraries/…, and in root/sites/all/libraries/klarna_checkout/…

Nothing of the above works.

It would be a big help, if someone could point me any tutorial, documentation or similar on how to set up this module. Thank you very much in advance!

8 – Commerce Pickup order

There is an online web shop, where there should be an option to pick up order from the store.
On checkout, the user is supposed to choose pickup option and choose a location and date for where and when he/she wants to pick up the order.

I have an content entity type (Store) which would I would like to reference in this option.

The Store content entity type has 2 fields: opening hours and location of the store which would be used for the location and date for the pick up option.

What is the easiest way to achieve this?