Alexander Herzog
Forum Replies Created
-
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Add custom fields to certificatethe option[‘text’] holds the content of the Layer.
so, do_shortcode should do the trick.be aware, that learnpress 4.0 is here and that the LP_Certificate_Layer may not be available any longer….
class LP_Certificate_Shortcode_Layer extends LP_Certificate_Layer { public function apply( $data ) { $this->options['text'] = do_shortcode('[your-code course_id="' . $data['course_id'] . ']'); } }
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Add custom fields to certificateHi @kitkaanka77
i tried:
add_filter( 'certificates/fields', function($fields) { $fields[] = array( 'name' => 'shortcode', 'icon' => 'dashicons-smiley', 'title' => __( 'Shortcode', 'learnpress-certificates' ) ); return $fields; }); if (class_exists('LP_Certificate_Layer')) { class LP_Certificate_Shortcode_Layer extends LP_Certificate_Layer { public function apply( $data ) { if (function_exists('get_field') && !empty( $data['course_id'] ) ) { $this->options['text'] = get_field('stundenanzahl', $data['course_id'] ); } else { $this->options['text'] = $this->options['text']; } } } }
in functions.php of my child theme… i have not tested it enough, but seems to work for me
Forum: Themes and Templates
In reply to: [Hello Elementor] Conflict with LearnPress PluginNo problem – you might need to fiddle with archive-course.php
I just found sensei – I guess those guys at least know WordPress a little better ??
Forum: Themes and Templates
In reply to: [Hello Elementor] Conflict with LearnPress PluginOK! After about an HOUR of debugging here is the solution:
* go to your hello-theme-folder (or childtheme).
* copy index.php (of hello-elementor) to single-course.php
* copy index.php (of hello-elementor) to archive-course.phpcheck results!
learnpess uses
if(get_option( 'template' ) == 'twentytwenty' ){ $template = get_singular_template(); }
somewhere in the code – how crappy is that?
Forum: Themes and Templates
In reply to: [Hello Elementor] Conflict with LearnPress PluginDid you find any solution for that?
ok, can I see that board somewhere so I can check on the status, or will you reply here?
Forum: Plugins
In reply to: [Weight zone shipping for WooCommerce] Max weight does not applyFor 1) i had to change calculate_shipping function in
oik-weight-zone-shipping/class-oik-weight-zone-shipping.php
by adding the current weight to the ID of the rate. something like'id' => $this->id . "_" . $this->instance_id. '_' . ($weight*100)
i think this is a wc “feature”2) just add somehing like 1.91|12|EU Letter over 2000g
—
do you have WPML installed? check your string translations for the displayed term
- This reply was modified 7 years, 7 months ago by Alexander Herzog. Reason: WPML