atheda
Forum Replies Created
-
Thanks for the reply, hopefully the tool gets fixed soon – it’s unsettling to be told there’s problems!
Hi
Thanks for the reply. I’ve enabled that option but now a different error gets displayed:
The value provided for item.id must be a valid URL.
I found this thread https://productforums.google.com/forum/#!topic/webmasters/1povUKOtFXQ where someone stated that “schema.org had changed its @type “url” to “id”.. so the schema plugins must solve this issue in their next updates.”
Is this correct? And if so, is a fix likely any time soon?
Thanks
That works perfectly, thank you.
Hi guys
Sorry for the delay coming back to you.
Yes this code does work, thank you. However it introduces a small problem.The shop sells lingerie, whilst the Bra sizes are now correct (eg 30 DD), the addition of this code means that regular sizes for other garments (Knickers, Suspender Belts etc) no longer show. Sizes for these items now appear blank in our feed.
Is there a way to code it so that it only applies to items which exist in the ‘Bras’ category?
I’m struggling with the correct syntax for this to work.
Would you be able to provide an example please?Thanks
No worries, after seeing your code I was able to do it myself by adding:
$attributes['item_group_id'] = $wc_parent_product->get_sku();That’s working pefectly now thank you!
Hi Michel
Just to add in addition, Google Best Practices state:
Use the parent SKU as the item_group_id [item_group_id] for all variants of the same product.
Currently item_group_id is generated automatically by the plugin based on post_id in the database – even though correct Parent SKU data exists.
Thereforre, in addition to MPN, please can you assist with the code to ensure that item_group_id pulls the actual Parent SKU.
Thanks!
Thanks Michel
I’m happy to use filter, I’ve had a couple of attempts but can’t get it working.
If you could help me out the the correct code that would be appreciated 🙂Thanks
Thank you Michel, I appreciate the quick response.
WooCommerce doesn’t let us set a GTIN, and I don’t wish to rely on a 3rd party plugin for this purpose as I need confidence in its stability.
For reasons concerning our Review integration and review grouping, we need to be supplying Brand + MPN in our feed. Brand is easy as that’s a static value. The MPN also exists – its the parent product SKU, we just need a way to pull this information out. Can it be added to the list of field options in the select dropdown?
Ah I found the issue and managed it get it working 🙂
The str_replace line had the comma and space the wrong way around. The code was trying to replace ” ,” and it needed to be “, “.
Thanks for your help!
- This reply was modified 7 years, 11 months ago by atheda.
EDIT – sorry, it’s not exactly the same. The code removes ALL spaces from the product title which is obviously incorrect. The comma is still present. We only want the space and comma removed from the appended size attributes.
Thank you for help, unfortunately the code doesn’t work for me.
I’ve added it to functions.php, cleared the cache and regenerated the feed but the output is exactly the same.Hi Michel
Thank you for the reply, I’m familiar with editing functions.php but I’m lost at where to start based on the link you sent.
Are you able to assist with the appropriate code to remove the comma and the space?
Thanks
LorianForum: Themes and Templates
In reply to: [OceanWP] repair the designWe have the same display issue.
Within WooCommerce we have items of clothing with a variation called Size.
When viewing the product the Size select drop-down box is too wide – it runs off the right hand edge of the screen. The drop-down is also crushed up against the ‘Size’ label on smaller screen sizes.See here:
https://pasteboard.co/HlggZmA.png