WordPress.org

Forums

MarketPress - WordPress eCommerce
[resolved] how custom Shipping field (3 posts)

  1. aboode114
    Member
    Posted 11 months ago #

    can I custom Shipping field e.g /disable Shipping proceed /or add field in Shipping ?

    I do not need the adress field and zip code and State/Province/Region:* and city

    when i disable Quantity from setting it does not been disabled ?

    https://wordpress.org/plugins/wordpress-ecommerce/

  2. WPMU DEV
    Member
    Posted 11 months ago #

    Hi @aboode114,

    I hope you are well today and thank you for your question.

    can I custom Shipping field e.g /disable Shipping proceed /or add field in Shipping ?

    You can add custom shipping field to the shipping form by hooking onto the 'mp_checkout_shipping_field' filter (see wordpress-ecommerce/marketpress-includes/template-functions.php lines 837 and 906) and you can hook onto the 'mp_shipping_process' action to process the shipping form.

    I do not need the adress field and zip code and State/Province/Region:* and city

    You can hide it by adding the following CSS code in the style.css file of your child theme or add it in your site using the following plugin.

    http://wordpress.org/plugins/simple-custom-css

    #mp_shipping_form table tbody tr:nth-child(4),
    #mp_shipping_form table tbody tr:nth-child(5),
    #mp_shipping_form table tbody tr:nth-child(6),
    #mp_shipping_form table tbody tr:nth-child(7),
    #mp_shipping_form table tbody tr:nth-child(8){
    	display: none !important;
    }

    To remove the validations of these fields, add the following code on line number 3344 inside the cart_checkout_error function in the below MarketPress plugin file.

    wordpress-ecommerce/marketpress.php

    if( $context == 'city' || $context == 'zip' || $context == 'address1' || $context == 'state' ){
    	return;
    }
    $msg = str_replace('"', '\"', $msg); //prevent double quotes from causing errors.

    Note: If you make any changes in the plugin core file then these changes will be overwritten and lost on the updation of that plugin and you will have to make these changes again in the plugin file.

    when i disable Quantity from setting it does not been disabled ?

    Could you please tell me how you are disabling it and share me the site link where it is displaying so that i can troubleshoot it?

    Kind Regards,
    WPMU DEV

  3. David
    WPMU DEV Support Staff
    Posted 10 months ago #

    Hi @aboode114,

    I hope the above details were helpful for you. We'd love to continue looking into that quantity issue you mentioned if you'll let us know more details.

    The thread's now marked as resolved since it's been a while but just let us know if it's still an issue. We'll be here to help. :)

    Cheers,
    David

Reply

You must log in to post.

About this Plugin

  • MarketPress - WordPress eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.