99w
Forum Replies Created
-
@rankmathteam It’s been nearly 4 weeks since we sent this support ticket, just wanted to check that it has been taken into account for a potential bug fix?
Thank you,
Forum: Plugins
In reply to: [Product Attributes Shortcode] Not working correct with wpml@voskotan We haven’t heard back from you in a while, can you confirm if you attempted the above fix as if this resolves your issue we would like to investigate including this code in latter releases.
Thank you
Forum: Plugins
In reply to: [Product Attributes Shortcode] Not working correct with wpmlHmm, I think this is due to the way the links are currently generated in-conjunction with how WPML is amending links to add the lang parameter – which I assume is doing via filter on get_permalink().
Ensure you have the latest version installed, then in the wcpas-product-attributes-shortcode.php file look for line 101 which is:
$href = get_permalink( wc_get_page_id( 'shop' ) ) . '?filter_' . $taxonomy->attribute_name . '=' . $term->slug;
Change that to:
$href = add_query_arg( 'filter_' . $taxonomy->attribute_name, $term->slug, get_permalink( wc_get_page_id( 'shop' ) ) );
You’ll want to check both the default links and language based links after this change as this is a really quick code edit we have created with minimal testing.
If this works we can investigate further and look to include this fix for this scenario in the next release.
Let us know how you get on.
Thank you
Hi,
We haven’t heard back from you in a while, so I am going to mark this as resolved.
If you have any further questions, please let us know.
Thank you,
Hi,
This plugin displays a list of attributes, not products e.g. if you have an attribute of Brands and the terms of this attribute are Apple, Microsoft, etc it shows links to Apple, Microsoft, when you click these links it displays the archive page for that attribute term (if archives have been enabled when adding/editing the term).
PS. your link is restricted by a login so we cannot see it.
Thank you,
- This reply was modified 2 years, 11 months ago by 99w.
Forum: Fixing WordPress
In reply to: 500 error on initial dashboard load, cannot allocate memory in logsHi,
Thank you – on further research it looks like it maybe a combination of the default WordPress memory being quite low which I can override in wp-config and the PHP memory limit.
Thanks for your time,
Hi,
We haven’t heard back from you in a while, so I’ going to mark this as resolved.
If you have any further questions, please start a new thread.
Thank you,
@nutankadam Can you provide us with a link to the page where you are seeing an issue? and if you can let us know the steps you took to get to this page (e.g. where you clicked from to get to that page?)
Hi,
This plugin is designed to output a list of links to all the terms of a specific WooCommerce attribute, when these links are clicked the page lists all the products which have the clicked attribute term.
For example if you had a “color” attribute with color terms attached to products such as “Red, Blue, Green” when you use [wcpas_product_attributes attribute=”color”] this will output a list of “Red, Blue, Green” links and when clicked it will take you to the archive/shop page and this will show all the products which have the clicked attribute term.
The [wcpas_product_attributes attribute=”color”] output is separate to other standard attribute filters/links functionality which WooCommerce provides, so if you are currently seeing other attribute links that act differently these will be the standard WooCommerce ones that this plugin does not effect.
Thank you,
@aniruddhapathak Thanks for the kind words! We are glad it helped you achieve what you needed for your store.
Forum: Plugins
In reply to: [Product Attributes Shortcode] Product AttributeHi,
The functionality you are looking to achieve here isn’t what this plugin is designed to do – this plugin takes a given attribute and outputs all the terms for that attribute.
This plugin is to be used when you want to output a linked list of all the terms of an attribute, an example of this would be if in the footer of a website you wanted to display a list of all the brands that click through to the brand’s archive page.
Thanks,
Forum: Plugins
In reply to: [Product Attributes Shortcode] Product Attributes ShortcodeMin/max price filter links is not currently included, we are going to look into including this functionality for the next release so please keep an eye out for this during the next update.
Forum: Plugins
In reply to: [Contact Form 7] Hook to add text after every CF7 form?Yes that is great and will do the job – thanks
Of course! That is my bad, I’m always forgetting that esc_html_e escapes and translates not escapes and echos.
Just a note on the comment above. I tested this further and it works but only for 1 filter, if I use more than 1 filter it doesn’t.
Therefore for my scenario I removed what I had completely then below this line:
$new_url = $this->append_get_parameters( $new_url );
I added:
$new_url = str_replace( '/horses/', '/', $new_url );
Which gave me the correct URL when using the filters but the page could not be found, so I had to amend the generate_rewrite_rules() function with a change to a line in the taxonomy loop to this:
$rewrite_slug = ( ! empty( $taxonomy->rewrite['slug'] ) ) ? str_replace( 'horses/', '', $taxonomy->rewrite['slug'] ) : $query_var;
Which works after flushing permalinks.
If anyone is reading this looking to apply a similar temporary fix you should just be able to change the references to horses with your rewritten post type slug.
- This reply was modified 4 years, 4 months ago by 99w.