Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Aashik P – a11n

    (@aashik)

    Hi there!

    Would you mind sharing more details regarding this, please?

    I understand that the price itself is not not its own div, but I don’t see the price wrapped in a div on other locations like the single product page as well. Are you having trouble making changes to the woocommerce-Price-amount amount class?

    singe product
    Link to image: https://d.pr/i/mN2HjI

    widget product
    Link to image: https://d.pr/i/DMFGQ3

    Thread Starter graftedin

    (@graftedin)

    If I want to float the title or price over the product image I have to use absolute positioning. I can’t do that if those fields of data aren’t wrapped in their own div.

    And your example only works if there is a single price listed. If there is a price range for a product it splits the price between 2 spans and puts the – outside them so I can’t hook the whole price. My example has a p tag which I added. p or div I don’t care but div is probably better because that won’t be as likely to carry extra styles (margins) with it.

    <p class="product-price">
      <span class="woocommerce-Price-amount amount">
        <span class="woocommerce-Price-currencySymbol">
          $
        </span>
        39.99
      </span>
       – 
      <span class="woocommerce-Price-amount amount">
        <span class="woocommerce-Price-currencySymbol">
          $
        </span>
        44.99
      </span>
    </p>
    Plugin Support Aashik P – a11n

    (@aashik)

    Hello @graftedin

    Thank you for following up with more details on that. I can understand why the proposed change makes sense in your use case.

    If you already have a workaround, I’d recommend posting this as an issue and submitting a PR on the official repo: https://github.com/woocommerce/woocommerce/issues

    If not, it would be great to have you add your ideas to the Ideas Board, which is where developers go to look for future plugin features and improvements.

    Thread Starter graftedin

    (@graftedin)

    I’m tired of you guys not being able to pass this stuff on. Every plugin has a different support procedure and I don’t have time to remember who’s is what. If you are offering an app for free here you should be able to take these conversations and pass them along. If I purchase a paid plugin I go to where I purchase the plugin for support.

    Plugin Support Aashik P – a11n

    (@aashik)

    I can understand your frustration here. With so many plugins and extensions, it can be difficult to know where to request a particular feature, and how to help contribute to an open-source plugin.

    I cannot speak for the paid extensions/plugins support, but WooCommerce is open-source and is mostly supported by the community. Which is why we’re here in the forums to point you in the right direction. Which in this case, is either reporting it as a feature request in the ideas board or submitting a PR after creating an issue in the official repo so that the devs can cross-check and see the best way forward here.

    I’ll leave this thread open for a bit in case another community member would like to chime in.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget Prices are not wrapped in div’ is closed to new replies.