Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #265387

    Hi Kriesi

    First of thank you for an amazing theme. I’m really happy with its performance. But sometimes things go wrong as they have now.

    I am developing an ecommerce clothing boutique website. I have included some dummy products from the enfold demo site. And I have opted to go with a masonary home page product grid. The website can be seen at

    http://www.jasminesboutique.co.uk/

    My client also does some bespoke clothing from the “Made to measure” range which is actually a product category. A requirement was that a customer could enter custom measurements in a text area on the product page. So I found woothemes does the perfect plugin! Great I purchased and installed this

    http://docs.woothemes.com/document/product-add-ons/

    Okay moving onto the problem. With this plugin I created an global product option for all products assigned to the made to measure product category and this option called Global Add On Group #2

    For some disappointing reason this option is deciding to become visible on the masonry product grid. You can see it on the home page in the top left and the option/item in the masonry grid points to http://www.jasminesboutique.co.uk/?post_type=global_product_addon&p=89 which is not found error 404.

    Please can you advise what I can do to remove this? Or any code I need to place in any php file to correct this.

    For the masonry options I have selected product category and selected all product categories. Everything else is just left at default.

    Please help!!!

    #265777

    Hey!

    Would you mind posting us the login credentials to your site in a private reply so we can take a look at your backend settings as well? :)
    Make sure to mark the reply “private” so only moderators can see it :)

    #265782
    This reply has been marked as private.
    #265871

    Hey!

    You probably just need to remove the plugin cpt from the masonry entry query – try to insert following code at the very bottom of your child theme functions.php file or enfold/functions.php:

    
    if(!function_exists('avia_remove_cpt_from_query'))
    {
    	function avia_remove_cpt_from_query($query, $params)
    	{
    	    if(!empty($query['post_type']))
    	    {
              foreach($query['post_type'] as $key => $value)
              {
                if($value == "global_product_addon") unset($query['post_type'][$key]);
              }
              
    	    }
    	
    	    return $query;
    	}
    	
    	add_filter('avia_masonry_entries_query', 'avia_remove_cpt_from_query', 10, 2);
    }
    

    Best regards,
    Peter

    #265872

    Hi!

    I added the code into the functions.php file and it works.

    Cheers!
    Peter

    #266333

    Hi Peter

    I’ve just added it to functions enfold it works a treat. Thanks for this fix.

    Hope you don’t mind that I ask 2 further questions just to self educate and also add some useful information to the forum for anyone in the future to review.

    I’m not sure what the plugin cpt is? And the masonry entry query should only have had products shouldn’t it?

    #266393

    Hi!

    The plugin custom post type is called “global_product_addon”. Our query is not based on the products post type but the taxonomy and terms(s) of the products. If the plugin just registers a new post type but uses the same taxonomy/terms like the standard woocommerce products it’s also included in the products query.

    Regards,
    Peter

    #266744

    Hi Peter

    Thank you for your meaningful responses. I have a final question. Since using the new theme I’ve found the up arrow fails to render.

    I’ve inspected it with Fire Bug and compared to older versions and I can’t detect the reason. Could you provide some advice? It could just be a missing style sheet or font file but looking through fire bug nothing appears to be failing.

    Could you take a look at which is using the latest theme with latest wordpress http://plumber.codecreative.co.uk/

    #267108

    Hi!

    Thank you for using the theme!

    The scroll to top markup on your website is different. Please try to extract the footer.php file from a fresh download of the theme then override the old file on your installation.

    Regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.