Okay
  Public Ticket #1340053
Display single product info via shortcodes in page/post
Closed

Comments

  •  5
    Inki started the conversation

    Hello,

    Is it possible to show single product information in posts via a shortcode?

    The product info as shown on a category page (like here: http://themes.laborator.co/aurum/fashion/product-category/shoes/). I'd like to be able to show that info by item ID for example.

    If not, do you know of a plugin or fix that might do this? Would be very helpful to quickly show product info in blogposts or pages. 

    Thanks. 

  •  5
    Inki replied

    Doing some research, https://docs.woocommerce.com/document/woocommerce-shortcodes/


    However [add_to_cart id="2106"] doesnt show the  "add to cart button". 

  •  5
    Inki replied

    Solved.

    The shortcode to display single products in a page or post is: 

    [products ids="xxxx"]

     

  • [deleted] replied

    Hi Inki,

    Glad to hear that!

    Will set this ticket as solved from here.

  •  5
    Inki replied

    Hi,

    There's a bug though.

    1. Text that comes after the shortcode is used, displayes next to the columns, making the layout all weird (see attachment). Text should appear below the shortcode and not continue next to it.

    2. Defining the amount of columns does not work. F.e. [products ids="666, 772, 576" columns="2"] still displays the default 4 columns instead of 2. 

  • [deleted] replied

    Hi Inki,

    Regarding your further questions, kindly open a new ticket and post your request so it will be helpful for the other users to take advantage of searching them on the forum, and we’re glad to help you in your new thread.

    Will set this ticket as solved from here.