Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Arnopello

    (@arnopello)

    That is a good idea! I’ll do that and will test next update.

    Thanks mate

    Thread Starter Arnopello

    (@arnopello)

    Update: actually my custom product-attributes.php file gets deleted when updating the theme (and another file I created to implement a custom shortcode). Functions.php seems to get reset too, meaning any function I would add there would need to be re-added after each update (relating to @owadud655 solution).

    I’ve read here and there that making a child theme would be the solution. I may do it eventually.

    In the meantime I’ll just reupload my files and modifications each time I update. Theme gets updated less than woocommerce, and for less critical stuff usually, so that would be less work.

    Thread Starter Arnopello

    (@arnopello)

    Hi

    First thanks both for providing solutions I haven’t seen in my extensive search on the web, or better explained.

    I keep them close as they may be useful eventually. In the meantime, I have noticed the file which manages product attributes (namely product-attributes.php) has a big comment on the top saying “This template can be overridden by copying it to yourtheme/woocommerce/single-product/product-attributes.php”. So I assumed that this file does not change that much (it basically just displays all the attributes if I’m not mistaking) and just did that.

    I added my usual “html_entity_decode()” in the file, did a woocommerce update and it stayed the same. I would work this way unless I find some bugs appearing there.

    Thread Starter Arnopello

    (@arnopello)

    Hi

    You visited the website while I was doing some tests. If you check it now, you’ll see that I use the INPUT button. I polished it through CSS and I got the result I wanted.

    Thanks for your answer.

    Thread Starter Arnopello

    (@arnopello)

    Well, I think that there is some JS involved because classic CSS works like a charm. As I took back an existing class to take its settings, I think that it’s what is also linked to the JS which validate the form, as no <form> is involved.
    So i’ll create a specific class.

    Sorry for the disturbing.

Viewing 5 replies - 1 through 5 (of 5 total)