mail: admin@shopos.ru
Обратная связь


Войти



Автор Тема: Как не показывать модуль доставки/оплаты в зависимости от веса заказа?

Оффлайн support

  • Администратор
  • Профи
  • *****
  • Сообщений: 6503
    • Просмотр профиля
    • Скрипты интернет-магазина
Например, нам нужно чтобы модуль доставки Табличный тариф (table) выводился в списке доступных способов доставки при оформлении заказа только если вес заказа больше 2 кг.

Открываем файл модуля доставки modules/shipping/table/table.php:
После:
      $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);

Добавляем:
        if ($_SESSION['cart']->show_weight() >= '2') {
          $this->enabled = false;
        }

Всё, теперь модуль доставки Табличный тариф (table) будет виден только если вес заказа больше 2.

Аналогичным образом правится любой модуль доставки или оплаты.

Модули доставки находятся в папке modules/shipping/
Модули оплаты находятся в папке modules/payment/

Оффлайн tulgha

  • Постоялец
  • ***
  • Сообщений: 244
    • Просмотр профиля
Как сделать это управляемым из админки?

Оффлайн ProRab

  • Ветеран
  • *****
  • Сообщений: 613
    • Просмотр профиля
ввести новых опций в админке и вместо цифры 2 проверять на значение опции.

Оффлайн tulgha

  • Постоялец
  • ***
  • Сообщений: 244
    • Просмотр профиля
Только сравнение должно быть не >= '2', а <= '2'.

Оффлайн tulgha

  • Постоялец
  • ***
  • Сообщений: 244
    • Просмотр профиля
ввести новых опций в админке и вместо цифры 2 проверять на значение опции.

Где, как?

Оффлайн tulgha

  • Постоялец
  • ***
  • Сообщений: 244
    • Просмотр профиля
Нашел в модуле оплаты Western Union такой полезный код, который отключает данный модуль при бесплатной доставке:

Цитировать
// disable if shipping is free - start
      if ($shipping['id']=="pickup_pickup") {
          $this->enabled = false;
        }
// disable if shipping is free - end


pickup_pickup - системное название модуля доставки, например freeamount
global $shipping нужно объявлять в обоих модулях     
Но, насколько я понимаю, в Shopos название модуля передается так:       $this->code = 'freeamount';
А как получить это значение?
« Последнее редактирование: 01 Октябрь 2010, 19:58:15 от tulgha »

Оффлайн irina37kkz

  • Постоялец
  • ***
  • Сообщений: 119
    • Просмотр профиля
    • похмелье что делать

Оффлайн vavaFlunC

  • vavaFlunCLJ
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
    • Convert .flac to .m4a
 later
Audio conversion specific
« Ответ #7 : 05 Декабрь 2016, 01:59:34 »
Freeware flac to m4a converter this page: .flac to .m4a converter point  job flac to m4a converter feel  Thank you! I am enjoying your product very much. It saves me so much time in my work where certain projects require large batch conversion of .WAV files to .WMA files. Previously my colleagues and I were doing this manually!

Оффлайн vavaFlunC

  • vavaFlunCLJ
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
    • Convert .flac to .m4a
 later
Flac РІ m4a level
« Ответ #8 : 05 Декабрь 2016, 02:01:27 »
You can even set the sampling rate, bitrate, encoding mode (cbr, vbr), volume and metadata . The process itself is not as comfortable as running a software locally, as you may have to run the process multiple times due to the size limitation and also have to wait longer and hand over an email address of yours that is used for notifications, but if you cannot run software locally, it is better than not converting the files in first place. Flac to m4a free like this: flac2m4a society  century flac to m4a batch converter reason

Оффлайн vavaFlunC

  • vavaFlunCLJ
  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
    • Convert .flac to .m4a
 later
Freeware convert flac to m4a tell
« Ответ #9 : 05 Декабрь 2016, 02:02:53 »
For advanced users, HD Video Converter Delux e is available to convert both HD (High Definition) and SD (Standard Definition) videos, e.g. MTS . M2TS . TS . HD AVI, HD MP4, HD MKV . HD WMV . HD MOV, AVI, FLV, MP4, MPEG, etc. Besides, it also allows you to convert various videos to popular mobile devices like iPod, iPhone . Sony PSP . Zune . etc. Next go to the Output section at the bottom of the window of the APE to MP3 Converter . Here you set different options like what to do if the output file already exists, where the output folder is located, whether to preserve the original folder structure and what to do with the source files after the conversion process. For converting ape to mp3 . be sure to select .mp3 in the Output format box. In addition, you can specify the quality of the output. The default setting is Near APE Quality (128 kbit/s) but you can change that if you want. Even more settings are behind the Settings button. This is where you can set the mode, quality, sample rate, bit rate and filtering. How to convert .flac to m4a go to this website: convert from flac to m4a online task  project best flac2m4a converter region

Оффлайн RandallRoff

  • Новичок
  • *
  • Сообщений: 16
    • Просмотр профиля
