customlogoshop
Forum Replies Created
-
It’s not unique queries but somehow it doesnt work, strange
How do I go about hiding it?
On the video, the SKU duplicates when I unselect a variation. I highlighted the sku to show you, watch how long it becomes because it duplicates the SKU for some reason
Please watch what happens when I unselect a variation
https://www.loom.com/share/a41c5953f621407ba01ab3a85f969d4aAll sorted!
If anyone is interested in removing a slug from an attribute, try this
// Remove slug from SKU function sv_wc_sku_generator_variation_sku( $variation_sku ) { $variation_sku = str_replace( 'slug', ' ', $variation_sku ); return $variation_sku; } add_filter( 'wc_sku_generator_variation_sku', 'sv_wc_sku_generator_variation_sku' );- This reply was modified 3 years, 1 month ago by customlogoshop.
function asv_wc_replace_variation_sku_separator( $separator ) { return '/'; } add_filter( 'wc_sku_generator_sku_separator', 'asv_wc_replace_variation_sku_separator' );This worked! Now I just need to remove the underscore from the end of the sku, which is applied by an attribute slug. Can you help?
Hmmm not working
I’ll try this tomorrow 🙂 so the hyphen to slash issue is resolved. Now I just need a way to make an underscore blank. The underscore will come from my attribute slug.
I’m thinking of a way that I can make an attribute disappear from my SKU (I have a variation that I wouldn’t like added to the sku when selected)
So I am thinking if I call the slug ‘_’, is there a code I can use to remove it from my variation SKU?
function sv_wc_sku_generator_sku( $product_sku, $product ) { $product_sku = str_replace( '-', '/', $product_sku ); return $product_sku; } add_filter( 'sv_sku_generator_sku_separator', 'sv_wc_sku_generator_sku', 10, 2 );This worked! 🙂 Now I just need to get rid of the dash that I’ve used in an attribute slug – can you help please?
Actually, an underscore I have chosen for an attribute
LP/24410/RA/R/SL/N-rw/n/_
So you can see from the – is my attributes, would need – changing to / and then at the end, somehow remove the _ from a slug name I have chosen.
Ideally it would be good to remove the / before it too as I don’t want that attribute adding to the SKU if that makes sense.Optimal end result would be LP/24410/RA/R/SL/N-rw/n
Hmm that didn’t work for me. Here’s a screenshot of my code, I also use the add a ‘/’ for spaces, so maybe it’s a conflict?
https://pasteboard.co/M1Q3WJBoZWfM.jpg
Also I wondered if I call an unwanted attribute SKU ‘-‘, can you provide a code to remove that from the SKU?
Reason being is I have a variation attribute called ‘none’ and I don’t want this to add something to the SKU. I can’t leave a slug blank, so is there a way for me to call it ‘-‘ but then have a function that removes it from the SKU? This would be the final piece of my SKU puzzle!
Forum: Plugins
In reply to: [LiteSpeed Cache] Header is messed up while loadingThe theme we used was Hello Elementor which is the plain vanilla theme so I would have though we wouldn’t have many issues.
Do you think the errors have occured because of Elementors blown up code or the way it was put together?
Finding it difficult to understand as I thought the website was just created via the elementor page builder and I don’t know of any customisations that were made.
Thank you
Forum: Plugins
In reply to: [LiteSpeed Cache] Header is messed up while loadingHi
Thanks for your reply. I had hired a developer to put together the website in Elementor. He used the basic theme Elementor theme (hello elementor) as it is confusing how the website is so messed up as I wasn’t aware he would have customised it much.
I am very confused now as I’m not sure where to start or what’s actually wrong with it.
Thank you
Forum: Fixing WordPress
In reply to: Property Management Platform integrationI would like listings to be created on the management platform and uploaded directly to the website.
Any enquries about the listing, valuation requests etc to be sent directly to the management platform.
Along those lines!
Thanks