A
A
a_palanski2018-05-12 13:30:17
1C-Bitrix
a_palanski, 2018-05-12 13:30:17

Bitrix how to make a permanent form of payment?

Good afternoon, there will be only one product on the site, the sale of a subscription. Epe do form purchase? Those. the user clicked on the buy button and in the pop-up window there was a payment form right away?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2018-05-12
@anton99zel

You need to use

if (CModule::IncludeModule("catalog")) {
  if ($PRODUCT_ID) {
    Add2BasketByProductID(
      $PRODUCT_ID,
      1,
      false
    );
  }
}

This will add the product to the cart, but you can bypass the cart (links below)
where $PRODUCT_ID - product ID
You will also need a form that will send a post request to the server and return true if the order is successfully entered into the admin panel.
In the form, make the name, mail and phone fields and a hidden item ID field. All do AJAX.
The order is placed as follows: (according to the principle of "1 click" + payment)
http://iaroslav.ru/create-order-for-1s-bitrix-p...
or for d7
https://dev.1c-bitrix.ru /learning/course/?COURSE_I
... general.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question