Tagged: masonry
-
AuthorPosts
-
May 15, 2014 at 5:47 pm #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!!!
May 16, 2014 at 12:01 pm #265777Hey!
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 :)May 16, 2014 at 12:21 pm #265782This reply has been marked as private.May 16, 2014 at 5:00 pm #265871Hey!
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,
PeterMay 16, 2014 at 5:05 pm #265872Hi!
I added the code into the functions.php file and it works.
Cheers!
PeterMay 18, 2014 at 5:24 pm #266333Hi 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?
May 18, 2014 at 7:15 pm #266393Hi!
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,
PeterMay 19, 2014 at 12:45 pm #266744Hi 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/
May 20, 2014 at 2:47 am #267108 -
AuthorPosts
- You must be logged in to reply to this topic.