kaboemnld
Forum Replies Created
-
Forum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not Workingis it possible to look on my test site, content analysis, meta description is not working anymore, i have deleted the seopress/pro map and installed the latest version
Thanks
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticHello, free shipping works okay now, but i don’t see local pickup anymore, when the order amount is below €75 i see also local pickup but when the order amount is above €75 i see free shipping but no local pickup, i want to see both options because a customer lives in our city and want to pick it in our store, the sales ladies know that they don’t have to send it.
Thanks
Forum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not WorkingI have a video you can see what happens with product content analysis
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticHello it’s working local pickup but not for free shipping(see images)
https://postimg.cc/gallery/wv5ps84
Thanks
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticthe sales ladies at the local store see that the order is picked up and you do not have to send it
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticHello, the second code snippet is working thanks, but i don’t see the local pickup anymore with free shipping, when the subtotal is below 75 i see local pickup. local pickup must be allways visible because a local shop.
thanks
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticit,s the second option of the advice from Sahmeem reply earlie.
/** * Hide shipping rates when free shipping is available, but keep “Local pickup” * Updated to support WooCommerce 2.6 Shipping Zones */ function hide_shipping_when_free_is_available( $rates, $package ) { $new_rates = array(); foreach ( $rates as $rate_id => $rate ) { // Only modify rates if free_shipping is present. if ( ‘free_shipping’ === $rate->method_id ) { $new_rates[ $rate_id ] = $rate; break; } } if ( ! empty( $new_rates ) ) { //Save local pickup if it’s present. foreach ( $rates as $rate_id => $rate ) { if (‘local_pickup’ === $rate->method_id ) { $new_rates[ $rate_id ] = $rate; break; } } return $new_rates; } return $rates;} add_filter( ‘woocommerce_package_rates’, ‘hide_shipping_when_free_is_available’, 10, 2 );
Forum: Plugins
In reply to: [WooCommerce] free shipping not automaticHello the code snippets are not working correct, when i have a product off 22,50 it’s shows shipping 3,95 when i at a product 84,50 it shows shipping 5,95 but the total amount is above free shipping amout of 75,= and it’s shows no free shipping.
Forum: Plugins
In reply to: [SEOPress - On-site SEO] WordPress database error TableThanks, the error has gone.
Php version: 8.0.30
wp version: 6.4.3
seopress: 7.4But still after cleaning analysis data, the refresh analysis button in product edit is not working, i see only duplicate analysis data when i update with save draft button,
Thanks
Forum: Plugins
In reply to: [SEOPress - On-site SEO] WordPress database error Table<?php
defined(‘ABSPATH’) or exit(‘Please don’t call the plugin directly. Thanks :)’);
///////////////////////////////////////////////////////////////////////////////////////////////////
//Import / Exports settings page
///////////////////////////////////////////////////////////////////////////////////////////////////
//Export SEOPress Settings to JSON
function seopress_export_settings() {
if (empty($_POST[‘seopress_action’]) || ‘export_settings’ != $_POST[‘seopress_action’]) {
return;
}
if ( ! wp_verify_nonce($_POST[‘seopress_export_nonce’], ‘seopress_export_nonce’)) {
return;
}
if ( ! current_user_can(seopress_capability(‘manage_options’, ‘export_settings’))) {
return;
}$settings = seopress_get_service('ExportSettings')->handle(); ignore_user_abort(true); nocache_headers(); header('Content-Type: application/json; charset=utf-8'); header('Content-Disposition: attachment; filename=seopress-settings-export-' . date('m-d-Y') . '.json'); header('Expires: 0'); echo json_encode($settings); exit;
}
add_action(‘admin_init’, ‘seopress_export_settings’);//Import SEOPress Settings from JSON
function seopress_import_settings() {
if (empty($_POST[‘seopress_action’]) || ‘import_settings’ != $_POST[‘seopress_action’]) {
return;
}
if ( ! wp_verify_nonce($_POST[‘seopress_import_nonce’], ‘seopress_import_nonce’)) {
return;
}
if ( ! current_user_can(seopress_capability(‘manage_options’, ‘import_settings’))) {
return;
}$extension = pathinfo($_FILES['import_file']['name'], PATHINFO_EXTENSION); if ('json' != $extension) { wp_die(__('Please upload a valid .json file', 'wp-seopress')); } $import_file = $_FILES['import_file']['tmp_name']; if (empty($import_file)) { wp_die(__('Please upload a file to import', 'wp-seopress')); } $settings = (array) json_decode(seopress_remove_utf8_bom(file_get_contents($import_file)), true); seopress_get_service('ImportSettings')->handle($settings); wp_safe_redirect(admin_url('admin.php?page=seopress-import-export&success=true')); exit;
}
add_action(‘admin_init’, ‘seopress_import_settings’);//Delete all content scans
function seopress_clean_content_scans() {
if (empty($_POST[‘seopress_action’]) || ‘clean_content_scans’ != $_POST[‘seopress_action’]) {
return;
}
if ( ! wp_verify_nonce($_POST[‘seopress_clean_content_scans_nonce’], ‘seopress_clean_content_scans_nonce’)) {
return;
}
if ( ! current_user_can(seopress_capability(‘manage_options’, ‘cleaning’))) {
return;
}// Delete cache option delete_option('seopress_content_analysis_api_in_progress'); global $wpdb; // Clean our post metas $sql = 'DELETE FROM
' . $wpdb->prefix . 'postmeta
WHEREmeta_key
IN ( \'_seopress_analysis_data\', \'_seopress_content_analysis_api\', \'_seopress_analysis_data_oxygen\', \'_seopress_content_analysis_api_in_progress\')'; $sql = $wpdb->prepare($sql); $wpdb->query($sql); // Clean custom table $sql = 'DELETE FROM' . $wpdb->prefix . 'seopress_content_analysis
'; $sql = $wpdb->prepare($sql); $wpdb->query($sql); wp_safe_redirect(admin_url('admin.php?page=seopress-import-export')); exit;}
add_action(‘admin_init’, ‘seopress_clean_content_scans’);//Reset SEOPress Notices Settings
function seopress_reset_notices_settings() {
if (empty($_POST[‘seopress_action’]) || ‘reset_notices_settings’ != $_POST[‘seopress_action’]) {
return;
}
if ( ! wp_verify_nonce($_POST[‘seopress_reset_notices_nonce’], ‘seopress_reset_notices_nonce’)) {
return;
}
if ( ! current_user_can(seopress_capability(‘manage_options’, ‘reset_settings’))) {
return;
}global $wpdb; $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'seopress_notices' "); wp_safe_redirect(admin_url('admin.php?page=seopress-import-export')); exit;
}
add_action(‘admin_init’, ‘seopress_reset_notices_settings’);//Reset SEOPress Settings
function seopress_reset_settings() {
if (empty($_POST[‘seopress_action’]) || ‘reset_settings’ != $_POST[‘seopress_action’]) {
return;
}
if ( ! wp_verify_nonce($_POST[‘seopress_reset_nonce’], ‘seopress_reset_nonce’)) {
return;
}
if ( ! current_user_can(seopress_capability(‘manage_options’, ‘reset_settings’))) {
return;
}global $wpdb; $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'seopress_%' "); wp_safe_redirect(admin_url('admin.php?page=seopress-import-export')); exit;
}
add_action(‘admin_init’, ‘seopress_reset_settings’);Forum: Plugins
In reply to: [SEOPress - On-site SEO] WordPress database error TableI get a error after editing
fatal error: uncaught error: syntax error, unexpected token “return”on line 70
Thanks
Forum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not WorkingHello, i can’t find the database entry,
i have search in the database with the search option
thanks
Forum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not WorkingI have change it to 300 but it is not working, when i press on refresh analysis i see analysis progress but nothing is changed
Forum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not WorkingServer architecture Linux 3.10.0-962.3.2.lve1.5.73.el7.x86_64 x86_64
Web server Apache/2
PHP version 8.0.30 (Supports 64bit values)
PHP SAPI litespeed
PHP max input variables 4000
PHP time limit 3000
PHP memory limit 2048M
Max input time -1
Upload max filesize 1G
PHP post max size 2048M
cURL version 7.87.0 OpenSSL/1.1.1w
Is SUHOSIN installed? No
Is the Imagick library available? No
Are pretty permalinks supported? YesForum: Plugins
In reply to: [SEOPress - On-site SEO] Content Analysis Not Workingi can sent you a screen image of the console message