Forum Replies Created

Viewing 15 replies - 16 through 30 (of 52 total)
  • Oh that’s a pity to read that, it seems I’ve come a bit too late to the party. I’ve just came through this plugin and said to myself “Wow! That’s promising!”, But then I installed it and it seems not to be working.

    It seems Intercom is migrating to the Access Token usage in favor of the API Key.

    I would love to see this plugin revamped, because the official one does not offer any custom filter or hooks in order to manipulate the data sent through the API.

    I’m afraid (not sure though) your theme might be missing the right open graph meta tags so that those networks can grab your content the right way

    In case you haven’t already coded that directly in your theme you could use any SEO or full featured social plugin for that.

    Have a look at this https://br.www.ads-software.com/plugins/wpsso/ (a one in a hundreds) that does a great job with social sharing, meta tags and schema markup.

    Nice approach. Thanks it helped a lot!

    All my shipping zones have a fixed flat rate.

    I’ve been trying to create a simple shortcode function so I could display a list of accepted shipping zones along with their most reliable information such as the zone name, the country/state, the method title, the cost, as also all the zip codes for each shipping zone.

    I’m able to retrieve all the shipping zones names from the array with the function bellow, but the other stuff I need to list are too deep within the array. Could anyone help me to achieve that?

    The function:

    function shipping_zones_shortcode() {
    
    $delivery_zones = WC_Shipping_Zones::get_zones();
    
    foreach ((array) $delivery_zones as $key => $the_zone ) {
    
      echo $the_zone['zone_name'];
    
    }
    
    print_r($delivery_zones);
    
    }
    add_shortcode( 'shipping_zones', 'shipping_zones_shortcode', 10 );
    • This reply was modified 8 years, 2 months ago by Adriano Monecchi. Reason: improved the code
    • This reply was modified 8 years, 2 months ago by Adriano Monecchi.

    I have a custom post type of name food_menu. Each of my food_menu single posts are related to a WooCommerce product through a custom field that gets the product id. I’m also trying to display the wishlist button outside woocommerce pages with no success.

    With the function bellow I’m able to customize the whole button states and echo it on woocommerce pages, but if I try to echo the function anywhere else I got errors.

        /* WishList Button on single post type page */
        function mytheme_wishlist_button_food_menu() {
    
        global $product;
    
        // Gets the product id attached to the post of type food_menu, which is set in the CMB2 custom field 'related_product"
        $product_related = get_post_meta( get_the_ID(), '_mytheme_related_product', true );
    
        $product->id = $product_related; 
    
        if ( class_exists( 'YITH_WCWL_UI' ) )  {
            $url = YITH_WCWL()->get_wishlist_url();
            $product_type = $product->product_type;
            $default_wishlists = is_user_logged_in() ? YITH_WCWL()->get_wishlists( array( 'is_default' => true ) ) : false;
    
            if( ! empty( $default_wishlists ) ){
                $default_wishlist = $default_wishlists[0]['ID'];
            }
            else{
                $default_wishlist = false;
            }
    
            $exists = YITH_WCWL()->is_product_in_wishlist( $product->id, $default_wishlist );
    
            $classes = get_option( 'yith_wcwl_use_button' ) == 'yes' ? 'class="add_to_wishlist single_add_to_wishlist btn btn-default btn-outline"' : 'class="add_to_wishlist single_add_to_wishlist btn btn-default btn-default"';
    
            $html  = '<div class="yith-wcwl-add-to-wishlist add-to-wishlist-'.$product->id.'">';
            $html .= '<div class="yith-wcwl-add-button';  // the class attribute is closed in the next row
    
            $html .= $exists ? ' hide" style="display:none;"' : ' show"';
            // Not added button
            $html .= '<a>get_addtowishlist_url()) . '" data-product-id="' . $product->id . '" data-product-type="' . $product_type . '" ' . $classes . ' class="btn btn-default btn-outline" data-toggle="button" >';
            $html .= '<span class="text">'.__( "Favorite", 'mytheme' ).'</span>';
            $html .= '<i class="icon wb-heart-outline text" aria-hidden="true"></i>';
            $html .= '</a>';
            $html .= '</div>';
    
            // Added button
            $html .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;">';
            $html .= '<a href="' . esc_url($url) . '">id . '" data-product-type="' . $product->id . '" ' . $classes . ' class="btn btn-default btn-outline" data-toggle="button" >';
            $html .= '<i class="icon wb-heart text-active text-danger" aria-hidden="true"></i>';
            $html .= '<span class="text-active">'.__( "Add to Wishlist", 'mytheme' ).'</span>';
            $html .= '</a>';
            $html .= '</div>';
    
            // Already Added button
            $html .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><a href="' . esc_url($url) . '"><i class="icon icon_heart icon-btn icon-filled"></i> <span class="text">'.__( "Already on Wishlist", 'mytheme' ).'</span></a></div>';
            $html .= '<div style="clear:both"></div><div class="yith-wcwl-wishlistaddresponse"></div>';
    
            $html .= '</div>';
    
            return $html;
    
            }
    
        }

    This is also a big issue for me. The plugin settings page doesn’t even load!

    Thread Starter Adriano Monecchi

    (@designroom)

    Thank you @webvasion! That’s great to hear that! I’ve been trying to implement the redux framework slides field in order to get the functionality I’ve requested. Not sure I’m gonna be successful on it though ??

    @anttiviljami Your plugin have fixed it! Thank you a million times!

    Amazing simple solution! Thank you so much @anttiviljami! I’ve spent hours trying to figure out what was causing that annoying issue. WooCommerce should fix this asap!

    I was wondering about the same thing. After reading about Yoast WordPress SEO, I got images removed from the sitemap by checking Not in Sitemap for Media (attachment) option under Sitemap XML > Post Types tab.

    I think the option Redirect attachment URL’s to parent post URL does not really prevent images from being crawled/indexed. As long as WordPress treat the media attachment post type like real posts, that seems to be a way to prevent the media attachment posts from being accessed/indexed, thus redirecting to the posts that have that specific image attached to them.

    I also wanted to make sure some images on my website were not indexed by search engines, and I was drawn to this: https://support.google.com/webmasters/answer/35308?hl=en

    So under Yoast WordPress SEO settings, I went to Tools > File Editor (this allows you to edit your robots.txt file). Then I’ve followed Google instructions, and I ended up with something like the following: see screenshot.

    I believe this is the proper way to completely remove images from the search results.

    • This reply was modified 8 years, 5 months ago by Adriano Monecchi. Reason: enhanced question

    I’m facing the same issue. I’m afraid the plugin developers really don’t care about answering questions anymore. The best thing to do is enable W3TC debug options and try to deal with it ourselves.

    I’ve overcome this problem by preventing all pages with a form from being cached. E.g: Under Database Cache Settings go to Never cache the following pages option and place your pages like the following:

    /contact-page/*
    /landing-page/*

    You could also enabled Debug option for every module you have configured (page caching, database caching, minify) etc. Then you’d inspect the page in order to see any db queries made by CF7 plugin. If you identify a significant cookie or db request made by the plugin you might try to remove these queries from the Ignored query stems option under Database Cache Settings.

    • This reply was modified 8 years, 5 months ago by Adriano Monecchi. Reason: enhanced answer and grammar

    My wishlist page has the /produtos-favoritos/ slug. When a product is added to favorites, I’m able to access the page on https://www.mydomain.com/produtos-favoritos/ and see the products added to favorites. However, I keep getting a 404 error for the url https://www.mydomain.com/produtos-favoritos/view/ when clicking the wishlist button right after the product is added to favorites. What’s going on here?

    I’ve experienced the same thing here. I was waiting the person who subscribe to receive a confirmation email from the Mailchimp side. Although that would be cool, I think this behavior is indeed a smart one.

    As long as the plugin silently communicates with the Mailchimp API through Ajax, you could use the Mail 2 under you Contact Form 7 settings to deliver an automatic response to the user after the form is submitted.

    I did fill all the required fields for it to work and besides you can place a custom html mail template and fill out the layout with Contact Form 7 shortcodes such as [your-name][your-email] etc. So you’ll end up with your own custom email notification for the user.

    The same issue happens on my theme when Contact Form 7 MailChimp Extension plugin is enabled. Although the form data is successfully sent to Mailchimp, Contact Form 7 success message is never displayed.

    By inspecting the code I’ve noticed there’s also an ajax error which is hidden by js/css stating the following: Unexpected token < in JSON at position 0.

    My form has just two fields, name and email. I’ve provided all the info the extension requires, and in Contact Form 7’s Mail tab I’ve set the From: field as such: Site Name <[email protected]> – I was wondering if the ajax error mentioned above there’s something related to the way the email is set, I mean between <>.

    • This reply was modified 8 years, 5 months ago by Adriano Monecchi. Reason: enhanced grammar

    You’d need a helper function to allow you to add a class or other atributes to your fields on checkout page. I’ve created a function that allows you to manage any woocommerce checkout field or custom field classes, please check it out here: https://stackoverflow.com/questions/23943791/add-custom-css-class-to-woocommerce-checkout-fields/36724593#36724593

    After getting your fields with the right classes, then you’d need a small piece of js to trigger the select2 plugin

    E.g:

    jQuery(document).ready(function($) {
    // If the select2 class exists, then fire the select 2 function
    if (jQuery(".select2").length > 0)
       $("select.select2").select2({ // if using css class
     	width: "100%",
     	//minimumResultsForSearch: Infinity,  // hide select 2 search field
        allowClear: true
       });
    });
Viewing 15 replies - 16 through 30 (of 52 total)