Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter steve1072

    (@stevefox1072)

    Hello. We need to fix this issue please. Why are we getting no response?

    Please advise

    Live Event Artist

    Thread Starter steve1072

    (@stevefox1072)

    Hello?

    Why are we getting no response? It’s been 1 week now

    Live Event Artist

    Hi @Steve1072,

    I’m so sorry for the delay in response, I though I responded to a similar thread but somehow this got skipped. Sorry again!

    The guide is for developer’s and every developer actually know how to play with code. But we will definitely try to improve our docs and make it more dev friendly.

    For now, You can place that file either in your theme folder or within your child theme folder or even add that piece of code into your theme’s function.php or child theme’s function.php file ( which is always recommended when using WP and customizing it ).

    Let me know if you have any other questions or concerns.
    Thanks!

    Thread Starter steve1072

    (@stevefox1072)

    This is the first I”ve heard. I have it set to send me emails if a response is received.

    Your system is not acting right as I”m not receiving auto emails.

    I am a developer BUT you should still provide instructions as to modifying your plugin.

    You provide a script with no instructions. Plus we are supposed to be modifying the plugin NOT the theme in question. I would rather not modify the theme for this plugin. I would rather the plugin be modified.

    Please advise. I’ve been asking these questions for some time with NO RESPONSE.

    I’d like to get my client taken care of. He just needs simple custom fields for the make offer. As many as needed. This is pretty simple.

    Please advise

    Live Event Artist

    • This reply was modified 6 years, 1 month ago by steve1072.

    Hi @stevefox1072, I’m so sorry about that, Please allow me to get someone relevant to give you a more clear reply to this one.

    Thanks!

    Plugin Contributor angelleye

    (@angelleye)

    @stevefox1072 You need to read up on the standard procedures of WordPress. You are missing some key elements that would clear this stuff up for you, but those elements are beyond the scope of what we can cover in a basic guide for our plugin. These are just WordPress developer basics.

    You should never customize a plugin’s core code directly. Instead, you need to use hooks that are provided by the plugin to do your customization. The standard place for placing hooks is in your theme’s functions.php file. You are not modifying your theme by doing this. You are simply extending functionality for your site, which is exactly how WordPress works and makes it such a powerful system.

    Note that you should be working with a Child Theme as well, so the functions.php would actually go in your child theme, and the fall-back system in WordPress makes this all work beautifully. Again, this is a standard procedure.

    If you don’t want to do this through your child theme’s functions.php file, then what you can do is create your own basic plugin file and add the same code there that would you put into the functions.php file. For this you just need to follow the standard procedures for writing a basic WordPress plugin. So you basically just create your plugin file with the proper comments at the top, and then drop in your hooks/functions accordingly.

    Again, child themes, functions.php, and plugins are all general WordPress developer things that we can’t possibly be expected to include every piece of documentation of ours. If we did include such content it would be an entirely separate tutorial / document, and there are so many of those already out there that we really don’t need to reinvent the wheel.

    Hopefully that helps you understand what’s going on here. If you need more direct help please submit an order for premium support. Then you can schedule a time with me, and I can work with you to get this all setup the way you need.

    • This reply was modified 6 years, 1 month ago by angelleye.
    • This reply was modified 6 years, 1 month ago by angelleye.
    Plugin Contributor angelleye

    (@angelleye)

    @stevefox1072, to follow up on that long answer, the short answer is this.

    The place to put that script you downloaded would be your theme’s functions.php file, as Oliver mentioned.

    If you don’t want to do that, add this to the top of the file that you downloaded:

    
    <?php
    /*
    Plugin Name:  Offers for WooCommerce - Custom Hooks
    Plugin URI:   https://angelleye.com/
    Description:  Custom hooks for the Offers for WooCommerce plugin.
    Version:      1.0.0
    Author:       angelleye
    Author URI:   https://angelleye.com/
    License:      GPL2
    License URI:  https://www.gnu.org/licenses/gpl-2.0.html
    Text Domain:  aeofw-hooks
    Domain Path:  /languages
    */

    That will effectively turn that file into a basic WordPress plugin. Upload that to your /plugins directory on your site and then you’ll be able to activate it like any other plugin.

    Hopefully that helps get you where you want to be.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘adding custom fields’ is closed to new replies.