/** * Finnes EPD-lenke et eller annet sted på produktet? * - Sjekker ALLE postmeta-felt (inkl. ACF / custom felter) * - Sjekker post_content (beskrivelse) * - Sjekker dokumentlisten (norlux_documents) hvis dere bruker den * - Sjekker PDF-vedlegg som matcher EPD_*.pdf * - Arver fra varianter hvis produktet er variabelt */ function nlx_product_has_epd( int $product_id ): bool { // Treffer "EPD_*.pdf" (case-insensitivt). Slapper også av rundt skilletegn. $epd_url_regex = '/(?:^|[\/_-])EPD[^"\s<>]*\.pdf/i'; // 0) Hvis variabelt produkt: arve fra varianter if ( 'product' === get_post_type( $product_id ) ) { $product = wc_get_product( $product_id ); if ( $product && $product->is_type( 'variable' ) ) { foreach ( $product->get_children() as $vid ) { if ( nlx_product_has_epd_single( (int) $vid, $epd_url_regex ) ) { return true; } } } } // 1) Sjekk selve produktet if ( nlx_product_has_epd_single( $product_id, $epd_url_regex ) ) { return true; } return false; } /** * Sjekker én post-ID (produkt/variant). */ function nlx_product_has_epd_single( int $post_id, string $epd_url_regex ): bool { // A) Sjekk dokument-liste hvis brukt $docs = get_post_meta( $post_id, 'norlux_documents', true ); if ( ! empty( $docs ) ) { $blob = is_scalar( $docs ) ? (string) $docs : wp_json_encode( $docs ); if ( stripos( $blob, 'EPD' ) !== false || preg_match( $epd_url_regex, $blob ) ) { return true; } } // B) Sjekk ALLE postmeta-felter for EPD_*.pdf $all_meta = get_post_meta( $post_id ); foreach ( $all_meta as $key => $values ) { foreach ( (array) $values as $v ) { $blob = is_scalar( $v ) ? (string) $v : wp_json_encode( $v ); if ( preg_match( $epd_url_regex, $blob ) ) { return true; } } } // C) Sjekk innholdet (beskrivelse / kort beskrivelse ligger ofte i meta, men tar post_content også) $post = get_post( $post_id ); if ( $post && ! empty( $post->post_content ) ) { if ( preg_match( $epd_url_regex, $post->post_content ) ) { return true; } } // D) Sjekk PDF-vedlegg som er "attached" til posten $attachments = get_attached_media( 'application/pdf', $post_id ); if ( ! empty( $attachments ) ) { foreach ( $attachments as $att ) { $url = wp_get_attachment_url( $att->ID ); $file = get_post_meta( $att->ID, '_wp_attached_file', true ); if ( ($url && preg_match( $epd_url_regex, $url )) || ($file && preg_match( $epd_url_regex, (string) $file )) ) { return true; } } } return false; } Driver 24V cv 150W IP20 w/3m cable Euro-plug WH 210x67x34mm | Norlux

Driver 24V cv 150W IP20 w/3m cable Euro-plug WH 210x67x34mm

Read more
Product number: Q8H-24V-150W-01 Assortment status: Backorder item Category:
CE markedIP20: Indoor use.Insulation class 2: Double insulated and should not be connected to ground.Application: Indoor

Product info

DESCRIPTION

24V CV LED driver 150W with 3m cable and euro plug. Used for our LED Strips. Constant voltage. Not dimmable.

Documentation

SPECIFICATIONS

Product

IP rating

IP20

Length [mm]

210

Width [mm]

67

Height [mm]

34

Weight [kg]

0.32

Operating temperature [°C]

-20 - 50

Driver data

IP rating

IP20

System power [W]

150

Dimming

No

Insulation class

2

CC or CV

CV

CV [V]

24

ELECTRICAL DATA

Dimming type

No

Voltage [V]

230V 50Hz

Insulation class

2

Max. load per course - B10

2

Max. load per course - B16

4

Max. load per course - C10

6

Max. load per course - C16

11

Starting current Imax [A]

60

Starting current time [µs]

300

Manufacturer data

Producer

AcTEC

Manufacturer's description

24V 150W Q8H series