Jump to content

Search the Community

Showing results for tags 'shipping method'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 7 results

  1. Hello, I have a client buying from Portugal and when he gets to the last checkout page after selecting the Shipping Method, the page shows up blank (nothing to choose from) and it doesn't show the payment method page. It only shows the website menu and header. I have Prestashop 1.7.3. Before this, my client only saw a 500 Server Error when checking out. I have no idea how to fix this, any suggestions? Thanks so much!
  2. Hi! I'm looking for the field in the prestashop database with the customer's comment of his order, that writes at "Shipping method" step. Screenshot: I need to retrieve that comment for an php application, but i can't find it in the database, where is that table/column? Thanks, Miguel
  3. Hi I would like to remove the shipping method. Any ideas? My products are NOT virtual. Thanks Gonzalo
  4. Tengo creado un modulo el cual me muestra mi shipping method pero este esta realizado en base al tipico checout de prestashop que es paso a paso, pero acabo de toparme con un cliente que tiene en una sola pagina su inicio de sesion con metodo de envio y metodo de pago. Asi es como esta el check out de mi cliente: Que hook puedo ocupar para que aparezca mi shipping method aparezca?
  5. Im victor, i work for a logistic web, so we offer our shipping method for that reason i need to create a shipping module method. I found this code and its exactly that i need be cuase we offer two kind of shipping method's <?php // Avoid direct access to the file if (!defined('_PS_VERSION_')) exit; class mycarrier extends CarrierModule { public $id_carrier; private $_html = ''; private $_postErrors = array(); private $_moduleName = 'mycarrier'; /* ** Construct Method ** */ public function __construct() { $this->name = 'mycarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.0'; $this->author = 'YourName'; $this->limited_countries = array('mx', 'us'); parent::__construct (); $this->displayName = $this->l('My Carrier'); $this->description = $this->l('Offer your customers, different delivery methods that you want'); if (self::isInstalled($this->name)) { // Getting carrier list global $cookie; $carriers = Carrier::getCarriers($cookie->id_lang, true, false, false, NULL, PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE); // Saving id carrier list $id_carrier_list = array(); foreach($carriers as $carrier) $id_carrier_list[] .= $carrier['id_carrier']; // Testing if Carrier Id exists $warning = array(); if (!in_array((int)(Configuration::get('MYCARRIER1_CARRIER_ID')), $id_carrier_list)) $warning[] .= $this->l('"Carrier 1"').' '; if (!in_array((int)(Configuration::get('MYCARRIER2_CARRIER_ID')), $id_carrier_list)) $warning[] .= $this->l('"Carrier 2"').' '; if (!Configuration::get('MYCARRIER1_OVERCOST')) $warning[] .= $this->l('"Carrier 1 Overcost"').' '; if (!Configuration::get('MYCARRIER2_OVERCOST')) $warning[] .= $this->l('"Carrier 2 Overcost"').' '; if (count($warning)) $this->warning .= implode(' , ',$warning).$this->l('must be configured to use this module correctly').' '; } } /* ** Install / Uninstall Methods ** */ public function install() { $carrierConfig = array( 0 => array('name' => 'Express', 'id_tax_rules_group' => 0, 'active' => true, 'deleted' => 0, 'shipping_handling' => false, 'range_behavior' => 0, 'delay' => array('mx' => 'Entrega rapida', 'en' => 'Description 1', Language::getIsoById(Configuration::get('PS_LANG_DEFAULT')) => 'Description 1'), 'id_zone' => 1, 'is_module' => true, 'shipping_external' => true, 'external_module_name' => 'mycarrier', 'need_range' => true ), 1 => array('name' => 'Same day', 'id_tax_rules_group' => 0, 'active' => true, 'deleted' => 0, 'shipping_handling' => false, 'range_behavior' => 0, 'delay' => array('mx' => 'Entrega mismo dia', 'en' => 'Description 2', Language::getIsoById(Configuration::get('PS_LANG_DEFAULT')) => 'Description 2'), 'id_zone' => 1, 'is_module' => true, 'shipping_external' => true, 'external_module_name' => 'mycarrier', 'need_range' => true ), ); $id_carrier1 = $this->installExternalCarrier($carrierConfig[0]); $id_carrier2 = $this->installExternalCarrier($carrierConfig[1]); Configuration::updateValue('MYCARRIER1_CARRIER_ID', (int)$id_carrier1); Configuration::updateValue('MYCARRIER2_CARRIER_ID', (int)$id_carrier2); if (!parent::install() || !Configuration::updateValue('MYCARRIER1_OVERCOST', '') || !Configuration::updateValue('MYCARRIER2_OVERCOST', '') || !$this->registerHook('updateCarrier')) return false; return true; } public function uninstall() { // Uninstall if (!parent::uninstall() || !Configuration::deleteByName('MYCARRIER1_OVERCOST') || !Configuration::deleteByName('MYCARRIER2_OVERCOST') || !$this->unregisterHook('updateCarrier')) return false; // Delete External Carrier $Carrier1 = new Carrier((int)(Configuration::get('MYCARRIER1_CARRIER_ID'))); $Carrier2 = new Carrier((int)(Configuration::get('MYCARRIER2_CARRIER_ID'))); // If external carrier is default set other one as default if (Configuration::get('PS_CARRIER_DEFAULT') == (int)($Carrier1->id) || Configuration::get('PS_CARRIER_DEFAULT') == (int)($Carrier2->id)) { global $cookie; $carriersD = Carrier::getCarriers($cookie->id_lang, true, false, false, NULL, PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE); foreach($carriersD as $carrierD) if ($carrierD['active'] AND !$carrierD['deleted'] AND ($carrierD['name'] != $this->_config['name'])) Configuration::updateValue('PS_CARRIER_DEFAULT', $carrierD['id_carrier']); } // Then delete Carrier $Carrier1->deleted = 1; $Carrier2->deleted = 1; if (!$Carrier1->update() || !$Carrier2->update()) return false; return true; } public static function installExternalCarrier($config) { $carrier = new Carrier(); $carrier->name = $config['name']; $carrier->id_tax_rules_group = $config['id_tax_rules_group']; $carrier->id_zone = $config['id_zone']; $carrier->active = $config['active']; $carrier->deleted = $config['deleted']; $carrier->delay = $config['delay']; $carrier->shipping_handling = $config['shipping_handling']; $carrier->range_behavior = $config['range_behavior']; $carrier->is_module = $config['is_module']; $carrier->shipping_external = $config['shipping_external']; $carrier->external_module_name = $config['external_module_name']; $carrier->need_range = $config['need_range']; $languages = Language::getLanguages(true); foreach ($languages as $language) { if ($language['iso_code'] == 'fr') $carrier->delay[(int)$language['id_lang']] = $config['delay'][$language['iso_code']]; if ($language['iso_code'] == 'en') $carrier->delay[(int)$language['id_lang']] = $config['delay'][$language['iso_code']]; if ($language['iso_code'] == Language::getIsoById(Configuration::get('PS_LANG_DEFAULT'))) $carrier->delay[(int)$language['id_lang']] = $config['delay'][$language['iso_code']]; } if ($carrier->add()) { $groups = Group::getGroups(true); foreach ($groups as $group) Db::getInstance()->autoExecute(_DB_PREFIX_.'carrier_group', array('id_carrier' => (int)($carrier->id), 'id_group' => (int)($group['id_group'])), 'INSERT'); $rangePrice = new RangePrice(); $rangePrice->id_carrier = $carrier->id; $rangePrice->delimiter1 = '0'; $rangePrice->delimiter2 = '10000'; $rangePrice->add(); $rangeWeight = new RangeWeight(); $rangeWeight->id_carrier = $carrier->id; $rangeWeight->delimiter1 = '0'; $rangeWeight->delimiter2 = '10000'; $rangeWeight->add(); $zones = Zone::getZones(true); foreach ($zones as $zone) { Db::getInstance()->autoExecute(_DB_PREFIX_.'carrier_zone', array('id_carrier' => (int)($carrier->id), 'id_zone' => (int)($zone['id_zone'])), 'INSERT'); Db::getInstance()->autoExecuteWithNullValues(_DB_PREFIX_.'delivery', array('id_carrier' => (int)($carrier->id), 'id_range_price' => (int)($rangePrice->id), 'id_range_weight' => NULL, 'id_zone' => (int)($zone['id_zone']), 'price' => '0'), 'INSERT'); Db::getInstance()->autoExecuteWithNullValues(_DB_PREFIX_.'delivery', array('id_carrier' => (int)($carrier->id), 'id_range_price' => NULL, 'id_range_weight' => (int)($rangeWeight->id), 'id_zone' => (int)($zone['id_zone']), 'price' => '0'), 'INSERT'); } // Copy Logo if (!copy(dirname(__FILE__).'/carrier.jpg', _PS_SHIP_IMG_DIR_.'/'.(int)$carrier->id.'.jpg')) return false; // Return ID Carrier return (int)($carrier->id); } return false; } /* ** Form Config Methods ** */ public function getContent() { $this->_html .= '<h2>' . $this->l('My Carrier').'</h2>'; if (!empty($_POST) AND Tools::isSubmit('submitSave')) { $this->_postValidation(); if (!sizeof($this->_postErrors)) $this->_postProcess(); else foreach ($this->_postErrors AS $err) $this->_html .= '<div class="alert error"><img src="'._PS_IMG_.'admin/forbbiden.gif" alt="nok" /> '.$err.'</div>'; } $this->_displayForm(); return $this->_html; } private function _displayForm() { $this->_html .= '<fieldset> <legend><img src="'.$this->_path.'logo.gif" alt="" /> '.$this->l('My Carrier Module Status').'</legend>'; $alert = array(); if (!Configuration::get('MYCARRIER1_OVERCOST') || Configuration::get('MYCARRIER1_OVERCOST') == '') $alert['carrier1'] = 1; if (!Configuration::get('MYCARRIER2_OVERCOST') || Configuration::get('MYCARRIER2_OVERCOST') == '') $alert['carrier2'] = 1; if (!count($alert)) $this->_html .= '<img src="'._PS_IMG_.'admin/module_install.png" /><strong>'.$this->l('My Carrier is configured and online!').'</strong>'; else { $this->_html .= '<img src="'._PS_IMG_.'admin/warn2.png" /><strong>'.$this->l('My Carrier is not configured yet, please:').'</strong>'; $this->_html .= '<br />'.(isset($alert['carrier1']) ? '<img src="'._PS_IMG_.'admin/warn2.png" />' : '<img src="'._PS_IMG_.'admin/module_install.png" />').' 1) '.$this->l('Configure the carrier 1 overcost'); $this->_html .= '<br />'.(isset($alert['carrier2']) ? '<img src="'._PS_IMG_.'admin/warn2.png" />' : '<img src="'._PS_IMG_.'admin/module_install.png" />').' 2) '.$this->l('Configure the carrier 2 overcost'); } $this->_html .= '</fieldset><div class="clear"> </div> <style> #tabList { clear: left; } .tabItem { display: block; background: #FFFFF0; border: 1px solid #CCCCCC; padding: 10px; padding-top: 20px; } </style> <div id="tabList"> <div class="tabItem"> <form action="index.php?tab='.Tools::getValue('tab').'&configure='.Tools::getValue('configure').'&token='.Tools::getValue('token').'&tab_module='.Tools::getValue('tab_module').'&module_name='.Tools::getValue('module_name').'&id_tab=1&section=general" method="post" class="form" id="configForm"> <fieldset style="border: 0px;"> <h4>'.$this->l('General configuration').' :</h4> <label>'.$this->l('My Carrier1 overcost').' : </label> <div class="margin-form"><input type="text" size="20" name="mycarrier1_overcost" value="'.Tools::getValue('mycarrier1_overcost', Configuration::get('MYCARRIER1_OVERCOST')).'" /></div> <label>'.$this->l('My Carrier2 overcost').' : </label> <div class="margin-form"><input type="text" size="20" name="mycarrier2_overcost" value="'.Tools::getValue('mycarrier2_overcost', Configuration::get('MYCARRIER2_OVERCOST')).'" /></div> </div> <br /><br /> </fieldset> <div class="margin-form"><input class="button" name="submitSave" type="submit"></div> </form> </div></div>'; } private function _postValidation() { // Check configuration values if (Tools::getValue('mycarrier1_overcost') == '' && Tools::getValue('mycarrier2_overcost') == '') $this->_postErrors[] = $this->l('You have to configure at least one carrier'); } private function _postProcess() { // Saving new configurations if (Configuration::updateValue('MYCARRIER1_OVERCOST', Tools::getValue('mycarrier1_overcost')) && Configuration::updateValue('MYCARRIER2_OVERCOST', Tools::getValue('mycarrier2_overcost'))) $this->_html .= $this->displayConfirmation($this->l('Settings updated')); else $this->_html .= $this->displayErrors($this->l('Settings failed')); } /* ** Hook update carrier ** */ public function hookupdateCarrier($params) { if ((int)($params['id_carrier']) == (int)(Configuration::get('MYCARRIER1_CARRIER_ID'))) Configuration::updateValue('MYCARRIER1_CARRIER_ID', (int)($params['carrier']->id)); if ((int)($params['id_carrier']) == (int)(Configuration::get('MYCARRIER2_CARRIER_ID'))) Configuration::updateValue('MYCARRIER2_CARRIER_ID', (int)($params['carrier']->id)); } /* ** Front Methods ** ** If you set need_range at true when you created your carrier (in install method), the method called by the cart will be getOrderShippingCost ** If not, the method called will be getOrderShippingCostExternal ** ** $params var contains the cart, the customer, the address ** $shipping_cost var contains the price calculated by the range in carrier tab ** */ public function getOrderShippingCost($params, $shipping_cost) { // This example returns shipping cost with overcost set in the back-office, but you can call a webservice or calculate what you want before returning the final value to the Cart if ($this->id_carrier == (int)(Configuration::get('MYCARRIER1_CARRIER_ID')) && Configuration::get('MYCARRIER1_OVERCOST') > 1) return (float)(Configuration::get('MYCARRIER1_OVERCOST')); if ($this->id_carrier == (int)(Configuration::get('MYCARRIER2_CARRIER_ID')) && Configuration::get('MYCARRIER2_OVERCOST') > 1) return (float)(Configuration::get('MYCARRIER2_OVERCOST')); // If the carrier is not known, you can return false, the carrier won't appear in the order process return false; } public function getOrderShippingCostExternal($params) { // This example returns the overcost directly, but you can call a webservice or calculate what you want before returning the final value to the Cart if ($this->id_carrier == (int)(Configuration::get('MYCARRIER1_CARRIER_ID')) && Configuration::get('MYCARRIER1_OVERCOST') > 1) return (float)(Configuration::get('MYCARRIER1_OVERCOST')); if ($this->id_carrier == (int)(Configuration::get('MYCARRIER2_CARRIER_ID')) && Configuration::get('MYCARRIER2_OVERCOST') > 1) return (float)(Configuration::get('MYCARRIER2_OVERCOST')); // If the carrier is not known, you can return false, the carrier won't appear in the order process return false; } } But i don't know what variables i need to change to see correctly in a shop. If this topic is not correctly posted, change the position to the correct part.
  6. Hello everyone, We've got a specific question about the shipping methods. for example; we use the shippingmethod PostNL, and below a specific price it must be free, above it costs the dutch default price.. and above a specific cart price it must be hidden.. When we fill in above 35,- euro this shippingmethod must be hidden it still keeps showing even if the price is already exceed the 1000,- euro.. I've attached some screenshots to make it more clear ;-) http://www.screencast.com/t/taHXmeLDOS http://www.screencast.com/t/Nvhf7APi2R6 http://www.screencast.com/t/Gw3KhYhjYJbM We're using prestashop version 1.5.5.0 I hope someone can help me ;-) would be nice :-) Thanks in advance! DVBMEDIA
  7. Anybody know of a module that would allow pre-pay and add as a shipping method? There's very little B2B options out there. For those not in the 'freight world' here's the web definition of pre-pay and add: "typically means that the shipper advances the freight charges to the carrier and then bills the beneficial owner of the freight for an amount approximating or equal to the actual freight charges." In other words, most of our customers simply say "just add the freight costs to our bill when you send our invoice." They already have an idea of what it's going to be. Trying to calculate weight based off product weights/dimensions is just not possible for us. I've got a module that will let people "pay by purchase order".... If I could just edit it so that it doesn't say "Free shipping" or "free" when I set the freight charges to zero in any carrier, that would work too. I just don't want it to say "free" anywhere. If it says nothing.....that would be totally fine. I'd go looking for that file to edit the script and simply remove the words "free shipping" and "free" and I'd be fine. I'm totally new to Prestashop. I've been through 4 other carts. So far, I've gotten way farther with this one than any other. I'd like to stick with it, because it looks the nicest. Edit: SOLVED There's lots of posts/tutorials and such about very related topics. I followed some of them in regards to changing text "Free Shipping!" and "Free" instead of trying to find a b2b module or something I could shoehorn into what I was looking for. I just eliminated it as a cost factor since we're going to create our own invoices outside of Prestashop. It took me a day and a half, though, to find out that I needed to edit the blockcart.tpl file in the THEMES/modules folder. Not the one the 'generic' modules folder. Additionally, I made some changes to the shopping-cart.tpl file as well to sort out the checkout pages.
×
×
  • Create New...