Ruti
-
Публікації
14 -
З нами
-
Відвідування
Тип публікації
Профілі
Форум
Маркетплейс
Статті
FAQ
Наші новини
Магазин
Блоги
module__dplus_manager
Повідомлення, опубліковані користувачем Ruti
-
-
Первое что смущает, это form submission и навешенный ajax, можно обойтись чем то одним.
Второе, вот это data:$('input[name=email], input[name=password]') какая то хрень.
Подскажите как предать данные через ajax чтобы они были идентичны данным передачи методом post.
-
и ?
Пытался вот так:
$('#action-log').submit(function() {$.ajax({url: 'index.php?route=account/login',type: 'post',dataType: 'json',data:$('input[name=email], input[name=password]'),success: function(json) {$('.success, .warning, .attention, information, .error').remove();}});});Но он переходит по ссылке. -
-
Делаю выпадающую логин-панель в шапке. Нужно сформировать ajax запрос. HELP.
<form action="index.php?route=account/login" method="post" id="action-log"><label for="username">Ведите email</label><input type="text" name="email" /></p><p><label for="password">Введите пароль</label><input type="password" name="password" /></p><p class="remember"><input id="signin_submit" value="Sign in" type="submit"/><input type="hidden" name="redirect" value=""><input id="remember" name="remember_me" value="1" type="checkbox"/><label for="remember">Remember me</label></p><p class="forgot"> <a href="index.php?route=account/forgotten"id="resend_password_link">Forgot your password?</a> </p><p class="forgot-username"> <A id=forgot_username_linktitle="If you remember your password, try logging in with your email"href="#">Forgot your username?</A> </p></form> -
смотря каким модулем выводится блок на главной. В нем уже и копать настройки размера
Спасибо. Нашел.
-
Подскажите пожалуйста как изменить размеры изображения в блоке рекомендуемые на главной?
В админке пробовал менять значения, ничего не изменилось.
-
я обьяснял как сделать то, что указано в первом топике
сейчас куда то вдаль пошли за тем же халатом только с перламутровыми пуговицами
есть раздел платных услуг- сам не можешь, заплати и сделают... смысла не вижу лопатить тут код и скриншоты...все равно видно, что понимания нет...зачем мучаться?
я же сказал...все делается
1. правкой кода языковой переменной
2. версткой (файл css)
чего то куда то переносить...хз...не зачем..и бессмысленно...
опять же пройди по ссылке что давал и посмотри что там изменилось...
Все изменил атрибутом position. Спасибо за совет.
-
-
:?
И я о том же! :mellow:
-
И что тут править? Здесь только есть две метки %s куда sprintf бросает числа.
-
я вроде как не о cart.tpl писал...или не?
А че там именно править в cart.php?
class ControllerModuleCart extends Controller {
public function index() {$this->language->load('module/cart');if (isset($this->request->get['remove'])) {$this->cart->remove($this->request->get['remove']);unset($this->session->data['vouchers'][$this->request->get['remove']]);}// Totals$this->load->model('setting/extension');$total_data = array();$total = 0;$taxes = $this->cart->getTaxes();// Display pricesif (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {$sort_order = array();$results = $this->model_setting_extension->getExtensions('total');foreach ($results as $key => $value) {$sort_order[$key] = $this->config->get($value['code'] . '_sort_order');}array_multisort($sort_order, SORT_ASC, $results);foreach ($results as $result) {if ($this->config->get($result['code'] . '_status')) {$this->load->model('total/' . $result['code']);$this->{'model_total_' . $result['code']}->getTotal($total_data, $total, $taxes);}$sort_order = array();foreach ($total_data as $key => $value) {$sort_order[$key] = $value['sort_order'];}array_multisort($sort_order, SORT_ASC, $total_data);}}$this->data['totals'] = $total_data;$this->data['heading_title'] = $this->language->get('heading_title');$this->data['text_items'] = sprintf($this->language->get('text_items'),$this->cart->countProducts(),$this->currency->format($total)); ??????$this->data['text_total']= $this->language->get('text_items');$this->data['text_empty'] = $this->language->get('text_empty');$this->data['text_cart'] = $this->language->get('text_cart');$this->data['text_checkout'] = $this->language->get('text_checkout');$this->data['text_payment_profile'] = $this->language->get('text_payment_profile');$this->data['button_clear'] = $this->language->get('button_clear');$this->data['button_remove'] = $this->language->get('button_remove');$this->load->model('tool/image');$this->data['products'] = array();foreach ($this->cart->getProducts() as $product) {if ($product['image']) {$image = $this->model_tool_image->resize($product['image'], $this->config->get('config_image_cart_width'), $this->config->get('config_image_cart_height'));} else {$image = '';}$option_data = array();foreach ($product['option'] as $option) {if ($option['type'] != 'file') {$value = $option['option_value'];} else {$filename = $this->encryption->decrypt($option['option_value']);$value = utf8_substr($filename, 0, utf8_strrpos($filename, '.'));}$option_data[] = array('name' => $option['name'],'value' => (utf8_strlen($value) > 20 ? utf8_substr($value, 0, 20) . '..' : $value),'type' => $option['type']);}// Display pricesif (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {$price = $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id'], $this->config->get('config_tax')));} else {$price = false;}// Display pricesif (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {$total = $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id'], $this->config->get('config_tax')) * $product['quantity']);} else {$total = false;}$this->data['products'][] = array('key' => $product['key'],'thumb' => $image,'name' => $product['name'],'model' => $product['model'],'option' => $option_data,'quantity' => $product['quantity'],'price' => $price,'total' => $total,'href' => $this->url->link('product/product', 'product_id=' . $product['product_id']),'recurring' => $product['recurring'],'profile' => $product['profile_name'],);}// Gift Voucher$this->data['vouchers'] = array();if (!empty($this->session->data['vouchers'])) {foreach ($this->session->data['vouchers'] as $key => $voucher) {$this->data['vouchers'][] = array('key' => $key,'description' => $voucher['description'],'amount' => $this->currency->format($voucher['amount']));}}$this->data['cart'] = $this->url->link('checkout/cart');$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/cart.tpl')) {$this->template = $this->config->get('config_template') . '/template/module/cart.tpl';} else {$this->template = 'default/template/module/cart.tpl';}$this->response->setOutput($this->render());}} -
редактируй текстовой файл cart.php , картинка- вставляется версткой
редактируй текстовой файл cart.php , картинка- вставляется версткой
Уже все перепробовал. В cart.tpl вот это <span id="cart-total"> привязано к javascript и если с него вытащить php код- начинается фигня.
-
Модуль "запомнить меня" в логин панеле
в Поиск модулей
Опубліковано:
Посоветуйте пожалуйста что-нибудь в этой теме.