This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Add tax for shipping

Hi,

I'm newbie in drupal. Yesterday I don't know what is drupal, but I need to do exercise.
I need to make a 3% tax on total order when paypal method is choosen. For now I create a tax but only for all products and I need to create also tax on shipping but I don't know how to do this.

I will be very glad if someone could give some hints how to achive that ;)

How to change Drupal 8 default error routes?

The default routes are 

  • '/system/401'
  • '/system/403'
  • '/system/404'

But I would like to change these to something like

  • '/error/unauthorized'
  • '/error/forbidden'
  • '/error/page-not-found'

Using custom controller and twig. Please advise.

FormBuilder buildForm vs getForm

So FormBuilder has a buildForm and a getForm. Is the only real difference speed? On submit, i am looking to pre set the form with previously submit info. The get function takes the additional args param; however the build doesnt. So which should I use? Should I have a: if not submit? getForm; else? buildForm

Thanks

D8 - Change error message of Login and Reset Password form

Hi Team, 

I'm looking to change the default error message that comes with Login and reset password form. Is there any module available to do so, or do I need to write custom code for that? 

For eg:

Login Form:
Need to change - "Sorry, unrecognized username or password. Have you forgotten your password?"

Reset Form:
Need to change - "Sorry, abcd is not recognized as a user name or an e-mail address."

Thanks all for your support. 

drupal 8 module twig view file data need to save as .html file for Search Engine Crawling

Hello All,

I have a requirement in durpal 8. Requirement  as provided below

I have created a durpal module. It fetches the content from 3rd party APIs and drupal db. The output is created in twig files. We have requirement like the output of twig file need to be saved as html file which is used for google SEO crawling.

I can not keep the ob_start in twig files as php code not allowed in twig flies. So, Please provide other inputs.

Prepopulating and skipping webform pages

I have a multi-page webform. In different places of the site a custom block is placed. It contains a form with two elements similar to those on a first webform page. After submitting the form it redirects to a webform page. My task is not only prepopulate webform elements values but to skip the first page if the user has already answered these questions in a previous form.

I see the solution as something of this kind: on form submit a new submission is created and put it into the webform. But alas all my trials led to nothing.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions