Drupal

Drupal 7 Commerce - Checkout info (billing, payment) on commerce webform product display?

Drupal - Open Source Content Platform - Fri, 01/12/2018 - 12:25

Has anyone had any success or insight on how to display both the billing pane and payment pane on a drupal 7 commerce product?

My need is: A commerce webform takes donation information, and I'd like to get the payment and billing info all on a single page. The user fills out the donation form data, then their billing, then the payment piece, and then clicks "Submit my Donation", and the process completes.

I haven't had any success so far, so I thought I'd ask. Right now it's a two step process, and streamlining it would make things a tad bit easier.

submitted by /u/narcissus921
[link] [comments]

Commerce Toolbar

drupal.org - Modules - Fri, 01/12/2018 - 12:07
Categories: Drupal

Valuebound: A beginners guide to caching in Drupal 8

drupal.org aggregator - Fri, 01/12/2018 - 11:38

Caching is a popular technique to optimize the performance of a website. It is a process that stores web data (HTML, CSS, Image) in some accessible space. Moreover, a cache is a detailed information of a validity of a resource. This information defines for how long the resource is valid and should not be considered stale. The information can be stored at every level right from the original server to intermediate proxies to the browser.

Here you will get to learn about what key/value pairs in the header mean and Cacheability metadata in Drupal 8.

Every request or response contains a HTTP header, which provides additional information about the request/response. This…

Categories: Drupal

Preprocessing - node empty when logged out

Drupal - Open Source Content Platform - Fri, 01/12/2018 - 10:25

I am trying to use the preprocess_page hook to add some twig variables.

All worked fine, until I logged out. When I'm logged out, the hook $variables does not contain a node object.

Why is this? And how can I fix the issue?

submitted by /u/mr_pablo
[link] [comments]

CTI Digital: Drupalcamp London 2018

drupal.org aggregator - Fri, 01/12/2018 - 09:46


Drupalcamp London returns in March for its 6th year. As the largest Drupal camp in Europe, it provides a scale of high-quality knowledge I rarely see elsewhere. If you’re new to Drupalcons and camps, Drupalcamp is a three-day knowledge-sharing conference in London that attracts a wide variety of over 600 Drupal stakeholders, including developers, agencies, business owners, and end users.

Categories: Drupal

Rearranging fields is a nightmare

Drupal - Open Source Content Platform - Fri, 01/12/2018 - 09:17

Does anyone else have a terrible experience rearranging the order of fields via the drag and drop? Whenever you are dragging a field, the page starts to scroll at a certain point. It's incredibly frustrating. I've gotten used to it by shrinking the page to 25% and being accurate with a fast drag, but I can't tell clients to do the same. Is there a better solution to this?

submitted by /u/Jjangbi
[link] [comments]

Weekly useful Drupal things to know thread

Drupal - Open Source Content Platform - Fri, 01/12/2018 - 09:08

What's a useful tip or technique or tool (or anything) that you picked up and think others should know about?

(Check out the weekly post schedule in the sidebar)

submitted by /u/AutoModerator
[link] [comments]

Amazee Labs: The stalker - a story

drupal.org aggregator - Fri, 01/12/2018 - 05:27
The stalker - a story

The #techfiction story about how a backend developer feels as he starts working on his first frontend task.

Tadej Basa Fri, 01/12/2018 - 11:27

#techfiction #noir

It’s late. The cold breeze stings my face as I wander the dark alleys of the City. Now and then dim neon lights cut through my shadows. I’ve been wandering around aimlessly for what feels like hours. Now I find myself standing in front of Avery’s again. I enter, in a force of habit.

There are a bunch of familiar faces. Christmas is around the corner, and everybody’s celebrating, but I’m not in the mood for “jingle bells” today. I grab an empty chair at the bar and order a shot of Glenlivet.

'What’s with the grim face, Tony?'

It didn’t last long. Peter approaches holding a bottle of beer in his right hand. I can’t lie to him. He’ll see right through me.

'She’s gone, Peter. I’ll never see her again.'

'Oh, come on! There’s plenty of fish in the sea. Here, I’ve got something that might cheer you up.'

He puts down his beer and reaches into his leather jacket, pulls out a crumpled piece of paper and hands it to me. Just a short note written on it, smeared bold letters read “GZA-220”.

'What’s this?'

'I was going to give this to Sanchez, but looks like you need it more.'

Sanchez. He’s been stealing assignments from me for months laughing it up while I’ll cry myself blind, bored to death, working day in and day out on those seemingly insignificant backend nuisances. I might relish this, just to get back at him.

