dgirona
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] problems finalizing purchasesYeah that’s right. The option to buy without being registered must be active.
Any plugin active.
Theme storefront original from woo.Forum: Plugins
In reply to: [Yoast SEO] problems finalizing purchasesThe problem is an advanced opcion of yoast, “Remove unregistered URL parameters”.
If I disable it, the problem disappears in the latest version. That’s why when you roll back to version 20.3, when that option is not there, the problem disappears. You have an error that you should resolve for websites with WooCommerce.
The free module should not have this problem.Forum: Plugins
In reply to: [Yoast SEO] problems finalizing purchasesHow can we solve this problem?
Forum: Plugins
In reply to: [Yoast SEO] problems finalizing purchasesYes, we actually have the guest purchase active. If you are registered or you register, then it will let you pass, but if not, it will not let you pass. Right now in the production environment we have 20.3 and it works fine.
Forum: Plugins
In reply to: [Mail Queue] HTML IssueForce headers HTML:
add_filter( ‘woocommerce_email_headers’, ‘force_html_email_format’, 10, 3 );
function force_html_email_format( $headers, $email_id, $order ) {
if ( $email_id == ‘customer_processing_order’ || $email_id == ‘customer_completed_order’ ) {
$headers .= “Content-Type: text/html\r\n”; } return $headers;
}
}- This reply was modified 1 year, 6 months ago by dgirona.
Forum: Plugins
In reply to: [Locatoraid Store Locator] Url’s trackingOk, but this field has a character limit and the url is cut off. Not all the parameters will fit.
Forum: Plugins
In reply to: [ElementsKit Elementor addons] Team Widget Images Not Showingmy solution has been to roll back the installed version of the plugin where this problem is not : (
Forum: Plugins
In reply to: [ElementsKit Elementor addons] horizontal scrolling to appear on the pageTo solve the problem I had to apply a css fix.
.elementor.elementor-8.elementor-location-header{
overflow-x: clip !important;
}If you remove this fix you will see the problem.
Forum: Plugins
In reply to: [Custom Post Type UI] dynamic tax from another custom post type content// insert bancos cpt into tax banco_prestamos
add_action( ‘publish_bancos’, ‘add_banco_term’ );
function add_banco_term( $post_ID ) {
$post = get_post( $post_ID ); // get post object
wp_insert_term( $post->post_title, ‘banco_prestamos’ );
}// delete tax banco_prestamos when delete cpt bancos
add_action( ‘wp_trash_post’, ‘action_delete_taxonomy’ );
function action_delete_taxonomy( $post_ID ) {$taxo = get_the_title($post_ID);
$tipo_post = get_post_type( $post_ID );if ( $tipo_post == “bancos” ){
// prestamos
$terms = get_terms(‘banco_prestamos’, array( ‘hide_empty’ => false ) );
foreach ( $terms as $term ) {
if ( $term->name == $taxo ) {
$banco_cat_id = intval( $term->term_id );
wp_delete_term( $banco_cat_id, ‘banco_prestamos’ );
}
}
}
return;
}?update?
This causes horizontal scrolling to appear on the page.
I use mega-menu
- This reply was modified 2 years, 6 months ago by dgirona.
Forum: Plugins
In reply to: [Custom Post Type UI] dynamic tax from another custom post type contentI suppose that the approach would be: when a new content is inserted in cpt1, a new term should be inserted in the taxonomies in cpt2, cpt3 …
if the name is changed in cpt1, the name of the taxonomy in cpt2, cpt3 … would have to be updated. if the cpt1 is deleted, we would have to delete the taxonomy in cpt2, cpt2 …
Forum: Plugins
In reply to: [Custom Post Type UI] dynamic tax from another custom post type contentyes i correct Look at the example of banks that I have exposed. banks is a type of content, which in turn is a taxonomy of other types of content. I think it is a very good function to be able to create dynamic taxonomies. It’s like the brans module for woocommerce, it manages brands for woocommerce. It would be the same but for cpt.
Forum: Plugins
In reply to: [Custom Post Type UI] dynamic tax from another custom post type contentI think it’s a very common possibility. Imagine the following project:
A CTP for banks.
And various other CTPs for loans, mortgages, cards, financial products, which are related to banks.
Therefore bank would be a taxonomy in all these financial products…
It would be a valuable extra functionality for your plugin.
A taxonomy that could be a copy of a cpt or even another taxonomy.
Imagine this CTP as a brand. You might have some products (cpt too) that use this brand. I think it’s a very common thing.
This with woocommerce is more common. But of course, for this type of project it is not necessary to install woocommerce, it loads the system a lot, and a payment gateway is not needed, nor all the functionalities of woocommerce.
Well it’s just a suggestion.
I’m going to lookForum: Plugins
In reply to: [Yoast SEO] Error breadcrumbs for custom posts typesI fix with this custom code:
add_filter( ‘wpseo_breadcrumb_links’, ‘yoast_seo_breadcrumb_news’ );
function yoast_seo_breadcrumb_news( $links ) {
global $post;
$producto = get_post_type();
if ($producto == ‘tarjetas’ || $producto == ‘prestamos’ || $producto == ‘hipotecas’){
$links[1] = array (‘url’ => site_url( ‘/’.$producto.’/’ ),’text’ => $producto);
}
return $links;
}Yoast has a bug : (