• Resolved geoffmanonlfo

    (@geoffmanonlfo)


    Hi team,

    I created a loop as explained in this great video : https://www.youtube.com/watch?v=qUF7HLdcjlg

    It allows me to custom my shop page, thanks elementor custom skin ??

    But I have an issue:
    I added the pluggin “WooCommerce Unit Of Measure” because I would like to add under the price if it’s a price for a kilo, 500g etc. like this.
    But when I edit my product loop with elementor, I can’t choose any dynamic tag named “unit of measure”. It’s in French but here is what I have : here.
    How can I add a product tag “Unit of measure”?
    Or maybe there is another solution?

    Thanks for your help!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author dudaster

    (@dudaster)

    the custom field you are looking for I think is: woocommerce_weight_unit put it inside dynamic value Post Custom Field

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    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 ??

    Plugin Author dudaster

    (@dudaster)

    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.

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    @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

    Plugin Author dudaster

    (@dudaster)

    Use position inline for each widget!

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    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

    Plugin Author dudaster

    (@dudaster)

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    @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.

    • This reply was modified 4 years, 5 months ago by geoffmanonlfo.
    Plugin Author dudaster

    (@dudaster)

    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.

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    @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.

    Plugin Author dudaster

    (@dudaster)

    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.

    Thread Starter geoffmanonlfo

    (@geoffmanonlfo)

    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].

    Plugin Author dudaster

    (@dudaster)

    Are you using a 3rd part plugin for the UOM? Or just the field inside the product settings?

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Dynamic tags in the loop’ is closed to new replies.