'Come on! Look it up.'

It turns out to be a task ID on JIRA, the project management system we use internally. I put my machine on the desk, start up the browser and navigate straight to the task page.

'It‘s a frontend task,' I mumble out of pure surprise.

'You might need some change,' he says.

He’s right. I need something to regain focus. A new kind of challenge.

'Ok. Assign that to me. I’ll do it.'

The task is as follows. A website is composed of horizontally stacked regions each having a background colour setting defined by the editor. When hovering over the areas with a blue background setting a radial smudge should follow the mouse cursor in the background.

I don’t waste any time and quickly employ my usual routine: look it up on Google. Surely someone’s already done something similar, and I don’t want to waste my precious time. I’ve got to get back to feeling sorry for myself.

Here it is, right off the bat, almost the exact same thing. But after a quick investigation, I find it uses CSS, and a transform style attribute changes as I move the mouse around. While this looks good, I’ll try another approach, draw directly on canvas and check how this performs. So for every blue region, I just add another "canvas" and resize it so that it covers the whole background area. A global variable will keep track of the smudge’s position and other movement data.

I’ll set up my mouse move listener and a draw loop and quickly find out that scrolling the document leaves my smudge hanging motionless. I need to treat the scroll same as a vertical mouse move.

It’s getting serious now. I light up a cigarette.

I used to be a non-smoker. Then I met my buddy George back in April. We had a couple of drinks, and he offered me one of his Luckies. Now I’m sucking them down like there’s no tomorrow. Two packs a day.

I've been sitting here for two hours already. Time passes by so quickly when the mind is busy. I’ve got something going on, but I see problems already. We might have multiple disconnected regions on the same page, and the effect has to flow through them seamlessly. I have to track the global coordinates and just draw the damn thing with a local offset. If the regions are far apart, the smudge might not be visible in all of them at once. No sense in redrawing the canvas if the thing is entirely out of its bounds. We can calculate if the smudge is inside of each rectangular region and omit to redraw it when they don’t overlap. I find some useful math shenanigans on StackExchange and plug it in.

My complete draw loop looks like this:

A figure reflects in my excessively glossy Dell XPS screen.

'What going on here? Is it still 2015? Ever heard of requestAnimationFrame()?'

Douglas. His real name is Bob-Douglas, but I just call him Dick. Funny guy. Rumors go he can recite the complete team channel conversation from Slack by heart.

'What are you talking about? No, I’ve never heard of it… I’ve never heard of anything. I don’t even know what I’m doing here.'

Let’s see what Dick is trying to tell me. According to the documentation, by calling window.requestAnimationFrame() you’re telling the browser that you wish to animate something and that the specified callback should be invoked before the repaint. This is better for performance reasons as requestAnimationFrame() calls are paused when running in background tabs.

This approach needs a little adjustment. If I keep calling requestAnimationFrame() the browser will try to keep up with my screen’s refresh rate and the animation is too quick. I’ll slow it down to 60Hz by checking the timestamp parameter that gets passed into my callback. Much better.

My job here is done. I close the lid, take another shot of whisky and head out on the street. I’ve got to find her. I’ve got to see her again. Don’t try to stop me and don’t you come looking for me. It’s a big city, and I’ll be hiding in the shadows. The best chance you’ve got is hearing the receding echoes of my footsteps as I fade into the darkness.

 

Can you spot the stalker?

 

Categories: Drupal

Vimeo Upload

drupal.org - Modules - Fri, 01/12/2018 - 04:57

Javascript based upload to get a video URL from Vimeo without having to upload it on Drupal first. The result URL can then be used with Video Embed Field or Media Entity Vimeo.

Work in progress

Categories: Drupal

Upgrading to Drupal 7 from 6 thousands of articles

Drupal - Open Source Content Platform - Fri, 01/12/2018 - 04:20

Hi so I have about 100000 articles in my Drupal 6 website with mysql php 5.5

Now we are developing a Drupal 7 site separately with newer design same and mysql and php 7

My question is what’s the most efficient way to move all these 100k Drupal 6 articles to the newer Drupal 7 site?

Your advice is appreciated thanks!

submitted by /u/froddo7
[link] [comments]

Roman Agabekov: Making your Drupal web server secure, step by step

drupal.org aggregator - Fri, 01/12/2018 - 01:53
Making your Drupal web server secure, step by step

In the previous article, we covered How to stay out of SPAM folder? and today we will learn how to secure our Drupal web server.

Setting up Firewall

So, we have Debian OS powering our Drupal web server, and we need to make it secure, adjust everything so as to minimize all risks. First of, we want to configure the firewall. Basic stuff. Our "weapon of choice" here is IPTables.

admin Fri, 01/12/2018 - 06:53 Теги
Categories: Drupal

Freelock : The Spectre of a Meltdown

drupal.org aggregator - Thu, 01/11/2018 - 19:31
The Spectre of a Meltdown John Locke Thu, 01/11/2018 - 17:31

The news was supposed to come out this Tuesday, but it leaked early. Last week we learned about three variations of a new class of attacks on modern computing, before many vendors could release a patch -- and we come to find out that the root cause may be entirely unpatchable, and can only be fixed by buying new computers.

Disaster Recovery Drupal Planet hacked site maintenance Meltdown Security Spectre
Categories: Drupal

Drupal Commerce: Drupal Commerce 2.x: 2017 in review

drupal.org aggregator - Thu, 01/11/2018 - 18:45

Now that 2017 is over and we’re back from our well deserved holidays, it’s time to look at what the Drupal Commerce community accomplished over the past year.

There is no doubt that Drupal Commerce is one of the largest and most active projects in the Drupal community. The #commerce channel is now the most active channel on the Drupal Slack, with 550 members. Over a hundred modules have received contributions from several hundred contributors working for dozens of different agencies. Just a few months after the initial stable release, there are over 2000 reported installations with new case studies appearing every week!

Let’s take a closer look.

Categories: Drupal

Acro Media: Drupal Commerce 2: How to Set up Taxes

drupal.org aggregator - Thu, 01/11/2018 - 18:10

Setting up taxes in Drupal Commerce 2 is a snap. The component comes bundled with some predefined tax rate plugins, such as Canadian sales tax and European Union VAT. This means that enabling these tax types is as easy as checking a box. More complicated tax regions, like you would find in the United States, have integrations available with services such as Avalara AvaTax, TaxCloud and more. Custom tax types can also be created out-of-the-box.

In this Acro Media Tech Talk video, we user our Urban Hipster Commerce 2 demo site to quickly show you how to configure the predefined tax plugins as well as add a custom tax type. 

Its important to note that this video was recorded before the official 2.0 release of Drupal Commerce. The current state of the Taxes sub-module is even more robust than what you see here, and additional plugins have been added out-of-the-box. Documentation is also still lacking at the time of this post, however, we've added a link anyway so that whoever finds this in the future will benefit.

Urban Hipster Commerce 2 Demo site

This video was created using the Urban Hipster Commerce 2 demo site. We've built this site to show the adaptability of the Drupal 8, Commerce 2 platform. Most of what you see is out-of-the-box functionality combined with expert configuration and theming.

More from Acro Media Drupal modules used in this video Additional resources

Categories: Drupal

Phase2: How Digital Marketing is Evolving with Drupal

drupal.org aggregator - Thu, 01/11/2018 - 12:32

With exponential growth in marketing tools and website builders, why are marketers still adopting Drupal and maintaining their existing Drupal systems? And how has Drupal evolved to become a crucial piece of leading brands’ martech ecosystems?

For marketing decision makers, there are many reasons to choose and stick with Drupal, including:  

  • Designed to integrate with other marketing tools

  • Increased administrative efficiencies

Categories: Drupal

Academic Applications

drupal.org - Modules - Thu, 01/11/2018 - 12:01

This module provides a simple system for applicants to apply to academic programs.

Categories: Drupal

Hosting provider site performance

Drupal - Open Source Content Platform - Thu, 01/11/2018 - 11:48

Considering both Pantheon and Platform.sh for hosting a low traffic enterprise website (~200k monthly visitors). One of the biggest factors will be site performance. Pantheon boasts industry leading site performance as a key differentiator.

Does anyone have knowledge on if this is true and if so, how much faster then Platform.sh?

Context: Compare site speed to Acquia Cloud for reference.

submitted by /u/HapaHaole13
[link] [comments]

Field Format Case

drupal.org - Modules - Thu, 01/11/2018 - 10:06

Ever wanted your fields in a node add/edit form or a user registration form to contain characters in the same case for formatting reasons? This module addresses this exact issue. An extra fieldset is added to the Manage Field form and allows you to select the case of each column. For example, a simple textfield only contains the value column, whereas an address field contains multiple columns for the country, the city, the area, the postal code etc. The module allows you to select uppercase or lowercase values for each one.

Supported Core + Contrib widgets

Categories: Drupal

Pages