data: 'quantity['+cart_id+']=' + (typeof(val) != 'undefined' ? val : 1),
public function edit() {
$this->load->language('checkout/cart');
$json = array();
// Update
if (!empty($this->request->post['quantity'])) {
foreach ($this->request->post['quantity'] as $key => $value) {
$this->cart->update($key, $value);
}
$this->session->data['success'] = $this->language->get('text_remove');
unset($this->session->data['shipping_method']);
unset($this->session->data['shipping_methods']);
unset($this->session->data['payment_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['reward']);
$this->response->redirect($this->url->link('checkout/cart'));
}
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
LIKE product['name']
. Как получается можно передать по какому именно имени искать товары? И смотря на каком товаре ты находишься от именно этого товара и отталкиваемся в поиске похожих, так? global $ava
header('Location: /sign-in.html');
var myWidth = 960;
var dick = false;
function resizeScrenn() {
if($(window).width() <= myWidth){
if (!dick){
$('.menu li').on('click', function() {
if($(this).children('.submenu').length > 0) {
$(this).children('.submenu').slideToggle(300);
} else {
return false;
}
}
);
dick = true;
};
} else {
return false;
}
};
resizeScrenn();
$(window).resize(function(){
resizeScrenn()
});