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

Adding Paypal buttons and link

Running Drupal Version 8.9.18. Have set up subscription service in Paypal and want to link buttons to website. Have pasted the Paypal code into a content box and tried again with pasting into the link box but I just get a lot of code and not a button. 
I'm not a programmer so please be very basic in any replies. Also I need to link Paypal to Drupal via an API number but I am not sure where to find it. Can anyone help. Thanks in advance. 

How to manually trigger replacing bigpipe snippets with content? (javascript)

I am using jQuery.smoothState.js for Drupal 9 page transitions. 

When transitioning to a new page, jQuery.smoothState.js updates the content div with new content and the <title></title> element (in <head>) with a new page title. This new content has bigpipe snippets that are not resolved to their respective contents: 

#ajax Form API to do two things

This part of my custom form depends on ajax to conditionally show additional fields. It is working.

[help] Checking if the Min Max field in an exposed view exist.

Hey guys,

I've been having trouble accessing certain fields in an exposed filter.

I have a content type where I insert 3 prices for different types of products.
Some products will have all 3 prices added some just 2 or 1.

All prices are entered based on one currency (EURO).
However, Using twig I have to display one of the prices in $USD, lets call it price 3.

reading Json String

Hi,

I have this sample data and this is just a part of data but it is swagger which is a JSON.

a:14:{s:7:"swagger";s:3:"2.0";s:4:"info";a:6:{s:10:"x-ibm-name";s:22:"test-summary";s:5:"title";s:28:"test Summaries for test";s:7:"version";s:5:"1.0.0";s:11:"description";s:84:"Account Information, retrieve account test and statuses for the test.";s:7:"contact";a:2:

This data is extracted as string on the variable "apiSwagger"

$apiSwagger = $apiNode->api_swagger->value;

After using a delete all nodes API, ONLY the values of the author column are displayed

Using Drupal 10:

Is this way below (to delete all content for a content type) reliable (instead of using the loadMultiple method)?

\Drupal::database()->delete('node')
->condition('type', "mycontenttype")
->execute();

Pages

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