Drupal 8 Commerce 2 get Item from order

Hi, 

I use Drupal 8 and Commerce 2, I have standard Drupal shipping, have 2 types of product “default” and “downloadable” and set standard shipping in Drupal 8 and Commerce 2.   

I have 2 question now: 

  1. How I can get product types in order. 
  2. How I can programmatically get info (name, cost and etc) for shipping in order. 

Now I use: 

$order = Order::load(1);

foreach ($order->getItems() as $key => $order_item) {

Automatic Group Creation

Hi Folks,

Hoping for some Group gurus advice.

I have a site where people can register for different levels of access. For one of those roles they will "own" content and potentially staff. To accomplish this grouping of content and users I think the Group module will suit my needs.

I am wondering if anyone has experience creating and assigning groups automatically upon registration.

For example, a person signs up as a gallery owner. Upon registration a group of type "owner" is created and that person assigned as the group creator.

Thanks for the advice.

[DR 8.x][Beginner] Identify the id or hostname of the block, menu, or other twig template and use it in class naming.

Hi, I use the Zen theme for drupal 8.x.

I need to customize the menus so that they have the machine name or element ids that surrounds it.
This example is how I intend it to stay:

    <nav role="navigation" aria-labelledby="block-uni-theme-2018-account-menu-menu" id="block-uni-theme-2018-account-menu" class="contextual-region c-navigation-account c-navigation">
      <h2 class="visually-hidden" id="block-uni-theme-2018-account-menu-menu">User account menu</h2>

Image Migration using incorrect field name

I'm just learning the ins and outs of migrating from drupal 7 to drupal 8 and I've come to the issue of migrating the images.  Working one content type at a time I'm hit with this error:

Theme error

After a fresh installation, I have installed the bootstrap_rijkshuisstijl 8.x-1.0 theme, with the required components 8.x-1.0 module. When I active this module the following error appears on the site:

The website encountered an unexpected error. Please try again later.

Apache gives the following error:

Merge 2 attachments for same pagination

Hello, I want to know how to "merge" 2 attachments. I have 1 attachment doing 1 filter, the second is also doing 1 filter. 

Both attachment are attached to my page, but the pagination isn't working, this makes 2 paginations (1 for the first attachment, 1 for the second). I want to "merge" theses two attachments to have one and only one pagination.

How can I achieve this ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x