Forums

[Plugin: eShop] Hide company field (4 posts)

  1. ParanoidSardine
    Member
    Posted 3 months ago #

    Hi,

    I was wondering how I might be able to add the company field in eshop on the checkout and checkout confirmation pages.

    On the initial checkout page the code of interest is:
    <label for="company">Company<br /><input class="med" type="text" name="company" value="" id="company" size="40" /></label><br />
    I can hide the text input with:

    div.custdetails #company {
    	display: none;
    }

    but I still have the label.

    On the confirmation page, the code in question is:
    <li><span class="items">Company:</span> </li>
    As the items class applies to all of the values in the list, I cannot simply hide that class as it would get rid of the whole list. I know I can accomplish hiding these pieces of HTML via JS, but I was hoping not to do that. Is there any other way of accomplishing this?

    Thanks!

  2. elfin
    Member
    Posted 3 months ago #

    possibly not at the moment, I'll have a look for a future release.

  3. ifranky
    Member
    Posted 2 months ago #

    checkout.php, line #1329 is where you want to be (note: this will be overwritten if you ever upgrade automatically instead of comparing and adding the file changes in http://plugins.trac.wordpress.org/log/eshop/ :) )

  4. elfin
    Member
    Posted 2 months ago #

    still on my todo list

Reply

You must log in to post.

About this Topic