Can you help me to find a shortcode ? I tried almost all shortcodes from docs for taxes but still not working. Thank you very much
]]>I’m having problems with {{abandoned_checkout_url}} shortcode.
I have created an abandoned cart recovery workflow and in it, I send emails to customers after one hour (screenshot).
The {{abandoned_checkout_url}} shortcode is used to insert the abandoned cart URL (screenshot) so that the user can finish checkout but the URLs I received in the email didn’t work.
I don’t know if they have a time limit but here are the links I received:
1)text URL
2)button URL
1)The text URL has an additional “https://” at the beginning (so the URL looks like https://https//MY_WEBSITE). If I remove the unnecessary “https://” then the URL works fine.
2)The button URL is completely different even though the same shortcode was used (starts with https://email.MY_WEBSITE) and also doesn’t work.
Why are the links not working and how to fix this bug?
]]>Here’s the shortcode and syntax in question:
[wpmem_logged_in role=affiliate]AFFILIATES SEE THIS[/wpmem_logged_in]
The text that should display here doesn’t show up on the front end. The shortcode works if I swap in a different user role, but it’s not displaying what it should to affiliate users.
Any ideas?
]]>N.
]]>i wrote a plugin for cf7 that outputs the prices calculated by dropdown values of multi page form page 1 in the 2nd form page. to do so, i used the plugin php shrotcode and a simple [prices] in form part 2. unfortunately since one of the latest updates this doesn’T work no more. i already tried a lot:
– shortcode in functions.php > cf7 data for price calculation not available
– is there a hook i could use to output the prices on form 2 head?
– maybe use js workaround with php to get the prices? but then it’s really hard to get the cf7 form data…
how could i achieve this?
code of my plugin:
<?
/*
Plugin Name: Contact Form 7 Preisberechnung Bavaria-Transfer
Plugin URI: https://ff-webdesigner.de/
Description: Berechnet die Kosten für Transferservices innerhalb Contact Form 7
Author: Frank Woelky
Version: 0.1b
Author URI: https://ff-webdesigner.de/
*/
include_once ("/www/htdocs/w0090f11/bavaria-transfer.net/wp-content/themes/enfold/functions.php");
function bavaria_preise_js() {
echo '<script type="text/javascript" src="/wp-content/plugins/bavaria-preise/bavaria-preise.js"></script>';
}
add_action('wp_head', 'bavaria_preise_js');
add_action("wpcf7_before_send_mail", "bavaria_preise");
function bavaria_preise($cf7) {
$wpcf = WPCF7_ContactForm::get_current();
if(stripos($wpcf->form,"bavaria_preise()")===FALSE)return FALSE; // wenn nicht erster schritt formular
// ansonsten:
$p_data =cf7msm_get('cf7msm_posted_data');
$csv=daten_einlesen();
//echo "<pre>";
//print_r( $p_data);
//echo "</pre>";
//print_r($csv);
// plz preis ermitteln
for($z=2;$z<count($csv);$z++) {
if($csv[$z+2][0]==$p_data['abholort']) {
$plz_preis=$csv[$z+2][1];
break;
}
}
// transfertyp grundpreis
switch ($p_data['transfertyp']) {
case "Sammeltransfer": $transfertyp=1; break;
case "Express-Fahrt": $transfertyp=9; break;
case "Einzelfahrt": $transfertyp=17; break;
case "VIP-Service": $transfertyp=25; break;
}
if($p_data['transfertyp']=="Sammeltransfer"||$p_data['transfertyp']=="Express-Fahrt")
$personen=$p_data['personen']-$p_data['unter14'];
else $personen=$p_data['personen'];
$preis_transfertyp=$csv[1][$transfertyp+$personen];
// aufpreise für kinder
if($p_data['transfertyp']=="Sammeltransfer"||$p_data['transfertyp']=="Express-Fahrt")
$aufpreis_kinder=$p_data['unter14']*7;
if($p_data['step']=='1-3')$pro_strecke=" pro Strecke";
$preis=$plz_preis + $preis_transfertyp + $aufpreis_kinder;
if($p_data['transfer']=='Hin- und Rückfahrt'&& $p_data['step']=='2-3')$preis*=2;
$preis='<div id="ff_preis">Preis: <span id="ff_preis_inner">'.$preis.',00 € '.$pro_strecke.'</span></div>';
return $preis;
}
function hidden_price_field() {
$preis=strip_tags(bavaria_preise());
$output='<input class="wpcf7-form-control wpcf7-text hidden" type="text" value="'.$preis.'" name="preis">';
return $output;
}
function daten_einlesen(){
$datei=$_SERVER['DOCUMENT_ROOT'].'wp-content/plugins/bavaria-preise/preise.csv';
$zeilen = file($datei);
foreach($zeilen as &$zeile) {
$csv[] = explode(";",$zeile); //parse the items in rows
}
return $csv;
}
function PLZ_dropdown($choices, $args=array()) {
$csv=daten_einlesen();
$choices = array();
for($z=2;$z<count($csv);$z++) {
$choices[$csv[$z+2][0]]=$csv[$z+2][0];
}
return $choices;
}
add_filter('PLZ_dropdown', 'PLZ_dropdown', 10, 2);
?>
]]>I have one issue. I created a page for all listings and i used divi editor for that. I just created a page and added shortcode onto that for listings. But i don’t know how to display pagination onto that page. As listings is coming from a shortcode so page is getting lengthy.
Can anyone please help me in that?
Thanks
]]>The author archive page shortcode has broken my site, its not showing all posts from all authors. however if you are admin, then on your admin author profile page it will show only your posts. But for another author on another page, this wont work, it will show all posts from all authors. I deactivated all plugins and tried a fresh install. Still wont work. Where can i download version 2.1.3 as this was the most stable version for me and i had it working perfectly. Please im desperate for the older version urgently. You also might want to check your website https://connekthq.com/plugins/
Kind regards
https://www.ads-software.com/plugins/ajax-load-more/
]]>require('../../../wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
// do_shortcode
$plug = '[osm_map
lat="43.70657"
long="-1.0562553"
zoom="6"
width="250"
height="250"
marker_file="https://localhost/wp/wp-content/plugins/hdimngs/resources/data/adresse.txt"
type="AllOsm"
map_border="medium solid blue"
]';
echo do_shortcode($plug);
The border of the map is displayed correctly but I do not have the content: icons, map drawing, knurr, ….
Remark : Yet if I put the code above (from the line ‘/ / do_shortcode’) directly into a wordpress page it works well
Do you have an idea ?
thank you
]]>