How to edit the "Additional product options" section that appears when editing..

This topic has 12 replies, 2 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp

  • Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 09:51

    Hi,

    How to edit the “Additional product options” section that appears when editing a product?

    I am happy to do it myself if you can tell me which file I need to look into?

    I want to remove:

    – Additional information block
    – Mark product as “New”
    – Upload image for hover effect

    Also is it possible to automatically have the “Title for custom tab” section already filled with a title that cannot be edited?

    Many thanks,

    11 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 09:59

    Hello,

    You can edit those blocks in wp-content/themes/legenda/framework/theme-options.php file.
    Unfortunately there is no such option to have the “Title for custom tab” section filled automatically. Sorry.

    Regards,
    Eva Kemp.

    Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 10:09

    Hi,

    Thanks,

    If I want to make the changes part of the child theme, do I just duplicate the file or I need to make the folder structure as well?

    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 10:16

    Hello,

    You’re welcome.
    You need make the folder structure. Please read this article carefully: http://codex.wordpress.org/Child_Themes > Referencing / Including Files in Your Child Theme

    Regards,
    Eva Kemp.

    Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 10:37

    Hi,

    I don’t seem to see the changes. I made the folder structure and copied the file and changed it.

    I followed your advise:

    “Overriding Parent Theme Template Files – Copy the Parent Theme template file to your Child Theme directory and make the edits there. As of version 2.7, WordPress will look in the Child Theme directory first for template files. And if an alternate version of, say, footer.php, or single.php exists, WordPress will use that template file instead.

    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 10:38

    Please provide us with wp-admin panel credentials and FTP access in Private Content.
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 10:49

    Hi,

    Please check Private content.

    Thanks,

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 11:08

    Thank you for the credentials. Could you please specify what changes you’ve made to the theme-options.php file?

    Regards,
    Eva Kemp.

    Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 11:15

    Hi,

    I have removed:

    array(
    ‘id’ => ‘additional_block’,
    ‘label’ => ‘Additional information block’,
    ‘type’ => ‘select’,
    ‘choices’ => $statick_blocks
    ),
    array(
    ‘id’ => ‘product_new’,
    ‘label’ => ‘Mark product as “New”‘,
    ‘type’ => ‘select’,
    ‘choices’ => array(
    array(
    ‘value’ => ‘disable’,
    ‘label’ => ‘Choose’
    ),
    array(
    ‘value’ => ‘disable’,
    ‘label’ => ‘No’
    ),
    array(
    ‘value’ => ‘enable’,
    ‘label’ => ‘Yes’
    )
    )
    ),

    array(
    ‘id’ => ‘hover_img’,
    ‘label’ => ‘Upload image for hover effect’,
    ‘type’ => ‘upload’
    ),

    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 13:14

    Hello,

    We’ve added the following code into functions.php file of the child theme:

    <?php
    require_once( get_stylesheet_directory() . '/framework/theme-options.php' );

    It’s described in the link we provided to you: http://codex.wordpress.org/Child_Themes > Referencing / Including Files in Your Child Theme.
    Now you can check the Products editor in admin panel.

    Regards,
    Eva Kemp.

    Avatar: fredwerk
    fredwerk
    Participant
    July 23, 2014 at 13:25

    Hi Eva,

    Many thanks,

    So if I wanted to do the same with another file, I would need to make the folder structure, duplicate the file and add this line of code (with different path) to the function.php?

    I did have a look at the Codex but it does not make much sense to me. So far I have learnt many things from you directly 🙂

    Avatar: Eva
    Eva Kemp
    Support staff
    July 23, 2014 at 13:31

    Hello,

    You’re welcome.
    Yes, you’re right.

    If you need more help don’t hesitate to contact us.

    Regards,
    Eva Kemp.

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.