WordPress.org

Ready to get started?Download WordPress

Forums

eShop
[resolved] possible to change field during checkout + make it mandatory? (11 posts)

  1. ezark
    Member
    Posted 3 years ago #

    1. Under the checkout section (after you add an item to the shopping
    cart), is it possible to change the field COMPANY to ORGANIZATION? Also is it possible to make it a required field?

    2. Also is it possible to remove the country field from the same page?

    TIA -Any help appreciated, btw decently familiar with php if need to edit file ;)

  2. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    Don't edit the plugin, it shouldn't be needed - and if you ever find something you can't do - contact me and I'll add in a filter/action.

    1 - http://quirm.net/wiki/eshop/changing-displayed-text/
    and a quick example for changing the required fields:

    function extras_required($values){
    	//amends required fields
    	$values=array('shipping','first_name','last_name','email','phone','address','city','zip');
    	return $values;
    }
    add_filter('eshopCheckoutReqd','extras_required');

    2. can be hidden via CSS, and if it isn't in your version, it definitely is in the next one.

  3. ezark
    Member
    Posted 3 years ago #

    Thanks for the quick response! Can you please tell me the location and names of the file(s)?

  4. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    for what? checkout is all in checkout.php

  5. epicearth
    Member
    Posted 3 years ago #

    Rich,

    I am new to eshop, but I am using it in a novel way. For my event oriented business. Is there a way to change the name of the fields on the checkout page? I am going to go look at the checkout.php but any other info would be great.

    Also wondering if there is a way for the site/order admin to be notified via email of a new order? I have looked though and do not see a way.

    Thanks.

  6. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    http://quirm.net/wiki/eshop/changing-displayed-text/
    might help.

    admins automatically get emails for each transaction plus, if configured, you can have a daily reminder sent out for outstanding orders as well.

  7. magicmarker1955
    Member
    Posted 3 years ago #

    This is great except where do I add this code?

    function extras_required($values){
    //amends required fields
    $values=array('shipping','first_name','last_name','email','phone','address','city','zip');
    return $values;
    }
    add_filter('eshopCheckoutReqd','extras_required');

  8. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    can be added as a small plugin, or to your themes function.php

  9. magicmarker1955
    Member
    Posted 3 years ago #

    Added it to my functions.php and got this:

    function extras_required($values){ //amends required fields $values=array('shipping','first_name','last_name','email','phone','address','city','zip'); return $values; } add_filter('eshopCheckoutReqd','extras_required');
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/s/i/e/sierra109/html/rol/wp-content/themes/eStore2.0/functions.php:36) in /home/content/s/i/e/sierra109/html/rol/wp-content/plugins/eshop/eshop.php on line 48

  10. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    ensure you have no spaces after the closing ?> or before the opening <?php

  11. magicmarker1955
    Member
    Posted 3 years ago #

    Worked-thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags