arsnovum
Forum Replies Created
-
Where can I find the Vivino feed? Is it only included in the Pro version? Because I’ve the same issues …
<bottles size=”750 ml”> is not possible.
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Get user URLJust include in your email form (the one that is sent to you)…
Have a look here:
https://contactform7.com/special-mail-tags/So I think what you mean is:
[_post_url
Hi David,
please have a look here: CF7 special mail tags.
Just copy some of those in the mail that will be send to you – not in the form.
[_post_name]
[_post_url]Cheers, Maurice
Forum: Plugins
In reply to: Change “READ MORE” Button textThis is how I fixed that. Also I’m checking the language of the visitor (DE is standard), by ckecking if the URL contains /EN/ or /IT/…
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' ); /** * custom_woocommerce_template_loop_add_to_cart */ function custom_woocommerce_product_add_to_cart_text() { global $product; $url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; $text = "Details ansehen"; if (preg_match('/en/', $url)) { $text = "View details"; } elseif (preg_match('/it/', $url)) { $text = "Vedi i dettagli"; } $product_type = $product->product_type; switch ( $product_type ) { case 'external': return __( $text, 'woocommerce' ); break; case 'grouped': return __( $text, 'woocommerce' ); break; case 'simple': return __( $text, 'woocommerce' ); break; case 'variable': return __( $text, 'woocommerce' ); break; default: return __( $text, 'woocommerce' ); } }
- This reply was modified 6 years, 10 months ago by arsnovum.
Found the solution! Here it is:
[dynamictext eventstart "CF7_get_post_var key='_EventStartDate'"] [dynamictext eventend "CF7_get_post_var key='_EventEndDate'"]
This will give you the EventStartDate and EventEndDate unformated.
To include this in your E-Mail template write
[eventstart]
or[eventend]
To recieve the page title is easy. Just put the following code in your form:
[dynamichidden pagetitle "CF7_get_post_var key='title'"]
And in your e-mail template put this code:
[pagetitle]
Thants it. It will work in the subject line and also in the text.
Forum: Plugins
In reply to: [WooCommerce] If description tab empty show custom fieldI had the situation that I like to change the name of a TAB depending on language.
This is my solution:
if (empty($tabs['description'])) { //if description tab empty then show the contents of a custom function $tabs['additional_information']['title'] = __( $tabtext1 ); // Rename the additional information tab $tabs['additional_information']['priority'] = 5; // Rename the additional information tab return $tabs; } else { //show the contents from the description tab $tabs['description']['priority'] = 15; // Rename the additional information tab $tabs['description']['title'] = __( $tabtext2 ); // Rename the description tab $tabs['additional_information']['title'] = __( $tabtext1 ); // Rename the additional information tab $tabs['additional_information']['priority'] = 5; // Rename the additional information tab return $tabs; }
I put this code into functions.php