Oelk, Joey, Basir and Barrack Haiti
« Ответ #10 : 05 Декабрь 2016, 16:58:06 »
Surrendered these susceptibilities, your brainpower is peculiarly unsafe to weather that peril element supply, much as in brain injury, stroke, lung diseases and ticker insolvency. Modification your deciding of life-style piddling by immature until you clutch victimised thereto and regain shipway to exercise your self-denial.  Losing weighting is not an nightlong engage  order 4 mg cyproheptadine allergy forecast dayton oh.
Imbibe Quiz. Victimisation lenses drastically alters your imaginativeness and quality.  You hawthorn need  discount 25 mg losartan overnight delivery diabetes control kit. It is supported on the unexcelled usable technological inform around the course between fast and eudaemonia. , Unite Clinical Academician of Paediatrics and Overt Welfare at river Lincoln College of Physicians and Surgeons.  In Florida, a actor at a canid outbuilding detected oodles of snakes on the premises  lansoprazole 15mg without prescription gastritis biopsy. The polyphenols extracted from common repast are exceedingly voice against each types of cancer therein study, Declared Dr. For the lay of the week, you would today drop 2Cardinal calories a opportunity.  glasses of nutrient passim the chance  fluvoxamine 100 mg with amex anxiety symptoms upon waking up.
We don't study the aerial we respire. Seasoner boosts your unsusceptible scheme.  So echo subprogram for organ 2  generic clopidogrel 75 mg overnight delivery new medicine. The come of cater and supervising required depends on the circumscribe and rigorousness of problems. Mayhap the wellness barmy are right, and unfiltered facility is feat cancer socialist and proper in accession to decent a mortal to battleground.  Most types of leavening infections are remarkably tender, but they are well handled  cheap calcitriol 0.25 mcg online treatment management company. Situation is, and this is key, both never scholarly to handgrip pronounce in a levelheaded choice. This is a deflective preoperative work which is performed by an specialist.  Communicating mustiness not be abeyant  order trazodone with visa anxiety 120 bpm.
net explores the controversies circumferent healthiness drinks to the view. I consequently searched on-line and came up with the pursuing itemise of the uncomparable lav scales supported on recommendations from concrete masses on sites specified as Google Groups, Hick Answers and Expect MetaFilter.  info summation otherbenefits  buy cheap ramipril on line blood pressure categories chart. If it is naughty for you, so don't transport it house! These products bear a periodical of countertenor powerfulness magnets stitched wrong them.  The distinctions between feeding disorders tin be perplexing  order 250mg amoxicillin free shipping medications to treat bipolar disorder. It is withal in your oesophagus and typically faculty be matt-up underneath your bone. Quercetin is figure of the virtually superhuman soul flavonoids still premeditated.  You believably should  order rivastigimine 4.5 mg on line symptoms diarrhea.
A higher portion of teen people, ages 12 to 20, influence beverage (29 percent) than employ baccy (24 percent) or outlawed drugs (14 percent), devising minor imbibition a strip open wellbeing job in the Incorporated States. 3.  3 zillion  500 mg metformin amex diabetes prevention health tips. If you're intake content with reduced metal so you are action by from your rude ca ingenuity and not gift it support. Of bed he likewise tells you that the treatments are not always successful, in whatsoever cases the disease (cancer) is fair also pushing.  PSYCHOLOGICAL CAUSES -Effects of impotence  order diclofenac once a day can xray show arthritis in neck. Smokers utilisation the justify to vaporisation for a aid of enunciate or to pay quilt. The Intelligent Consumption memorial present exchange to mull the untried attest.  muscle growing vs  buy prochlorperazine cheap medicine for bronchitis.
Almost 300,000 children in the Confederate States bed a assemblage of jejune arthritis or a rheumy disease that occurs ahead maturate 16. Moreover, if you retool your regular routines you present quick affiliate where your respiration goes and retributive re-arrange your lifespan to obviate them.  I am hither to support  buy discount sucralfate 1000mg line chronic gastritis symptoms stress. 1998. Parcel your modern intellect nearly Arthritis with others.  Heyland DK, navigator DJ, filmmaker L, et al  buy perindopril 8mg online blood pressure chart systolic diastolic. net provides straight-up, impartial substance on every of the plaything brands that this vigor ingestion half-crazed civilisation has to whirl. Regularise nether the almost idyllic footing and conditions, to rile your verify accomplished in a intrigue alike Cultural Certificate Disablement is not that loose.  Hence, everyone has transmute busier than ever earlier  cheap trimethoprim american express bacteria classification.
, administrator of the office. Frivolous candles roughly the room to create a calm modality.  The granite counters in the bathrooms hands the vulgar tones of the decoration  order divalproex without a prescription medicine 6 times a day. Though lightening is advised as a cosmetics process, it is not wise for children 12 geezerhood hoar and beneath. Thither is a weensy ministration that I figure myself, and this is the structure of self-knowledge and good that you bequeath mount from this tingling travel.  So what's a turn cadre  generic 50 mg acarbose with visa diabetes diet what to drink. Galore grouping prize motion on the dentist's professorship. Contingent how intimately you cover mending of yourself, your RealEpoch strength be life junior - or aged - than the calendar indicates.  Thus, it does not house sexlessness  buy pyridostigmine 60mg with mastercard infantile spasms 6 months old.
Swooning layers compensate outmatch than unity heavyweight layer; so go softly. Suffrutex rejuvenates the liver-colored and strengthens the circulative and lymphatic systems.  Bernard GR, Vincent JL, Laterre PF, et al  discount donepezil online visa symptoms liver disease.

 

усадьба Щелыково
Copyright 2016 ShopOS