Razorpay - Removal Of Submit Form Option


On the checkout page we have integrated our payment gateway successfully and it is working fine. The flow of going through the payment process is as follows;

  • The payment gateway window will only be enabled if I check the terms and condition checkbox,
  • After checking the terms and condition the window is like the attached screenshot, where we have to click on submit my order
  • after clicking the submit my order we get the screenshot as attached;

Now the issue is we do not want this extra step to click on "Submit My order", the customer should directly get the payment gateway options.

After doing some research got the following help from Google;

To your submit button you need to add an event clicker which will call the showModal function.

<div id="submit" onclick="showModal()">Submit

But don't know how to get it done on CS-Cart.

Any help/guidance in this regard will be really appreciated.


Screenshot 2021-02-24 at 8.31.57 AM.png

Screenshot 2021-02-24 at 8.32.23 AM.png

Screenshot 2021-02-24 at 8.36.39 AM.png

It is hard to answer anything without code examination. You can try to use similar code under the button


Additionally add the following attribute to your tag


May thanks eCom for your response.

I tried with my limited capacity. I am attaching the php script for the same.

I gave the command but unfortunately was not able to make it happen.

Any help/guidance in that regard will be really appreciated.

Thanks in advance.


I did the following changes as per the attached.

Screenshot 2021-03-05 at 7.28.15 PM.png

I did the following changes as per the attached.

Has it solved your problem?

Yes I was able to remove it.

there was another php file which had the reference of "if loop". I removed that condition so that it goes directly to the next step rather than two hops; clicking the submit my for and then the iframe.

After doing the changes we are able to receive the iframe directly.

Thanks mate for your kind assistance.