atomonelone
Forum Replies Created
-
Thanks for getting back to me @bitpresssupport
Happy to have helped and looking forward to see it working.Hi Alina,
Thanks for getting back to me so quickly.Here’s a video of the problem:
Hi @razyrx
Thanks for getting back to me so quickly.
I have already done that before testing. But the it’s still the same. It breaks the filtering.
To replicate all you have to do is use the function above, flush the permalinks by going to permalink settings like you told me, maske sure the “Refresh URL when filtering” option in enabled and then go to page 2 of a archive page and try to filter the products.- This reply was modified 2 years, 1 month ago by atomonelone.
Forum: Plugins
In reply to: [WooCommerce] Product urlHi @anastas10s
Thanks for getting back to me. After some further digging I noted that this behavior should be taken care of by WordPress native function called redirect_canonical, you can read about it here: redirect_canonical() | Function | WordPress Developer Resources
Either way this is not happening on my website and also seems to be the problem for alot of other people. I eventually found this piece of code that takes care of it:
function canon_redirect_can() { if ( is_single() ) { global $wp; $wp->parse_request(); $current_url = trim(home_url($wp->request), "/"); $redirect = get_permalink(); $surl = trim($redirect, "/"); if($current_url != $surl){ wp_redirect( $redirect, 301 ); exit; } } } add_action( 'template_redirect', 'canon_redirect_can' );
I’m leaving it here if anyone stumbles upon this thread and is looking for a solution to the same problem.
Forum: Plugins
In reply to: [WooCommerce] Product urlSo to clarify some more, I need to know if this is the intended behavior or if I need to file a bug report about this somewhere?
Either way I’m also wondering if you have a solution for it to stop behaving like this. It’s causing me alot of headache with my preloaded cache and SEO.
Could I for example make a rewrite rule that always redirects to the correct url of the products, just like the normal behavior is with WordPress posts?
Best regards.
Forum: Plugins
In reply to: [WooCommerce] Product urlYes that is set under Settings > Permalinks.
Yes, it’s altered in the browser’s address field.
I tried changing it myself because I noticed google was indexing products on my site with very strange urls like example.com/products/n/e/l/22255/productslug witch does not exist. Not any of the categories exist but still you can enter the product.The thing is as long as the url is structered like this: example.com/products/random/productslug then you will access the product with the entered url.
You could even make it how ever long you’d want it like: example.com/products/random/random/random/random/productslug and I’ll get to the product without a redirection or 404 error, just straight to the product page with the entered url.I tried this on 4 different woocommerce sites and it’s the same on all of them.
Shouldn’t the intended behavior be to throw a 404 error or redirect to the actual product url instead of showing the altered url in the browser?
You can even do this with product categories if it’s a subcategory.
Like this: example.com/product-category/random/subcategory- This reply was modified 2 years, 1 month ago by atomonelone.
- This reply was modified 2 years, 1 month ago by atomonelone.
- This reply was modified 2 years, 1 month ago by atomonelone.
Hi!
Thanks for the reply.
Yes I do have a prefix. my product categories are structured like this /product-category/category/ so it’s definetly not a conflict.
These are the Breadcrumb settings.
All products in the “Uncategorized” category is broken and wont display. So the problem has something to do with that since all other products are fine.
Forum: Plugins
In reply to: [WC Fields Factory] WCFF & Ivory SearchDid you ever get a chance to look at this? ??
Ahh ofcourse! How did I miss that?!
Thank you so much for the help! I really appreciate it!
I’ll mark this as resolved.
I might have some questions about getting the image but I will try a few stuff out before begging for help haha. Thanks again!
Hi Marc!
Thanks for the help and the links.
I tried doing it like this:if (($cart_item["product_id"]) && isset( $cart_item["configurator_data"] )) { $configurator_data = $cart_item["configurator_data"]; $htmloutput = ""; foreach ($configurator_data as $item) { $layer_name = $item->get_layer( 'name' ); $choice_name = $item->get_choice( 'name' ); $htmloutput = $layer_name . $choice_name; } } return $htmloutput
But It will only return one single choice even though there is 5 different on the product. I tried looking trough the cart code but I can’t quite figure it out. Did I do something wrong?
I really want to get the conditional logic and use this plugin on our website but it’s vital I can show all the information in the Pdf.
I’m really greatful for any further assitance.Thank you for your time.
Forum: Plugins
In reply to: [WC Fields Factory] WCFF & Ivory SearchThanka alot! Much appreciated! ??
Forum: Plugins
In reply to: [WC Fields Factory] Fields not showing on product archive page.Great, thank you so much for the quick response and awesome support. I’ve made sure to leave a 5 star review! ??
Forum: Plugins
In reply to: [WC Fields Factory] Fields not showing on product archive page.That fixed the issue, the fields are now being displayed!
Thanks for the help!Quick question, did version 4.0 come with ajax add to cart possibility?
I have ajax add to cart on both product page and category page. On product page the fields gets added with ajax but they don’t on category.Thanks again for the help.
Forum: Plugins
In reply to: [WC Fields Factory] Fields not showing on product archive page.In console I can see two hidden inputs that I have not created. Maybe this has something to do with it?
<input type=”hidden” class=”wccpf_archive_price_tag” value=”0″>
<input type=”hidden” class=”wccpf_archive_is_variable_tag” value=”no”>This is the Website