Forum Replies Created

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

    (@lakhai)

    And now for some reason when I try to normally pay for the order form the checkout page I have the required fields error too…

    Thread Starter lakhai

    (@lakhai)

    Neither of those worked, “place_order” and “pay” both give “action failed” error

    Thread Starter lakhai

    (@lakhai)

    Actually I was using place_order, which is what my old form had. Let me try that.

    Thread Starter lakhai

    (@lakhai)

    Nope, still action failed…

    Thread Starter lakhai

    (@lakhai)

    I already had this working in the past, after removing all the required fields you could checkout with only the payment gateway and nonce field.
    My payment gateways are “Jigoshop Stripe” and “Account Funds” both working perfectly too.
    I can provide whatever detail you need, just let me know.

    Thread Starter lakhai

    (@lakhai)

    Anybody has an idea?

    Thread Starter lakhai

    (@lakhai)

    Wow, that was a quick response!
    Alright, so I had this working on a very old version of the plugin.
    What I did was explained a bit better here: https://stackoverflow.com/questions/35548357/jigoshop-custom-checkout-form
    After this I experimented a bit (and remembered some, too) and had to remove via:

    $billing_fields = array(
    	 array( 'name'=>'billing-first_name', 'label' => __('First Name', 'jigoshop'), 'placeholder' => __('First Name', 'jigoshop'), 'required' => false, 'class' => array('form-row-first') ),
    	 array( 'name'=>'billing-last_name', 'label' => __('Last Name', 'jigoshop'), 'placeholder' => __('Last Name', 'jigoshop'), 'required' => false, 'class' => array('form-row-last') ),
    	 array( 'name'=>'billing-address', 'label' => __('Address', 'jigoshop'), 'placeholder' => __('Address', 'jigoshop'), 'required' => false ),
    	 array( 'name'=>'billing-city', 'label' => __('City', 'jigoshop'), 'placeholder' => __('City', 'jigoshop'), 'required' => false ),
    	 array( 'validate' => 'postcode', 'format' => 'postcode', 'name'=>'billing-postcode', 'label' => __('Postcode', 'jigoshop'), 'placeholder' => __('Postcode', 'jigoshop'), 'required' => false, 'class' => array('form-row-first') ),
    	 array( 'type'=> 'country', 'name'=>'billing-country', 'label' => __('Country', 'jigoshop'), 'required' => false, 'class' => array('form-row-last') ),
    	 array( 'name'=>'billing-email', 'validate' => 'email', 'label' => __('Email Address', 'jigoshop'), 'placeholder' => __('***@yourdomain.com', 'jigoshop'), 'required' => false )
    	 );
    	 jigoshop_checkout::instance()->billing_fields = $billing_fields;

    Worked a few times (to not give me an error for missing fields, but then it didn’t work anymore…
    Apart from that, I changed the nonce field to pay and I got an “Incorrect action” error, which on the old plugin it didn’t work either. I also added a hidden input field with the name submit_action with the value place_order but still didn’t change the action.

    What I need is to just choose either “account funds” or “credit cards” (which needs card details such as number, code, etc.) and with only this it’ll pay for the order and go directly to the “thank you” page.

Viewing 7 replies - 1 through 7 (of 7 total)