JPOG
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Different Image Gallery for Each Product VariationSorry Roy,
i didn’t know that since the plugin developer was posting here 11 months ago and there seems to be no forum for this plugin as such.
But maybe you can help me. Is there a way to get more than one image per product variation in Woocommerce than with the help of a commercial plugin?
Thanks for your help.
Forum: Plugins
In reply to: [WooCommerce] Different Image Gallery for Each Product VariationOk. I worked with your plugin a bit more. I basicly have one question: How can i hide the thumbnail if the only is one image?
Forum: Plugins
In reply to: [WooCommerce] Different Image Gallery for Each Product VariationHi James,
i bought your plugin, but now i have one problem.
I have one product with variations where your plugin works fine. All the other products have only one image. Your plugin seems to overwrite generally the Woocommerce single image even if I do not have a variation (ends up in one image with the same image under it as thumbnail).
Is there a way to turn your plugin off, when not needed?
Thanks.
Regards Jan-Philipp
Forum: Plugins
In reply to: [Thumbs Rating] Adding Thumbnail images to shortcodeOK, thank you Ricard.
I appreciate your quick response. And i finally got what you mean.
And the best is i found the solution. The WP thumbnail didn’t like to be in the $return variable, so i echoed each value.
Like this:
<?php $type = 'positive'; $posts_per_page = 5; $show_votes = 'yes'; $post_type = 'literature'; $show_both = 'no'; // Check wich meta_key the user wants if( $type == 'positive' ){ $meta_key = '_thumbs_rating_up'; $other_meta_key = '_thumbs_rating_down'; $sign = "+"; $other_sign = "-"; } else{ $meta_key = '_thumbs_rating_down'; $other_meta_key = '_thumbs_rating_up'; $sign = "-"; $other_sign = "+"; } // Build up the args array $args = array ( 'post_type' => $post_type, 'post_status' => 'publish', 'pagination' => false, 'posts_per_page' => $posts_per_page, 'cache_results' => true, 'meta_key' => $meta_key, 'orderby' => 'meta_value_num' ); // Get the posts $thumbs_ratings_top_query = new WP_Query($args); // Build the post list if($thumbs_ratings_top_query->have_posts()) : echo'<ol class="thumbs-rating-top-list">'; while($thumbs_ratings_top_query->have_posts()){ $thumbs_ratings_top_query->the_post(); echo '<li>'; echo '<span>' . the_post_thumbnail( 'thumbnail' ) . '</span>'; echo '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; if( $show_votes == "yes" ){ // Get the votes $meta_values = get_post_meta(get_the_ID(), $meta_key); // Add the votes to the HTML echo ' (' . $sign; if( sizeof($meta_values) > 0){ echo $meta_values[0]; }else{ echo "0"; } // Show the other votes if needed if( $show_both == 'yes' ){ $other_meta_values = get_post_meta(get_the_ID(), $other_meta_key); echo " " . $other_sign; if( sizeof($other_meta_values) > 0){ echo $other_meta_values[0]; }else{ echo "0"; } } echo ')'; } } echo'</li>'; echo '</ol>'; // Reset the post data or the sky will fall wp_reset_postdata(); endif; ?>
Works nice and smooth now. Thank you again for your help.
Best jp
Forum: Plugins
In reply to: [Thumbs Rating] Adding Thumbnail images to shortcodeHi,
you mean i should copy the whole function like this into the PHP Widget? I am sorry i am not a PHP Freak, i am quite sure i miss something, since nothing is displayed now….
<?php if ( ! function_exists( 'thumbs_rating_top_func' ) ): function thumbs_rating_top_func( $atts ) { $return = ''; // Parameters accepted extract( shortcode_atts( array( 'type' => 'positive', 'posts_per_page' => 5, 'category' => '', 'show_votes' => 'yes', 'post_type' => 'any', 'show_both' => 'no' ), $atts ) ); // Check wich meta_key the user wants if( $type == 'positive' ){ $meta_key = '_thumbs_rating_up'; $other_meta_key = '_thumbs_rating_down'; $sign = "+"; $other_sign = "-"; } else{ $meta_key = '_thumbs_rating_down'; $other_meta_key = '_thumbs_rating_up'; $sign = "-"; $other_sign = "+"; } // Build up the args array $args = array ( 'post_type' => $post_type, 'post_status' => 'publish', 'cat' => $category, 'pagination' => false, 'posts_per_page' => $posts_per_page, 'cache_results' => true, 'meta_key' => $meta_key, 'orderby' => 'meta_value_num' ); // Get the posts $thumbs_ratings_top_query = new WP_Query($args); // Build the post list if($thumbs_ratings_top_query->have_posts()) : $return .= '<ol class="thumbs-rating-top-list">'; while($thumbs_ratings_top_query->have_posts()){ $thumbs_ratings_top_query->the_post(); $return .= '<li>'; $return .= '<span>' . the_post_thumbnail( 'thumbnail' ) . '</span>'; $return .= '<a href="' . get_permalink() . '">' . get_the_title() . '</a>'; if( $show_votes == "yes" ){ // Get the votes $meta_values = get_post_meta(get_the_ID(), $meta_key); // Add the votes to the HTML $return .= ' (' . $sign; if( sizeof($meta_values) > 0){ $return .= $meta_values[0]; }else{ $return .= "0"; } // Show the other votes if needed if( $show_both == 'yes' ){ $other_meta_values = get_post_meta(get_the_ID(), $other_meta_key); $return .= " " . $other_sign; if( sizeof($other_meta_values) > 0){ $return .= $other_meta_values[0]; }else{ $return .= "0"; } } $return .= ')'; } } $return .= '</li>'; $return .= '</ol>'; // Reset the post data or the sky will fall wp_reset_postdata(); endif; return $return; add_shortcode( 'thumbs_rating_top', 'thumbs_rating_top_func' ); endif; };?>
Thanks for your help.
Regards JP
Forum: Plugins
In reply to: [WP Better Emails] HTML Tags in %content% now possibleHi nlemoine,
indeed, if you look at the screenshots, it looks like there are no html-tags inside at all. It is because i changed your code like described above. The mailtemplate looks like this:
<?php /** * Template für die Mail, die bei einer neuen Bestellung an den Kunde geht */ //wpsg_debug($this->view); ?><b><?php echo wpsg_translate(__('Hallo #1# #2#,', 'wpsg'), $this->view['basket']['checkout']['vname'], $this->view['basket']['checkout']['name']); ?> </b> <b><?php echo __('Vielen Dank für Ihre Bestellung.', 'wpsg'); ?></b><br style="display:none;"> <?php if ($this->hasMod('wpsg_mod_shippingadress') && $this->callMod('wpsg_mod_shippingadress', 'check_different_shippingadress', array('k_id' => $this->view['basket']['checkout']['k_id'], 'o_id' => $this->view['o_id']))) { ?> <b><?php echo __('Rechnungsadresse:', 'wpsg'); ?></b> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['firma']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['vname']; ?> <?php echo $this->view['basket']['checkout']['name']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Stra?e', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['strasse']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?></span><?php echo $this->db->fetchOne("SELECT <code>name</code> FROM <code>".WPSG_TBL_LAND."</code> WHERE <code>id</code> = '".wpsg_q($this->view['basket']['checkout']['land'])."' "); ?> <?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['ustidnr']; ?> <?php } ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['tel']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['fax']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['email']; ?> <b><?php echo __('Lieferadresse:', 'wpsg'); ?> </b> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['shipping_firma']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['shipping_vname']; ?> <?php echo $this->view['basket']['checkout']['shipping_name']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Stra?e', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['shipping_strasse']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['shipping_plz']; ?> <?php echo $this->view['basket']['checkout']['shipping_ort']; ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?></span><?php echo $this->db->fetchOne("SELECT <code>name</code> FROM <code>".WPSG_TBL_LAND."</code> WHERE <code>id</code> = '".wpsg_q($this->view['basket']['checkout']['shipping_land'])."' "); ?> <?php } else { ?> <b><?php echo __('Rechnungs- /Lieferadresse:', 'wpsg'); ?> </b> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Firma', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['firma']; ?><br style="display:none;"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Name', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['vname']; ?> <?php echo $this->view['basket']['checkout']['name']; ?><br style="display:none;"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Stra?e', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['strasse']; ?><br style="display:none;"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Land', 'wpsg').':', 35); ?></span><?php echo $this->db->fetchOne("SELECT <code>name</code> FROM <code>".WPSG_TBL_LAND."</code> WHERE <code>id</code> = '".wpsg_q($this->view['basket']['checkout']['land'])."' "); ?><br style="display:none;"> <?php if (trim($this->view['basket']['checkout']['ustidnr']) != "") { ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('USt.IdNr.', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['ustidnr']; ?><br style="display:none;"> <?php } ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Ort', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['plz']; ?> <?php echo $this->view['basket']['checkout']['ort']; ?><br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Telefon', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['tel']; ?><br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Fax', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['fax']; ?><br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('E-Mail Adresse', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['email']; ?><br style="display:none"> <?php } ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Kundennummer', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['knr']; ?> <br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Bestellnummer', 'wpsg').':', 35); ?></span><?php echo $this->view['basket']['checkout']['onr']; ?> <br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Bestelldatum', 'wpsg').':', 35); ?></span><?php echo date("d.m.Y H:i:s", $this->view['basket']['checkout']['datum']); ?> <br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Rechnungbetrag', 'wpsg').':', 35); ?></span><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?> <br style="display:none"> <?php if ($this->get_option('wpsg_kleinunternehmer')) { ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?></span><br style="display:none"> <?php } else { ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Steueranteil', 'wpsg').':', 35); ?></span><?php echo wpsg_ff($this->view['basket']['sum']['mwst'], $this->get_option('wpsg_currency')); ?><br style="display:none"> <?php } ?> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Versandart', 'wpsg').':', 35); ?></span><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?> <?php $this->callMods('mail_kundenmail_shipping'); ?> <br style="display:none"> <span style="width:150px; display:inline-block; font-weight:bold"><?php echo wpsg_pad_right(__('Zahlungsart', 'wpsg').':', 35); ?></span><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?> <?php $this->callMods('mail_kundenmail_payment'); ?> <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { $prod_col = 25; } else { $prod_col = 35; } ?> <b><?php echo __('Bestellung', 'wpsg'); ?>:</b> <div style="width:510px; padding:8px; border:1px solid #ccc; background-color:#eee; border-radius:5px;font-size:12px;"> <span style="width:40px; text-align:left; display:inline-block;border-bottom:1px solid #000;"><?php echo wpsg_pad_right(__('Pos', 'wpsg'), 5); ?></span><span style="border-bottom:1px solid #000;text-align:left;width:260px;display:inline-block"><?php echo wpsg_pad_right(__('Produkt', 'wpsg'), $prod_col); ?></span><span style="width:70px;border-bottom:1px solid #000;text-align:right;display:inline-block; "><?php echo wpsg_pad_left(__('Stückpreis', 'wpsg').' ', 15); ?></span><?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?><span style="width:40px; display:inline-block; border-bottom:1px solid #000;"><?php echo wpsg_pad_left(__('MwSt.', 'wpsg').' ', 10); ?></span><?php } ?><span style="width:60px; display:inline-block; border-bottom:1px solid #000;text-align:right;"><?php echo wpsg_pad_right(__('Anzahl', 'wpsg'), 6); ?></span><span style="width:70px; display:inline-block; border-bottom:1px solid #000;text-align:right;"><?php echo wpsg_pad_left(__('Summe', 'wpsg'), 15); ?></span><br > <span><b style="display:none;">----------------------------------------------------------------------------</b></span><br style="display:none"> <?php $i = 0; foreach ((array)$this->view['basket']['produkte'] as $p) { $i ++; ?> <span style="width:40px; text-align:left; display:inline-block;"><?php echo wpsg_pad_right($i.'.', 5); ?></span><span style="text-align:left;width:260px;display:inline-block"><?php echo wpsg_pad_right($p['name'], $prod_col); ?></span><span style="width:70px;text-align:right;display:inline-block; "><?php echo wpsg_pad_left(wpsg_ff($p['preis'], $this->get_option('wpsg_currency')).' ', 15); ?></span><?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?><span style="padding-left:10px"><?php echo wpsg_pad_left(wpsg_ff($p['mwst_value'], '%').' ', 10); ?></span><?php } ?><span style="width:60px; display:inline-block; text-align:right;"><?php echo wpsg_pad_left($p['menge'], 6); ?></span><span style="width:70px; display:inline-block; text-align:right;"><?php echo wpsg_pad_left(wpsg_ff($p['preis'] * $p['menge'], $this->get_option('wpsg_currency')), 15); ?></span> <br style="display:none"> <span style="width:40px; text-align:left; display:inline-block;"></span><span style="font-size:10px;"><?php echo wpsg_pad_left(__('Art. Nr.:', 'wpsg').' ', 15); ?><?php echo wpsg_pad_right($p['anr'], ($prod_col - strlen($p['anr']))); ?></span> <br style="display:none"> <span style="width:40px; text-align:left; display:inline-block;"></span><span style="font-size:10px;"><?php $this->callMods('mail_kundenmail_row', array($i, $p)); ?></span><br style="display:none"><?php } ?> <?php if (isset($this->view['basket']['gs'])) { ?> <?php echo wpsg_pad_right(($i + 1).'.', 5); ?> <?php echo wpsg_pad_right(wpsg_translate(__('Gutschein (#1#)', 'wpsg'), $this->view['basket']['gs']['code']), $prod_col); ?> <?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['gs']['value'], (($this->view['basket']['gs']['calc'] == 'w')?$this->get_option('wpsg_currency'):'%')).' ', 15); ?> <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> <?php echo wpsg_pad_left(__('anteilig', 'wpsg').' ', 10); ?> <?php } ?> <?php echo wpsg_pad_left('1', 6); ?> <?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')), 15); ?> <?php } ?> <span style="width:40px; text-align:left; display:inline-block;"><?php echo wpsg_pad_left(' ', 5); ?></span><span style="text-align:left; padding-top:20px; width:390px; display:inline-block;"><?php echo wpsg_pad_right(__('Zwischensumme:', 'wpsg'), 40); ?></span><span style="padding-top:20px; text-align:right;width:70px; display:inline-block;"><?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')), 31); ?></span><br style="display:none"> <?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?> <span style="width:40px; text-align:left; display:inline-block;"><?php echo wpsg_pad_left(' ', 5); ?></span><span style="text-align:left; width:390px; display:inline-block;"><?php echo wpsg_pad_right(__('Versandkosten', 'wpsg'), 50); ?></span><?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?> <?php echo wpsg_pad_left(wpsg_ff($this->arShipping[$this->view['basket']['checkout']['shipping']]['mwst_value'], '% '), 10); ?><?php } else { ?><?php } ?><span style="text-align:right;width:70px; display:inline-block;"><?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')), 21); ?></span><br style="display:none"><?php } ?> <?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?> <span style="width:40px; text-align:left; display:inline-block;"><?php echo wpsg_pad_left(' ', 5); ?></span><span style="text-align:left; width:390px; display:inline-block;"><?php echo wpsg_pad_right(__('Zahlungsart', 'wpsg'), 50);?></span><?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?><?php echo wpsg_pad_left(wpsg_ff($this->arPayment[$this->view['basket']['checkout']['payment']]['mwst_value'], '% '), 10); ?><?php } else { ?><?php } ?><span style="text-align:right;width:70px; display:inline-block;"><?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency')), 21); ?></span><?php } ?><br style="display:none"> <?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?><?php echo wpsg_pad_right(__('Abzüglich Rabatt', 'wpsg'), 40); ?><?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')), 31); ?> <?php } ?> <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?> <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?> <?php } else { ?> <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?> <?php if ($this->get_option('wpsg_preisangaben_frontend') == WPSG_NETTO) { ?> <?php echo wpsg_pad_right(wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']), 47); ?> <?php } else { ?> <span style="width:40px; text-align:left; display:inline-block;padding-top:20px;"><?php echo wpsg_pad_left(' ', 5); ?></span><span style="text-align:left; padding-top:20px; width:390px; display:inline-block;"><?php echo wpsg_pad_right(wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']), 47); ?></span><?php } ?><?php } ?><span style="padding-top:20px; text-align:right;width:70px; display:inline-block;"><?php echo wpsg_pad_left(wpsg_ff($mwst['sum'], $this->get_option('wpsg_currency')), 24); ?></span><br style="display:none"> <?php } ?> <b style="display:none"><?php echo wpsg_pad_left(' ', 61); ?>---------------</b><br style="display:none"> <span style="width:40px; text-align:left; display:inline-block; padding-top:20px;"><?php echo wpsg_pad_left(' ', 5); ?></span><span style="text-align:left; width:390px; display:inline-block;"><?php echo wpsg_pad_right(__('Gesamtpreis', 'wpsg'), 37); ?></span><span style="padding-top:20px;border-top:1px solid #000; text-align:right;width:70px;display:inline-block;"><?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?></span><br style="display:none"> </div> <?php $this->callMods('kundenmail_aftercalculation', array(&$this->view['basket']['checkout']['o_id'])); ?> <?php if ($this->view['basket']['checkout']['comment'] != '') { ?><b><?php echo __('Bestellkommentar', 'wpsg') ?>: </b><?php echo $this->view['basket']['checkout']['comment'] ?> <?php } ?> <b><?php echo __('Wir bedanken uns für Ihre Bestellung.', 'wpsg'); ?></b> <?php echo __('Bitte beachten Sie, dass es sich bei dieser E-Mail um eine Bestellbestaetigung und keine bindende Auftragsbestaetigung handelt. Preisirrtuemer sind leider nicht vollstaendig auszuschliessen.', 'wpsg'); ?><br style="display:none"> <?php echo __('Es gelten unsere Allgemeinen Gesch?ftsbedingungen (AGB).', 'wpsg'); ?><br style="display:none"> <?php echo $this->getURL(wpsg_ShopController::URL_AGB); ?> <?php $this->CallMods('kundenmail_afteragb', array(&$this->view['basket']['checkout']['o_id'])); ?> <b>-- <?php echo __("Widerrufsbelehrung", "wpsg"); ?> --</b> <?php if (trim($this->get_option("wpsg_ps_mailwiderruf")) != "") { ?> <?php echo $this->get_option("wpsg_ps_mailwiderruf"); ?> <?php } else { ?> <?php echo __("...hier steht der Text zum Widerrufsrecht...", "wpsg"); ?> <?php } ?> <b>-- <?php echo __("Ende der Widerrufsbelehrung", "wpsg"); ?> --</b><br style="display:none"> <?php echo __('Mit freundlichen Grü?en', 'wpsg'); ?> <b><?php echo __('Ihr Shop Team', 'wpsg'); ?></b>
As you see: quite a lot of html-tags.
Thank you for considering to take the changes into the plugin.Forum: Plugins
In reply to: [WP Better Emails] HTML Tags in %content% now possibleHi nlemoine,
thanks for the quick answer.
I use a shop-plugin in combination with your plugin. The shop plugin makes use of “wp_mail” to send out messages to confirm orders, etc.The great thing is that your plugin sends out the message as Multipart/Mixed (Hurray!). So i wanted to have the possibility to also design the HTML “%content% as well leave the TEXT %content% visually untouched by HTML Tags.
Please visit this link. It explain quite well what i mean. Unfortunatly it is in german but at the bottom of the page you will find two screenshots of a Multipart Message made with your Plugin and the Shopplugin “wpshopgermany”.
So, what do you think about it?
Greetings. JPOG