Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

les1977

Новичок
  
  • Posts

    21
  • Joined

  • Last visited

Recent Profile Visitors

889 profile views

les1977's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

-1

Reputation

  1. День добрый всем! Возник вопрос как сгделать скидки по купонам на сам товар только но не на опцию т.к. опцию не мы гделаем плюсом к товару например крыло по 9000 а опцию окраски +3000 не мы гделаем как сгделать чтоб купон гдействовал только на крыло
  2. забыл не саму папку архива а все что у нее в внутри в корень
  3. <div id="cart"><i class="fa"><img src="../../cart.png"></i><span id="cart-total"><?php echo $items; ?></span></div> <div id="cart_content"> <div class="cart_content"> <?php if ($products || $vouchers) { ?> <div class="box-heading"><?php echo $text_your_cart; ?></div> <div class="mini-cart-info"> <div class="address"><br /><?php if(isset($store_hours)) { echo $store_hours; } ?></div><br /> <!-- <div class="payment"> <i class="fa fa-cc-visa"></i> <i class="fa fa-cc-mastercard"></i> </div> <br />--> <table> <?php foreach ($products as $product) { ?> <tr> <td class="image"><?php if ($product['thumb']) { ?><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" /></a><?php } ?></td> <td class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a> <div><?php foreach ($product['option'] as $option) { ?> - <small><?php echo $option['name']; ?> <?php echo $option['value']; ?></small><br /><?php } ?></div> </td> <td class="quantity"> <div class="cart"> <div class="quantity quantity_<?php echo $product['cart_id'] ?>"> <input id="targ1_<?php echo $product['cart_id'] ?>" type="text" value="<?php echo $product['quantity']; ?>" name="quantity[<?php echo $product['cart_id']; ?>]" oninput="cart.update('<?php echo $product['cart_id']; ?>', $(this).val(), '<?php echo $product['minimum']; ?>')" oninput="recalculateprice('<?php echo $product['cart_id']; ?>', '<?php echo $product['minimum']; ?>');" class="quantity_<?php echo $product['cart_id'];?>" /> <span> <i class="fa fa-plus" onclick="quantity('<?php echo $product['cart_id']; ?>', '<?php echo $product['minimum'] ?>', '+'); cart.update('<?php echo $product['cart_id']; ?>', $(this).parent().parent().find('#targ1_<?php echo $product['cart_id'] ?>').val(), '<?php echo $product['minimum']; ?>'); return false;"></i> <i class="fa fa-minus" onclick="quantity('<?php echo $product['cart_id']; ?>', '<?php echo $product['minimum'] ?>', '-'); cart.update('<?php echo $product['cart_id']; ?>', $(this).parent().parent().find('#targ1_<?php echo $product['cart_id'] ?>').val(), '<?php echo $product['minimum']; ?>'); return false;"></i> </span> </div> </div> <?php $zhopa = $product['total']; $zhopa2 = (int)$zhopa/$product['quantity']; ?> </td> <td class="price_<?php echo $product['cart_id']; ?>" data-price="<?php echo $zhopa2;?>"><?php echo $zhopa; ?></td> <td class="remove"><i class="fa fa-times" onclick="cart.remove('<?php echo $product['cart_id']; ?>')" ></i></td> </tr> <?php } ?> <?php foreach ($vouchers as $voucher) { ?> <tr> <td class="image"></td> <td class="name"><?php echo $voucher['description']; ?></td> <td class="quantity">x&nbsp;1</td> <td class="total"><?php echo $voucher['amount']; ?></td> <td class="remove"><img src="catalog/view/theme/default/image/remove-small.png" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" onclick="(getURLVar('route') == 'checkout/cart' || getURLVar('route') == 'checkout/checkout') ? location = 'index.php?route=checkout/cart&remove=<?php echo $voucher['key']; ?>' : $('#cart_content').load('index.php?route=common/cart&remove=<?php echo $voucher['key']; ?>' + ' #cart > *');" /></td> </tr> <?php } ?> </table> </div> <div class="mini-cart-total"> <div class="continue" onclick="$('#cart, #cart_content').removeClass('show');"><?php echo $text_continue_shopping; ?></div> <table> <!-- <?php foreach ($totals as $total) { ?> <tr> <td class="right"><b><?php echo $total['title']; ?>:</b></td> <td class="right"><?php echo $total['text']; ?></td> </tr> <?php } ?> --> <tr><td><b><?php echo $text_total; ?></b></td> <td><b><?php echo $total_summ; ?></b></td></tr> </table> </div> <?php if(!isset($show_quick_order)) { ?> <div class="checkout"> <input type="button" value="<?php echo $text_checkout; ?>" class="button" onclick="location='<?php echo $checkout; ?>'" /> </div> <?php } ?> <?php } else { ?> <div class="empty"><?php echo $text_empty; ?></div> <?php } ?> </div> <?php if(isset($show_quick_order)) { ?> <div class="quick_order"> <div class="box-heading"><?php echo $text_quick_order; ?></div> <div><input type="text" value="<?php if($customer_name) { echo $customer_name; } ?>" placeholder="<?php echo $order_name_text; ?>" name="customer_name" /></div> <div><input type="tel" value="<?php if($customer_phone) { echo $customer_phone; } ?>" placeholder="<?php echo $order_phone_text; ?>" name="customer_phone" class="customer_phone" /></div> <?php if($order_mail) { ?> <div><input type="email" value="<?php if($customer_mail) { echo $customer_mail; } ?>" placeholder="<?php echo $order_mail_text." не обязательно..."; ?>" name="customer_mail" /></div> <?php } ?> <?php if($order_delivery) { ?> <div><textarea placeholder="<?php echo $order_delivery_text; ?>" name="customer_delivery"></textarea></div> <?php } ?> <?php if($order_comment) { ?> <div style="width:200px; text-align:left;"> <div><label >Выберите способ оплаты! </label></div> <div><input type="checkbox" id="checkbox-2" class="checkbox" name="nal" checked/><label for="checkbox-2"> Оплаи наличными </label></div> <div><input type="checkbox" id="checkbox-1" onclick="proverka();" class="checkbox" name="karta"/><label for="checkbox-1"> Оплаи по карте </label></div> </div> <?php if(isset($social_visa)) { ?><i class="fa fa-cc-visa"></i><?php } ?> <?php if(isset($social_master)) { ?><i class="fa fa-cc-mastercard"></i><?php } ?> <div><textarea placeholder="<?php echo $order_comment_text; ?>" id="zak_kom" name="customer_comment" ></textarea></div> <?php } ?> <div class="quick_order_button"><input type="button" value="Отправить заказ" class="button" <?php if(!isset($quick_order_function)) { ?>onclick="send_quick_order();"<?php } else { ?>onclick="add_quick_order();"<?php } ?>/></div> </div> <?php } ?> <script type="text/javascript" src="catalog/view/theme/fastfood/js/jquery.maskedinput.min.js"></script> <script> $('body').on('focus', '.customer_phone', function(){ $(this).mask('<?php echo $quick_order_phone_mask; ?>'); }); </script> <script language="javascript"> function proverka(){ if (document.getElementById("karta").checked == true){ document.getElementById("zak_kom").value="Оплаи по карте! "+document.getElementById("zak_kom").value; } if (document.getElementById("karta").checked == false){ if (document.getElementById("zak_kom").value.indexOf("Оплаи по карте!")!=-1){ document.getElementById("zak_kom").value=document.getElementById("zak_kom").value.replace("Оплаи по карте!",""); } } } </script> </div> <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="z-index:20999;"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><center> <h4 class="modal-title" id="myModalLabel" style="color:red;"><img src="../../otl.jpg" style="margin-right:20px;">Спасипотому что за Ваш заказ!</h4></center> </div> <div class="modal-body" style="color:black;"><center> Ожидайте в течении 5 минут с вами свяжется менеджер для подтвержгдения заказа.<br/> Важно! Если с вами не связались обратитесь в службу <br/><b>подгдержки сайи www.ДосивкаЕды.онлайн по телефону.: ‎89828808210</b></center> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button> </div> </div> </div> </div>
  4. <?php class ControllerCommonFooter extends Controller { public function index() { $this->load->language('common/footer'); $data['scripts'] = $this->document->getScripts('footer'); $data['text_information'] = $this->language->get('text_information'); $data['text_service'] = $this->language->get('text_service'); $data['text_extra'] = $this->language->get('text_extra'); $data['text_contact'] = $this->language->get('text_contact'); $data['text_return'] = $this->language->get('text_return'); $data['text_sitemap'] = $this->language->get('text_sitemap'); $data['text_manufacturer'] = $this->language->get('text_manufacturer'); $data['text_voucher'] = $this->language->get('text_voucher'); $data['text_affiliate'] = $this->language->get('text_affiliate'); $data['text_special'] = $this->language->get('text_special'); $data['text_account'] = $this->language->get('text_account'); $data['text_order'] = $this->language->get('text_order'); $data['text_wishlist'] = $this->language->get('text_wishlist'); $data['text_newsletter'] = $this->language->get('text_newsletter'); $this->load->model('catalog/information'); $data['informations'] = array(); foreach ($this->model_catalog_information->getInformations() as $result) { if ($result['bottom']) { $data['informations'][] = array( 'title' => $result['title'], 'href' => $this->url->link('information/information', 'information_id=' . $result['information_id']) ); } } $data['contact'] = $this->url->link('information/contact'); $data['return'] = $this->url->link('account/return/add', '', 'SSL'); $data['sitemap'] = $this->url->link('information/sitemap'); $data['manufacturer'] = $this->url->link('product/manufacturer'); $data['voucher'] = $this->url->link('account/voucher', '', 'SSL'); $data['affiliate'] = $this->url->link('affiliate/account', '', 'SSL'); $data['special'] = $this->url->link('product/special'); $data['account'] = $this->url->link('account/account', '', 'SSL'); $data['order'] = $this->url->link('account/order', '', 'SSL'); $data['wishlist'] = $this->url->link('account/wishlist', '', 'SSL'); $data['newsletter'] = $this->url->link('account/newsletter', '', 'SSL'); $data['powered'] = sprintf($this->language->get('text_powered'), $this->config->get('config_name'), date('Y', time())); // Whos Online if ($this->config->get('config_customer_online')) { $this->load->model('tool/online'); if (isset($this->request->server['REMOTE_ADDR'])) { $ip = $this->request->server['REMOTE_ADDR']; } else { $ip = ''; } if (isset($this->request->server['HTTP_HOST']) && isset($this->request->server['REQUEST_URI'])) { $url = 'http://' . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI']; } else { $url = ''; } if (isset($this->request->server['HTTP_REFERER'])) { $referer = $this->request->server['HTTP_REFERER']; } else { $referer = ''; } $this->model_tool_online->addOnline($ip, $this->customer->getId(), $url, $referer); } if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/footer.tpl')) { return $this->load->view($this->config->get('config_template') . '/template/common/footer.tpl', $data); } else { return $this->load->view('default/template/common/footer.tpl', $data); } } } весь footer.php
  5. в footer.php в контроллере ничего подобного нет по поиску в catalog есть только в footer.tpl
  6. http://xn--80aafgdf7a3a1ak9h.xn--80asehdb/10/index.php?route=product/category&path=73 хочу чтоб если в админке в модуле шаблона я мог сивить оплату по карте или вообещё убирать
  7. Не могу понять куда вклюлить чтоб была назначена переменная <?php if(isset($social_visa)) { ?><i class="fa fa-cc-visa"></i><?php } ?> <?php if(isset($social_master)) { ?><i class="fa fa-cc-mastercard"></i><?php } ?> в cart.tpl она им естественно не назначена!!! не могу найти ггде..... эти переменные в footer.tpl есть $social_visa
  8. http://xn--80aafgdf7a3a1ak9h.xn--80asehdb/10/index.php?route=product/category&path=73 вообещём суть проси нужно чтоб на мобильном отбражалось как на компе.... кто что скажет?
  9. Добрый вечер не могу понять ггде прописана функция <button type="button" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger" onclick="cart.remove('<?php echo $product['cart_id']; ?>');"><i class="fa fa-times-circle"></i></button> </span></div></td> onclick="cart.remove( в корзине и еещё вообещё не врублюсь как исполняется эи <button type="submit" data-toggle="tooltip" title="<?php echo $button_update; ?>" hidden><i class="fa fa-refresh"></i></button> файл cart.tpl
  10. перешел все ок просто вопрос в чем нужно эту страницу настроить т.е подклюлить модуль обратной связи который усиновлен http://tdtexprom.ru/index.php?route=information/information&information_id=11 и прописать его
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.