Commerce 2: How to implement separate billing/shipping addresses? Plus prevent use of PO Boxes?

My client's products already have shipping included in the prices, so we have no need for a separate shipping module or calculation.  However, we do need separate billing and shipping address fields during the checkout process and a way to prevent PO Boxes from being used as the shipping address.

Solution to emails to AOL or Comcast being blocked

Posting here because this was a problem for me for over a year and there is a pretty straightforward solution. Hope it helps someone else.

The problem was that my Drupal sites were unable to send email to registered users who had AOL or Comcast email addresses. I would get a notification that my email couldn't be delivered (various messages indicating it was refused by the recipient server). I reported this each time to the support folks at my ISP (DreamHost) and each time they said they would have their email team look at it, but they never offered a solution.

Drupal 8: "Add custom block" missing on the admin/structure/block screen?

I'm beginning to try and tackle a D8 migration and in doing so, came across this blog post about various enhancements, etc. that it has. The first image on that page seems to show the Block Layout page and an "Add custom block" link... However, I can't seem to find it on my end using the "Seven" theme.

GET parameter via twig to template

Hi,

I've a simple question regarding getting the parameter value from the url and displaying it in the template. I have created a .theme file within my custom theme and the code is this:

/**
 * Implements hook_preprocess_page()
 */
function dbdb4_preprocess_page(&$vars) {
  $vars['get']['service'] = \Drupal\Component\Utility\Xss::filter($_GET['service']);
  $vars['get']['software'] = \Drupal\Component\Utility\Xss::filter($_GET['software']);
}

Then, inside the .twig.html I have the following:

Extend Search Fields Drupal 8

Hi! I'm new to Drupal and I need help to custumize the internal search system of my site.

I've two views and the default search structure in drupal (after indexing content with Cron) allows me to search just with single word: for example, if I have content with title "Picasso", to find it I have to search the entire word "Picasso", and and if I use "Pi" or "Picass" it will not find anything.

Views entity reference filters in D8

Anyone know the best way to specify an entity reference view to be used as an exposed filter in D8?

I guess I'm overlooking something basic here, d7 you'd use "Views Reference Filter" module, however doesn't seem there's any plans of migrating this to D8.

Just to clarify, I wanna use a ER view to populate exposed filter values for an entity reference field.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x