the custom field you are looking for I think is: woocommerce_weight_unit put it inside dynamic value Post Custom Field
hi @dudaster,
I’m not sure we are talking about the same thing.
I thik you are refering to this, in the shipping menu.
And I am refering to this, in the inventory.
It’s something I was able to add thanks to the plugin WooCommerce Unit Of Measure.
Now I want it to add it to the dynamic tags so it apperas in the loop for each product and I don’t know how.
thanks 🙂
Let me rephrase:
– insert heading widget
– select dynamic value
– choose “Custom Post Field”
– write this value in there: woocommerce_weight_unit
And let me know if you did this and worked.
@dudaster yes sorry I didn’t understand the first time … I have everything in French and some time the translation isn’t simple 😉
So Thank you it works!
I just have a problem: it is displayed next to the price, whatever I do (here).
And I want it to go under the price, as the title field for Unit of measure is under the price.
Is it possible?
thank you so much
Use position inline for each widget!
Hi @dudaster
nope it doesn’t wortk.
As you can see on the gif image in my last post, the Unit of Mesure is automaticaly displayed next to the price, wherease the widget isn’t next to the price at all!
If I supress the price, the UOM disapeares to.
It’s as if it was somehow linked to the price.
Maybe there is something to configure in the settings?
thank you
@dudaster
yes I already watched that video.
If I display all widgets inline this is how it looks : image.
The UOM sticks with the price and if I remove the price widget, it also removes the UOM widget. It’s as if the UOM merged within the price widget. They aren’t side by side. They merge automatically. You can see it on this image : the price widget is selected and the UOM is inside the widget, wherease the UOM widget is at the bottom.
In other words the UOM isn’t displayed where the UOM widget is.
Can’t you just put the price an the units in the same column and the rest separated?
Do this, and it should work..
Label widget
Price widget
Make both of those ‘inline auto’
insert a ‘spacer’ widget. and adjust height to small value.
then your qty widget.
@dudaster no. I want them on two different lines
@ocbroadband. It’s a good idea but it doesn’t work. I created a new product loop to start on a clean slate. As you can see here, as soon as I add the price widget, the UOM is with the price, inside the price widget…even if the UOM widget isn’t on the page.
As you can see on this second video (here) I tried what you suggest bust the UOM widget stays empty, while the UOM data still is in the price widget.
That is something beyond the ‘cosmetic’ side of things then. I’d first, get them all on the page at the same time. Once you’ve accomplished that, then the cosmetic piece can be done. Sorry, I was trying to follow along with what widgets you were using, but couldn’t quite make out some of them. By chance, did you try using just standard widgets to pull in the data from the CPT your looking at? I think the primary goal would be to make sure you can see all the elements of the post on the screen at the same time, then start adjusting things around.
Now I get it. Try using like this:
– insert heading widget
– select dynamic value
– choose “Custom Post Field”
– write this value in there: _price
And let me know if you did this and worked.
thank you both for taking time
@ocbroadband so far I used those default woocommerce widgets
+ the title (or text editor) widget with the custom field woocommerce_weight_unit.
@dudaster When I do as you say, I only have the price (which is great!)
It just doesn’t solve the following problem : the title widget with the custom field woocommerce_weight_unit remains empty.
Video here, where I first add title widget (_price) [shows the price], then title widget (woocommerce_weight_unit) [doesn’t show anything], then product price widget [show the price and the UOM merged in the same widget].
Are you using a 3rd part plugin for the UOM? Or just the field inside the product settings?