Как создать самогенерационную страницу соглашения на странице оформления заказа? - PullRequest
0 голосов
/ 23 февраля 2019

Мне нужно создать документ соглашения на лету с информацией о клиенте, такой как имя, адрес и т. Д.

Клиент должен установить флажок, чтобы подтвердить, прежде чем приступить к процессу оплаты.

Скорее всего, это страница условий и положений с информацией о клиентах.

Возможно ли это?

Ниже вы можете увидеть пример этого, чтобы найти, какие части файла будут заполнены на лету:

Все красные части должны бытьзаполнены информацией о клиенте и корзине. Форма соглашения

<div style="font-family: Arial, Helvetica, sans-serif; font-size: 11pt; line-height: 18px;">
<p>INFORMATION FORM</p>
<p>1. SELLER INFORMATION</p>
<table style="width: 100%;">
    <tbody>
        <tr>
            <td style="width: 130px;">Company</td>
            <td style="width: 10px;">:</td>
            <td>Placeholder &nbsp;(Referred to as "Seller")</td>
        </tr>
        <tr>
            <td style="width: 130px;">Address</td>
            <td style="width: 10px;">:</td>
            <td>Placeholder</td>
        </tr>
        <tr>
            <td style="width: 130px;">Phone</td>
            <td style="width: 10px;">:</td>
            <td>Placeholder</td>
        </tr>
        <tr>
            <td style="width: 130px;">E-mail</td>
            <td style="width: 10px;">:</td>
            <td>Placeholder</td>
        </tr>
    </tbody>
</table>
<br>
<p>2. CLIENT INFORMATION</p>
<table style="width: 100%;">
    <tbody>
        <tr>
            <td style="width: 130px;">Name / Sirname</td>
            <td style="width: 10px;">:</td>
            <td style="color: red;">**********</td>
        </tr>
        <tr>
            <td style="width: 130px;">Shipping Address</td>
            <td style="width: 10px;">:</td>
            <td style="color: red;">**********</td>
        </tr>
        <tr>
            <td style="width: 130px;">Phone</td>
            <td style="width: 10px;">:</td>
            <td style="color: red;">**********</td>
        </tr>
        <tr>
            <td style="width: 130px;">E-mail</td>
            <td style="width: 10px;">:</td>
            <td style="color: red;">**********</td>
        </tr>
    </tbody>
</table>
<br>
<p>4. AGREEMENT SUBJECT AND THE PRODUCT SPECS</p>
<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
    <tbody>
        <tr>
            <td style="height: 25px; border: 1px solid #808080;"><b>Product</b></td>
            <td style="width: 50px; text-align: center; height: 25px; border: 1px solid #808080;"><b>Quantity</b></td>
            <td style="width: 150px; text-align: center; height: 25px; border: 1px solid #808080;"><b>Price</b></td>
            <td style="width: 150px; text-align: center; height: 25px; border: 1px solid #808080;"><b>Total</b></td>
        </tr>
    </tbody>
</table>

<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
<tbody>
<tr>
<td style="height: 25px; border: 1px solid #808080; color: red;">Arduino Uno R3 SMD Klon CH340 Chip</td>
<td style="width: 50px; text-align: center; height: 25px; border: 1px solid #808080; color: red;">*</td>
<td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
<td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
</tr>
</tbody>
</table>

<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
    <tbody>
        <tr>
            <td style="height: 25px; border: 1px solid #808080; color: red;">LattePanda Windows 10 2G/32GB</td>
            <td style="width: 50px; text-align: center; height: 25px; border: 1px solid #808080; color: red;">*</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
        </tr>
    </tbody>
</table>

<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
    <tbody>
        <tr>
            <td style="height: 25px; border: 1px solid #808080; color: red;">Raspberry Pi 3 Model B+ Plus</td>
            <td style="width: 50px; text-align: center; height: 25px; border: 1px solid #808080; color: red;">*</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
        </tr>
    </tbody>
</table>

<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
    <tbody>
        <tr>
            <td style="height: 25px; border: 1px solid #808080; color: red;">BBC Micro:Bit Dev Card</td>
            <td style="width: 50px; text-align: center; height: 25px; border: 1px solid #808080; color: red;">*</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
            <td style="text-align: center; height: 25px; border: 1px solid #808080; width: 150px; color: red;">$***</td>
        </tr>
    </tbody>
</table>

<table style="border: 1px solid #808080; width: 100%; border-collapse: collapse; line-height: 24px; font-size: 12px;" cellspacing="2">
    <tbody>
        <tr>
            <td colspan="3" style="border: 1px solid #808080; height: 25px;">Shipping</td>
            <td colspan="1" style="border: 1px solid #808080; height: 25px; text-align: right; width: 150px; color: red;"><b>************</b></td>
        </tr>
        <tr>
            <td colspan="3" style="border: 1px solid #808080; height: 25px;">Payment Method</td>
            <td style="text-align: right; border: 1px solid #808080; height: 25px; width: 150px; color: red;" colspan="1">************</td>
        </tr>
        <tr>
            <td colspan="3" style="border: 1px solid #808080; height: 25px;"><b>Total</b></td>
            <td colspan="1" style="border: 1px solid #808080; height: 25px; text-align: right; width: 150px; color: red;"><b>************</b></td>
        </tr>
    </tbody>
</table>

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...