• Resolved neverdowork

    (@neverdowork)


    Dear community,

    the plugin is working great!

    I would like to display a product cart where all informtion (except the title) is being displayed in one row underneath the product image:

    1. The stock quantity is being created by a snippet:
      `<br>add_action( ‘woocommerce_after_shop_loop_item’, ‘show_stock_shop’, 10 );</li> </ol> <p>function show_stock_shop() {<br>global $product;<br>echo wc_get_stock_html( $product );<br>}</p> <p>2. The price suffix is also created by a snippet:<br>`
      add_filter( ‘woocommerce_get_price_suffix’, ‘add_price_suffix’, 99, 4 );

      function add_price_suffix( $html, $product, $price, $qty ){
      $html .= ‘ p/pc’;
      return $html;
      }
      `<br></p> <p>Looking forward to hearing from you!<br><br>Best,<br>neverdowork</p> <p></p> <p> PS: the site is still in development, therefore I cannot provide a link<br></p>

    • This topic was modified 1 year, 9 months ago by neverdowork.
Viewing 1 replies (of 1 total)
  • Thread Starter neverdowork

    (@neverdowork)

    I found a tangible solution on my own. After trying around with flexbox, I realized all the items underneath the product picture can be set to
    display: inline-block. After that, the rest is easy.

Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to change the order of product info and icon?’ is closed to new replies.