module.exports = {
async up (queryInterface, Sequelize) {
await queryInterface.addColumn("table", "field", {
type: Sequelize.INTEGER
defaultValue: 0
})
},
async down (queryInterface, Sequelize) {
await queryInterface.removeColumn("table", "field");
}
};
$('.modal').on('wheel', function (e) {
e.stopPropagation();
})
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Origin: http://yourdomain.ru');
<button data-name="iPhone X">Заказать iPhone X</button>
<button data-name="iPhone 8">Заказать iPhone 8</button>
<input type="hidden" name="product-name">
$('button').on('click', function() {
var name = $(this).data('name');
$('[name="product-name"]').val(name);
});
<div class="row">
<div class="col-xs-2 col-xs-offset-1"></div>
<div class="col-xs-2"></div>
<div class="col-xs-2"></div>
<div class="col-xs-2"></div>
<div class="col-xs-2"></div>
</div>
let basket = $(".cookieSpan").html();
$.cookie("basket_cart", basket, {expires: 1, path: '/', domain: 'shop.ekv.kz'});
$('.click_pay').click(function(){
let basket = $(".cookieSpan").html(); // здесь пытаюсь перезаписать куки
$.cookie("basket_cart", basket, {expires: 1, path: '/', domain: 'shop.ekv.kz'});
});