"Hypermarket" design theme v. 1.5.3

Cart

image

Button layout: "Cart" Selector to add the button: #s-cart-page .s-cart-form .s-totals-table tbody .s-cart-checkout td Selector of the "Buy" section/form in the product card: .s-cart-form Method to add the button to the selector: append() HTML template for the button:

<div class="ya-pay-separator"><span>or quickly with Yandex</span></div>

#BUTTON#
<style>
##BUTTON_ZONE# {
      margin: 45px 0px 30px;
}
##BUTTON_ZONE# .ya-pay-separator
{
    position: relative;
    top: -23px;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    content: "";
    background-color: #ced8e1;
}
##BUTTON_ZONE# .ya-pay-separator span {
    font-size: 14px;
    line-height: 1.28571;
    position: absolute;
    z-index: 2;
    display: inline-block;
    padding: 0 15px;
    color: #7d858c;
    background: #ffffff;
    left: calc(50% - 99px);
    top: -8px;
}
.s-cart-page .s-cart-total .s-table-section .s-totals-table {
    min-width: 300px;
}
.s-cart-page .s-cart-total .s-table-section .s-totals-table .s-cart-checkout .s-submit-button {
   width: 100%;
}
</style>