Masidus
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Related ProductsNevermind, I’ve sorted it! (Main theme settings!)
Marking topic as resolved, thanks again!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsActually one last thing! ??
The posts_per_page argument does not work, it displays 8 products regardless of what I try?
Forum: Plugins
In reply to: [WooCommerce] Related ProductsHERO OF THE MONTH GOES TO @crslz – IT WORKS!!
Thank you so much for your time, honestly I’ve been trying to figure this out for days and I have infinite appreciation for you putting the time and effort in to help me out!
People like you are the pillars of the online world <3
For the convenience of anyone else who needs to know.
How to assign Related Products to a single tag
1 – Add single tag to product (in our case as we sell dog prints, it’s the breed of the dog)
2 – Navigate to /wp-content/themes/*yourtheme-childtheme*/functions.php
3 – Add in code and save:
add_filter( 'woocommerce_output_related_products_args', function( $args ) { $args = wp_parse_args( array( 'posts_per_page' => 4 ), $args ); return $args; }); add_filter( 'woocommerce_product_related_posts_relate_by_category', function() { return false; });
4 – Clear all caches
Thank you so much again!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsStill no joy, have removed all tags but the single breed tag, cleared all caches but still a multitude of various products show up.
Current results from page:
https://watkinsprints.co.uk/shop/breed/greyhound/got-your-back/
Thank you!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsOk so if I were to change every product to just contain one tag, being the breed, what would be the code which I would use to base related products just from that single tag?
Forum: Plugins
In reply to: [WooCommerce] Related ProductsAm I right in thinking this won’t achieve my end goal though?
Is there anyway to isolate the subcategory if this is the case so I am able to group related products by breed?
My issue is, if you have a dog generally 95% of people are crazy about one breed, so it’s useless us advertising anything but this breed to most.
If you can think of any other way to achieve this that would be amazing as I need the result to be processed by WooCommerce itself and not an external plugin in order for al my systems to work correctly.
Many thanks!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsAmazing!
The output is as follows –
WP_Term Object ( [term_id] => 74 [name] => Dalmatian [slug] => dalmatian [term_group] => 0 [term_taxonomy_id] => 74 [taxonomy] => product_cat [description] => [parent] => 99 [count] => 11 [filter] => raw )
WP_Term Object ( [term_id] => 72 [name] => Prints [slug] => prints [term_group] => 0 [term_taxonomy_id] => 72 [taxonomy] => product_cat [description] => [parent] => 0 [count] => 37 [filter] => raw )
WP_Term Object ( [term_id] => 137 [name] => Large [slug] => large [term_group] => 0 [term_taxonomy_id] => 137 [taxonomy] => product_cat [description] => [parent] => 72 [count] => 9 [filter] => raw )
Array ( [0] => 74 [1] => 72 [2] => 137 )
So for this product I only want the 11 products from the Dalmatian group displayed, where as in a greyhound piece for example, I only want Greyhounds displayed.
Thank you again, you’ve already taught me a bunch which I really appreciate!
- This reply was modified 5 years, 2 months ago by Masidus.
Forum: Plugins
In reply to: [WooCommerce] Related ProductsStill no joy sadly, sorry I can’t be of anymore use!
Thank you so much for your time so far, if you have any otehr suggestions then they would be most appreciated!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsThank you again for the swift reply, however the code is still not working and I can’t decipher why.
It’s still just displaying the normal, random selection of products.
Many thanks!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsThank you for your incredibly detailed reply!
Unfortunately neither code is working. I have checked through for obvious errors or typos however again, PHP is not my specialty.
I changed the line
if ($term->parent == 0) { //check for parent terms only
to have the value of ‘1’ and the page ceased to show any Related Products at all which suggests to me the code is working, I just can’t pin down what area isn’t working.Just for the sake of clarity in case I’m misinterpreting something, when I say ‘Main Category’ I mean the ‘Primary Category’ which affects the Permalink and is selected in the right hand box on the ‘Edit Product’ window where you select the categories you’d like the product to be in. Next to these boxes is a selector for you to choose ‘Primary Category’.
Thank you so much for your time, hugely appreciated!!
Forum: Plugins
In reply to: [WooCommerce] Related ProductsHi crslz,
Thank you kindly for your swift reply. My knowledge of PHP is scarce and whilst I am able to make some changes, I am working on a live production site and therefore do not have the means to test sets of code without risking breaking the environment and hence, losing sales.
Is it possible that you could adjust this code appropriately for me by chance? As mentioned in the first post, I am looking to get Related Products of ONLY the main category of the product we are on E.G. a Dalmatian Print only shows Related Products from the Dalmatian category.
Any help would be hugely appreciated, many thanks!
Forum: Plugins
In reply to: [Customer Reviews for WooCommerce] customer photos on reviews pageHello,
I am also wondering about a similar feature:
On Amazon, there is a small section below the histogram box and above the first review which says ‘Customer Images’ and I’m curious as the whether we are able to add a similar section using a shortcode or different option?
Photo reviews are one of the most powerful forms of social proof and if these reviews get buried then we are lacking the benefits of these posts.
Many thanks for an exceptional plugin!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Cookie ‘_fbp’ will not revokeHey @aahulsebos,
Thank you also for your swift reply and detailed explanation!
This information has been incredibly useful and glad to know the circumstances in which the cookies are set and permissions are handled are legit and aren’t causing any issues.
Again this is such a great plugin and makes it very straightforward to ensure you are entirely compliant without having any prior knowledge of the regulatuions by providing step by step guides and the wizard + scanner to handle the technical sides.
Many thanks for your time, all the best!
Masidus
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Cookie ‘_fbp’ will not revokeHi @rogierlankhorst,
Thank you so much for your swift reply and for taking the time to check the site and answer my questions; I am incredibly impressed with the support!
Glad to hear that everything is functioning as intended and your explanation was very clear.
If you don’t mind me just clarifying a couple of details;
1 – Is revoking the placement of new cookies in response to a request to revoke consent satisfactory or do I need to take steps to manually clear any offending cookies which persist in storage?
2 – Would the feature of clearing individual, sets or categories of cookies be a feasible upgrade or even a necessary upgrade and if so, are you intending on implementing it in future releases?
I am only a small business at the current time so the free version is more than enough for my needs however when the time comes, I’ll be delighted to purchase the premium version and know that I am backed by such awesome support with a fantastic app!
Thank you again for your help and hope you’re wel!!
- This reply was modified 5 years, 5 months ago by Masidus.