• Resolved florian30

    (@florian30)


    Hello !

    I’m looking for a solution to resolve my problem.

    For explain : I have a website that promote tiles without the possibility to buy online but that works with WooCommerce to store the different products.
    On each product page I want to show a table/array with technicals informations, like : formats, thickness, pieces/box, etc… (view picture) according to the product format that is specified as a woocommerce attribute.

    So, if my product is available in 60×60 format the table should display the first row. If it’s available in 60×60 and 40×120 formats the table should display the both rows, and so on (these are conditions).

    I’ve tried with woocommerce features and various other plugins but it doesn’t satisfy my requirements. Maybe it’s possible with PHP functions but I don’t have the level to do this. If someone can help me, explain me or even send me a ready-made code I thank him in advance. It is an essential need for my website.

    Thank you

    wordpress 5.7.1, woocommerce 5.2.2

Viewing 4 replies - 1 through 4 (of 4 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello,
    I understand that you want to show the details of your products, like the available formats.

    You could use attributes for this. The attributes set on a product will shows as a table on the product page, where the main description and reviews show: https://docs.woocommerce.com/document/managing-product-taxonomies/#section-6

    Thread Starter florian30

    (@florian30)

    Hey, thank you for your reply.

    It’s not that I want. The attributes do not allow me to do what I want. When I want to create a table all the attributes are displayed, which I don’t want. That’s why there are only certain attributes that I need (those in the table in the attached image). I tried with plugins that allow to create woocommerce tables with the attributes but the display was not what I expected. Since I want a table on the page of each product this is done automatically and that’s why I’m looking for a solution to display a line of characteristics depending on the format of the visible product.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hey there ??

    This will require additional development, we’d recommend you hire a developer who can take a look at this, quote you for their services, and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customization experts listed at?https://woocommerce.com/customizations/.

    Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    Cheers.

    Plugin Support Shohan Hossain Nabil – a11n

    (@sohanhossain)

    Hey there!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show WordPress table/array row according to a condition matching with woocom’ is closed to new replies.