• HappySeat

    (@happyseat)


    Hello,

    I am wondering if there is a way to add

      to products in the shopping cart and in the order details; preferably something that could be added to my functions.php file. It seems rather simply; however, I cannot figure it out. So, each item in the cart would be labeled as 1,2, or 3 in the actual table….

    Thank you so much in advanced!

    https://www.ads-software.com/plugins/woocommerce/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    You’d need to override templates to achieve this. We use a table, not a list.

    Thread Starter HappySeat

    (@happyseat)

    Ok, thank you…still can’t figure it out though….there are multiple tables already within woocommerce->cart->cart.php

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Thread Starter HappySeat

    (@happyseat)

    Hi there,

    Thank you for your help with this. I am new to development especially modifying core files within woocommerce. This is still pretty vague for me. Is this where I begin adding additional tables? I started putting tags throughout and unfortunately this did not work…..

    Plugin Contributor Mike Jolley

    (@mikejolley)

    This is where you could add a number for example, to number each row. Any change to this file will show up unless there is already a version of this template in your theme folder.

    Thread Starter HappySeat

    (@happyseat)

    OK, thanks. I was able to successfully add this to my theme folder. The modifications I made, was just causing some areas of the order to be missing. I started by adding an unsorted list within the table that already existed. So, when you said add a table, I was confused thinking, “oh, I add another table?” So, I would just simply put the number 1, 2, or 3 within these rows?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Yeah that would work. You’d need to do it with PHP though to make it dynamic every loop.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding an ordered list to products in shopping cart’ is closed to new replies.