secondsky100
Forum Replies Created
-
Forum: Plugins
In reply to: [LiteSpeed Cache] Why removing the role simulator?alright, thx for clarification.
Hi Shravan,
thx for the answer.
Tapfiliate has a wordpress plugin which integrates with woocommerce.: https://www.ads-software.com/plugins/tapfiliate/
The integration happens by placing a specific tracking code into the thank you page. Now as cartflows overrides the standard thank you page of woocommerce i guess this is the issue (here: is_order_received_page). At least one of it. The other is probably that cartflows uses other variable names like ‘wcf-key‘ instead of just ‘key‘
Here a Video of how the plugin works: https://tapfiliate.com/docs/integrations/woocommerce/
down you see one php code of the tapfiliate plugin (tapfiliate/woocommerce/tracking_code.php)
<?php if (!defined('ABSPATH')) { exit; // Exit if accessed directly } function tapfiliate_render_woocommerce_code() { $is_converting = false; $external_id_arg = null; $amount_arg = null; $options = []; $is_customer_only = false; $is_conversion_multi = false; $commission_type = null; $use_woo_customer_id_for_lifetime = "on" === get_option('tap_wc_use_woo_customer_id_for_lifetime'); $customer_type = null; if (function_exists("is_order_received_page") && is_order_received_page() && isset($GLOBALS['order-received'])) { $is_converting = true; $isWoo3 = tapfiliate_is_woo3(); $order_id = apply_filters('woocommerce_thankyou_order_id', absint($GLOBALS['order-received'])); $order_key = apply_filters('woocommerce_thankyou_order_key', empty($_GET['key']) ? '' : wc_clean($_GET['key'])); if ($order_id <= 0) return; $order = new WC_Order($order_id); $order_key_check = $isWoo3 ? $order->get_order_key() : $order->order_key; if ($order_key_check !== $order_key) return; $containsSubscription = tapfiliate_has_woo_subscriptions() && wcs_order_contains_subscription($order_id); $options["meta_data"] = tapfiliate_woocommerce_get_metadata_for_order($order); $discount = $order->get_total_discount(); $commissions = tapfiliate_woocommerce_get_commissions_for_order($order, $discount); // Check if we have multiple commission types $unique_commission_types = array_unique(array_column($commissions, 'commission_type')); $is_conversion_multi = count($unique_commission_types) > 1; // Get commission type if single commission type $commission_type = count($unique_commission_types) === 1 ? $unique_commission_types[0] : "default"; // Get Customer Id if($use_woo_customer_id_for_lifetime) { $customerId = resolve_customer_id($order); } else { $customerId = $order->get_billing_email(); } // Set options if ($coupons = $order->get_coupon_codes()) { $options['coupons'] = array_values($coupons); } if ($customerId) { $options['customer_id'] = $customerId; } if ($currency = $order->get_currency()) { $options['currency'] = $currency; } $external_id_arg = $isWoo3 ? $order->get_id() : $order->id; $amount_arg = $order->get_subtotal() - $discount; $is_customer_only = $containsSubscription && $amount_arg === 0.00; $customer_type = $is_customer_only ? 'trial' : 'customer'; } $script = tapfiliate_generate_inline_code($is_converting, $is_customer_only, $customer_type, $external_id_arg, $amount_arg, $options, $commission_type, $is_conversion_multi ? $commissions : [], "woocommerce", false); wp_add_inline_script("tapfiliate-js", $script); }
Here the developer docs: https://tapfiliate.com/docs/
Good question indeed! Facing the same issue right now.
Forum: Plugins
In reply to: [bunny.net - WordPress CDN Plugin] Can work together with CloudFlare?It works only with Bunny DNS enabled and with no other.
They say it has technical reasons, but that makes zero sense.
@sc0ttkclark
I have a similar Issue, for a long time now. And its a pain in the a**.
Tried once on pods slack channel but didnt go further.For me two feeds work partially with one form.
Means:
Feed A -> Works full, all fields are filled.
Feed B -> Works half, a few fields are filled, a few not.What I was able to reproduce:
If Feed A doesnt work and Feed B works: If I delete Feed A and create it new, it works.But Feed B stops to work. So it seems like only the last feed is created.Both feeds use conditions based on field values of the form.
I know thats a bit a older post. But what i see in the sitemaps looks mostly ok. With one exception.
The root is something like https://www.google.com
The translated content of the start page should be:
https://www.google.com/itBut in the sitemap its this:
https://www.google.com/it/homeAny advice?
Right now i just use this to redirect to the docs slug (as an empty slug is not possible as it seems):
add_action('template_redirect', 'default_page'); function default_page(){ if(is_home() or is_front_page()){ exit( wp_redirect("https://help.xxxxxx.com/docs")); } }
Good to hear! Lets hope it will eliminate this bad bug ??
At least i dont have the multiple KB activated. I did even roll back to 1.3.2 and even without the Pro version… still same issue. Now i could only test to roll back to a even older version… if that helps.
Sharing URL will not help as i deactivated Betterdocs for now. And will not activate it during daytime as it renders the site useless.
And unfortunately PMs are not supported here… and dont want to share the site or so publicly.
I might try to put WP into debug mode and see if it produces some log of it…will seeI have to correct, myself. With 1.3.2 its the same issue. I probably just didnt see the error at the beginning as it only happens with WPML Language “subdirectorys” and translated content. Funny is that Betterdocs pages are fine.
I can absolutely say its a bug in combinationn with WPML. I have like many plugins and spend 2 days to narrow it down to betterdocs and wpml. the funny thing is that it triggers the servers 404, not the custom 404. In the logs i get things like this:
.863206 [INFO] [1407] [xxx.xxx.xx.xx:12524#APVH_xxxx.com:443] File not found [/var/www/vhosts/xxxxxx.com/httpdocs/hu/index.php]
Betterdocs clearly interferes with the rewrites of WPML and this only since like Version 1.3.2 above.Nope, this issue (or maybe similar one) persists also with the newest version!
Might be an issue in combination with WPML. One site with WPML: 404 in a random manner even for non Betterdocs pages. On the Site without WPML no issues.As soon as i deactivate betterdocs things work normaly again on the site. And as it worked before without issues… i can only blame betterdocs. ??
Thx for your reply. use_current in shortcode doesnt work unfortunately.
I thought now to do something else but have no clue how to do that.
I would like instead of just manipulating the field output to take the birthday and write it into another field but calculated as age.
I would probably need to do some cron or so to keep that field updated.
But for now the question is how i would do that with pods.
Any clue? Code example would be appreciated ??With ACF i could do this, but how with pods?
function my_acf_save_post($post_id) { // check if post type is model $post_type = get_post_type($post_id); if ($post_type != 'model') { //return if its not a model post type return; } // get year of birth value $year_of_birth = get_field('birthday_model', $post_id); //calculate the value of age $now = date("Y-m-d"); $age = date_diff(date_create($year_of_birth), date_create($now))->format('%y'); // update the age field update_field('age_model_acf', $age); } // run after ACF saves the $_POST['acf'] data add_action('acf/save_post', 'my_acf_save_post', 20);