Forum Replies Created

Viewing 15 replies - 1 through 15 (of 28 total)
  • Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    Thanks for the link. I thought it might be just what I needed… but it didn’t work. Let me explain myself:

    I am using a theme that has a custom post type called “team members”. Using another plugin (Permalink manager), I managed to change all the URLs that have “team-members” in it to “guests”, and they appear as such in the sitemap too. The problem I’m having is with the names of the sitemaps themselves. In other words, if I open the main sitemap.xml, what I find is (among others) a link to a sitemap called:

    team-members-sitemap.xml

    And in this one, I find links like this:

    /team-members/

    /guests/guest-a/

    /guests/guest-b/

    And so on.

    I don’t know if this really matter Google-wise, but just in case, I would like the sitemap to be called “guests-sitemap” instead of “team-members-sitemap”. I have tried using the filter that you linked to in the docs (‘wpseo_xml_sitemap_post_url’), but it doesn’t seem to be firing when it comes to those those sitemaps.

    I have also tried to add a new post in that category (“team members”/”guests”) to force the sitemap to be regenerated, but it didn’t work either.

    Anything else I might try?

    Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    For some reason, I couldn’t get debug mode to work in my hosting server either. I turned it on before asking here, but the debug.log file didn’t appear anywhere. Guess I’ll have to ask my hosting provider then…

    Thread Starter PaulJBis

    (@pauljbis)

    Thanks. I’ll give it a try and see what happens.

    Thread Starter PaulJBis

    (@pauljbis)

    Uhhh… thanks for your answer, but I already read the page you are referring to and took note of its advice to use a staging server (which I do have). I don’t see there, however, any mention to the specific question I asked: do I install the new Woocommerce “over” the old one, or do I uninstall the old one first before installing the second?

    Thread Starter PaulJBis

    (@pauljbis)

    Okay, I finally found an answer elsewhere. To make a long story short: you need to create a global variable to allow the code in both filters, woocommerce_no_shipping_available_html and woocommerce_available_payment_gateways, to communicate with each other.

    Since creating global variables is considered bad practice, I created a class using the singleton pattern, which holds a variable saying if there are shipping methods or not.

    if( ! class_exists('Vuelamedia_EstadoGlobal')) {
    	class Vuelamedia_EstadoGlobal {
    		private $hayMetodoDeEnvio;
    		private static $instance;
    		
    		private function __construct() {
    			$this->hayMetodoDeEnvio=true;
    			}
    	
    	    public static function getInstance() {
            	if(is_null(self::$instance)) {
                    self::$instance = new self();
             	   }
                return self::$instance;
            	}
    
    		public function guardaValor($valor=TRUE) {
    			$this->hayMetodoDeEnvio = $valor;
    			}
    			
    		public function leeSiHayMetodoDeEnvio() {
    			return $this->hayMetodoDeEnvio;
    			}
    		}
    	}
    
    add_filter("woocommerce_no_shipping_available_html", "quitar_formas_de_pago", 20);
    add_filter("woocommerce_cart_no_shipping_available_html", "quitar_formas_de_pago", 20);
    
    function quitar_formas_de_pago($texto) {
    
    	Vuelamedia_EstadoGlobal::getInstance()->guardaValor(false);
    	return $texto;
    	}
    
    add_filter("woocommerce_available_payment_gateways", "filtrar_formas_de_pago");
    function filtrar_formas_de_pago($available_gateways) {
       if( is_admin() ) { return $available_gateways; }
       
       $metodo = Vuelamedia_EstadoGlobal::getInstance()->leeSiHayMetodoDeEnvio();
    
    	if (!$metodo) {
    		return array();
    		}
    	else { return $available_gateways; }
    	}
    Thread Starter PaulJBis

    (@pauljbis)

    Okay, I was an idiot and didn’t realize that there are already filters for this case:

    woocommerce_cart_no_shipping_available_html
    woocommerce_no_shipping_available_html

    Now all I need is to know how to remove the existing payment gateways from the coe executed in that filter.

    Thread Starter PaulJBis

    (@pauljbis)

    Unfortunately, we also need to exclude from shipping a couple of specific provinces from my country, so the first method isn’t 100% accurate. (I forgot to mention this in my first post).

    I am looking at the methods available in “WC_Order” (https://wp-kama.com/plugin/woocommerce/function/WC_Order), and I wonder: which one should I use to get the specific province in my country? get_shipping_postcode()? get_shipping_state()?

    As for calculate_shipping(), correct me if I’m wrong, but from the docs and the code samples I’ve read, my impression is that it’s a function to add shipping rates if you are programming your own shipping method (from https://woocommerce.com/document/shipping-method-api/). What does it return if there are no shipping methods available?(*) How do I check its return value?

    (*) As mentioned above, my idea is to create a shipping zone for all the places we don’t ship for, and leave it without any shipping methods.

    Thread Starter PaulJBis

    (@pauljbis)

    Well, I have experience with PHP development, so if this requires custom coding, I can handle that.

    My question would be: why did you mention the Custom Fields plugin? Would it be necessary in our case? From your description, I thought this would be solved by programatically changing the package sizes, so no additional fields should be necessary. Am I wrong about this?

    Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    We are using Correos in Spain. They have their own Woocommerce shipping plugin.

    Our customer (the winery) already has the 3-bottle and 6-bottle cases made, and they have sent us their sizes. All we need to do is to “select” each one depending on the number of bottles ordered.

    Thread Starter PaulJBis

    (@pauljbis)

    Hello, here it is:

    https://snipboard.io/dHb6wk.jpg

    I should mention that my site shows the message including the “View cart” link. In other words, the full message that shows up is “(product) has been added to your cart. View cart”.

    I don’t know if that “View cart” link is added separately by the code, or if it’s supposed to be in the same string than “(product) has been added to your cart”.

    Another thing: I’m using Woocommerce 6.3.1, not the latest version. Should I upgrade just in case?

    Thread Starter PaulJBis

    (@pauljbis)

    Hi:

    Thanks for your help. I have redacte my site’s URL, but otherwise pasted it as is.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://XXXXXX
    Site address (URL): https://XXXXXXX
    WC Version: 6.3.1
    REST API Version: ? 6.3.1
    WC Blocks Version: ? 6.9.0
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.2.1
    Log Directory Writable: ?
    WP Version: 5.9.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: es_ES
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.25
    PHP Post Max Size: 130 MB
    PHP Time Limit: 165
    PHP Max Input Vars: 16000
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.50-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.3.1
    WC Database Prefix: wp_
    Tama?o total de la base de datos: 18.96MB
    Tama?o de los datos de la base de datos: 13.40MB
    Tama?o del índice de la base de datos: 5.56MB
    wp_woocommerce_sessions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_order_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_acl: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_blocks: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_countries: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab_ip: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab_net: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_log: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    cerber_qmem: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_traffic: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_actions: Datos: 0.39MB + índice: 0.50MB + Motor InnoDB
    wp_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_logs: Datos: 0.34MB + índice: 0.25MB + Motor InnoDB
    wp_cerber_files: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_cerber_sets: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB
    wp_cerber_uss: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_comments: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB
    wp_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_options: Datos: 5.02MB + índice: 0.08MB + Motor InnoDB
    wp_postmeta: Datos: 3.50MB + índice: 2.97MB + Motor InnoDB
    wp_posts: Datos: 2.45MB + índice: 0.25MB + Motor InnoDB
    wp_revslider_css: Datos: 0.13MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_css_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_layer_animations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_layer_animations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_navigations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_navigations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_sliders: Datos: 0.03MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_sliders_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_slides: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_slides_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_static_slides: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_static_slides_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_termmeta: Datos: 0.05MB + índice: 0.03MB + Motor InnoDB
    wp_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_term_relationships: Datos: 0.11MB + índice: 0.05MB + Motor InnoDB
    wp_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_usermeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_wc_admin_notes: Datos: 0.05MB + índice: 0.00MB + Motor InnoDB
    wp_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_product_meta_lookup: Datos: 0.06MB + índice: 0.09MB + Motor InnoDB
    wp_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    
    ### Post Type Counts ###
    
    attachment: 582
    customize_changeset: 4
    la_block: 2
    la_portfolio: 12
    la_team_member: 6
    la_testimonial: 3
    nav_menu_item: 121
    page: 50
    post: 24
    product: 383
    product_variation: 1
    revision: 78
    shop_order: 2
    whatsapp_chat_orders: 1
    wp_global_styles: 2
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (11) ###
    
    Click to Chat: por HoliThemes – 3.9.2
    Contact Form 7: por Takayuki Miyoshi – 5.5.6
    Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 4.4
    WPBakery Page Builder: por Michael M - WPBakery.com – 6.7.0
    LA Studio Core: por LA Studio – 2.3.2
    Negan Package Demo Data: por LA Studio – 1.0.5
    All in One Product Quantity for WooCommerce Pro: por WPWhale – 4.0
    Slider Revolution: por ThemePunch – 6.5.4
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 1.22.11
    
    WooCommerce: por Automattic – 6.3.1 (la actualización a la versión 6.4.1 está disponible)
    WP Cerber Security, Anti-spam & Malware Scan: por Cerber Tech Inc. – 8.9.6
    
    ### Inactive Plugins (4) ###
    
    Akismet Anti-Spam: por Automattic – 4.2.2
    All in One Product Quantity for WooCommerce: por WPWhale – 4.0
    Hello Dolly: por Matt Mullenweg – 1.7.2
    Quick Whatsapp Chat and Orders for WooCommerce: por P5cure – 1.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Base de la tienda: #6 - /tienda/
    Carrito: #71 - /cart/
    Finalizar compra: #72 - /checkout/
    Mi cuenta: #73 - /my-account/
    Términos y condiciones: ? Página sin definir
    
    ### Theme ###
    
    Name: Negan Child
    Version: 1.0
    Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio
    Child Theme: ?
    Parent Theme Name: Negan
    Parent Theme Version: 1.4.3
    Parent Theme Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: negan/woocommerce/archive-product.php
    negan/woocommerce/cart/cross-sells.php
    negan/woocommerce/content-product.php
    negan/woocommerce/content-single-product.php
    negan-child/woocommerce/global/quantity-input.php
    negan/woocommerce/loop/add-to-cart.php
    negan/woocommerce/loop/loop-end.php
    negan/woocommerce/loop/loop-start.php
    negan/woocommerce/loop/orderby.php
    negan/woocommerce/loop/pagination.php
    negan/woocommerce/loop/sale-flash.php
    negan/woocommerce/myaccount/form-login.php
    negan/woocommerce/product-searchform.php
    negan/woocommerce/single-product/product-image.php
    negan/woocommerce/single-product/product-thumbnails.php
    negan/woocommerce/single-product/related.php
    negan/woocommerce/single-product/share.php
    negan/woocommerce/single-product/tabs/tabs.php
    negan/woocommerce/single-product/up-sells.php
    
    ### Action Scheduler ###
    
    Completo: 1.430
    Oldest: 2022-04-06 18:26:45 +0000
    Newest: 2022-05-01 13:07:15 +0000
    
    ### Status report information ###
    
    Generated at: 2022-05-01 15:08:40 +00:00
    
    Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    I’ve been told by the WP_Cerber developers that the shortcode feature isn’t out yet (it will be ready for the next version). So I guess that for the moment I’ll rephrase my question to you in this way: in your plugin, does the “cookie name” field admit shortcodes, or does it accept only plain text?

    Hello. I would also be interested in the shortcode you mentioned. Is it anywhere in the documentation?

    Thread Starter PaulJBis

    (@pauljbis)

    I tried doing so. I also tried opening Developer Tools in Chrome and using the “empty cache and force reload” option. Nothing.

    When I have time, I’ll try removing the backups from the actual Google Drive and then rescanning, to see what happens.

    Thread Starter PaulJBis

    (@pauljbis)

    Hello:

    Any news about this bug? Do you need FTP access to my site? Since it’s (for the moment) just a test site, I can provide access to you privately.

Viewing 15 replies - 1 through 15 (of 28 total)