Jump to content

Search the Community

Showing results for tags 'détails'.

  • 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


  1. Does any one know how to easily get the order details, i.e is there an object that loads the order details ready to be used in my script. looking for something like $order = new Order((int)$params['id_order']); It needs to hold product name, quantity, unit price, ex vat prices and incl prices. I can code this myself and get it out of the database but I'd thought I'd check if this is already included in the core programming.
  2. Bonjour, Mon site est sous Prestashop 1.7 sur le thème par défaut. J'ai cherché attentivement sur le forum une solution qui réponde à mon besoins, sans succès. J'aimerais publier pour chaque catégorie une description de 350 mots (pour le référencement naturel). Cependant, pour que les produits restent accessibles, je souhaiterais que seulement deux ou trois lignes de cette description soit visible par défaut et qu'un lien, "Lire la suite" par exemple, donne la possibilité aux visiteurs d'afficher et de lire le reste de la description. Un second lien "Masquer" permettrait de rétablir l'affichage initiale. J'imagine que ces modifications doivent s'effectuer dans le fichier category.tpl (themes > classic > templates > catalog > listing >). Cependant, je n'ai malheureusement pas les connaissances requises pour savoir quel code ajouter dans ce fichier et à quel endroit. Voici le contenu actuel de ce fichier (le fichier a déjà été modifié selon un tutoriel pour afficher l'image de la catégorie sur toute la largueur du bloc description) : {extends file='catalog/listing/product-list.tpl'} {block name='product_list_header'} <div class="block-category card card-block hidden-sm-down"> <h1 class="h1">{$category.name}</h1> {if $category.description} <div id="category-description" class="text-muted">{$category.description nofilter}</div> {* <div class="category-cover"> <img src="{$category.image.large.url}" alt="{$category.image.legend}"> </div> *} <br/> <div> <img src="{$category.image.large.url}" alt="{$category.image.legend}" class="img-thumbnail"> </div> {/if} </div> <div class="text-xs-center hidden-md-up"> <h1 class="h1">{$category.name}</h1> </div> {/block} J'espère que quelqu'un pourra m'aider. Je suis sûr que cette solution pourra intéresser un certain nombre de personnes Merci de votre réponse !
  3. In prestashop 1.7.2 we wanted to display final price with taxes in the product order details. We want to share this solution with you. Open for editing /document-root/adminfolder/themes/default/template/controllers/orders/ _product_line.tpl Add the following lines at the beginning of the file before {* Assign product price *} {* Assign retail product price wit taxes *} {assign var=product_price_retail value=$product['price'] * (($product['tax_rate']/100) +1)} Then change the variable in about line 60. <span class="product_price_show">{displayPrice price=$product_price_retail currency=$currency->id}</span>
  4. Hi All, Greetings of the day. The prestashop addon helps to add extra unlimited tabs on the product details page. We can add YouTube videos and useful content with the image using the HTML editor in the extra tabs Optimize product content for buyers to more easily find your products and the information they need. Good product information management is essential due to the current dynamic business environment As the business grows, there’ll be many new products coming in. As such, it can become difficult to keep track of all that product information. This leads to disorganization, which, in turn, affects the customer experience. The product information is to be regarded as a document that contains information sufficient to ensure the safe and effective use of the product. Make the purchase convenient and faster for the customers by providing them with additional information in easy-to-click tabs with the Product Tabs module. You can quickly and easily create custom product tabs on the product page. It will help you in maximizing your purchase. The product detail page of your website is considered one of the most powerful tools used for sales as it includes detailed information about products. Customers can’t purchase without visiting the product detail page and looking at each piece of information about products, from images, videos, and content. To increase the number of purchases and enhance user experience, use product tabs to create and add unlimited product tabs to the product page for product specifications and details. Features - Facility to add YouTube videos and useful information related to the product using HTML editor. - Geolocation support to show tabs for selected country visitors like selected products options. - Tabbed content enhances the user experience - Customized product info tab - With dynamic content, it creates a custom tab - Mobile-friendly tabs - Assign tabs to specific products - Addition of informative tab content - Product Tabs Extension helps to customize the tabs according to your needs. - Admin gets the easy-to-access grid interface to easily see all the created tabs. Admin can delete, enable or disable the product tabs as well. - Facility to add an unlimited number of Tabs. - Search facility in the back office. - Products offers and promotions in the front office in an interactive way. - Showcase products, services, store & Company Information in Video. - Visibility. One obvious advantage is its visibility. It’s the first thing that visitors see when they go to your site. It immediately catches their attention. - SEO friendly. - Support all browsers: Firefox, Chrome, IE, Safari, etc. - Lightweight. (Smaller file size which loads faster.) - Increase sales, conversion rates, and product promotions. - Maintain existing customers & Attract new customers. - Lower marketing expenses, exposure to potential customers, and reach targeted audiences. - Compatible with PrestaShop 1.6.x,1.7.x,8.x.x. - Multiple browser compatibility(IE, Firefox, Opera, Safari, Chrome, and Edge). - Mobile, Tablet, and all devices compatible. - Multi-language and Multi Store compatible. - Module works without doing any change in existing files on PrestaShop store versions. - 24*7 Support - Good Documentation Benefits to Customers - Helps to increase customer understanding and knowledge about the products and store. - Drawing a customer's attention to your relevant result. - Providing instant information as related to their query. - Customer trust online store and feel comfortable. - Helps in support and communication in the customer's native language. - Customer queries and clarifications get a fast solution. Benefits to Merchants - Higher Chances of Ranking on SERPs - Better Click through Rates - Better Marketing Opportunity - More Qualified Leads - More Credibility - Reduce expenses - Increase sales - Improve customer service and loyalty - Customer convenience - Competitive advantages - Expand market reach - Proactive outreach - Reports and analytics - Real-Time Convenience to Customers - Cost-Efficient - Stand out Among Competitors - Eye-catching results => drawing a search user’s attention from your competitors’ listings to your own result. - Potential CTR increase => Possibly increasing click-through rates and lowering the chance of the user ‘bouncing’ as they see more information about the page before clicking through (there is also the potential to deter users if the additional rich snippets of information show something they were not looking for). - Providing ‘quality’ results => offering results that could match the user’s intent more closely. On the downside, if the informational benefit of the rich snippet satisfies the user's search query, it might eliminate the need to click through for further engagement. - Develop Deeper Customer Relationships - Increase in Conversions and Average Order Values Installation : Step 1: Upload the module zip file from the back-office Module & Services menu tab. Module Manager area using the upload button. After the successful installation module menu, the link will appear in the left menu or top menu in the back-office MORE area. Step 2: Install the module using the install button. Step 3: Visit the module management page from the back-office "More" area (section) in the left menu in the back-office. Step 4: The module installation process is very easy, how module configuration works can be seen in the demo instance. Step 5: Please visit our demo instance for module configuration and usage demo. Step 6: Please watch our module demo videos on our YouTube Channel. - Module works without making any change in the existing PrestaShop file so that existing customization and theme change do not affect. - We provide free technical and feature support in installation, and configuration, as well as access to updates available for this product. - Free support on installation, configuration, and customization as per store requirements, for example, new hook addition to your store. For a demo on version 1.7.x visit the below links Front-office Demo URL => https://www.hrms-systems.com/presta-addons/en/ Back-office Demo URL => https://www.hrms-systems.com/presta-addons/admin619j6kpbb/index.php For a demo on version 1.6.x visit below links Front-office Demo URL => https://www.hrms-systems.com/presta-apps/en/ Back-office Demo URL => https://www.hrms-systems.com/presta-apps/admin539fyipwq/index.php OUR PRESTASHOP ADDONS MARKETPLACE URL PrestaShop Marketplace URL => https://addons.prestashop.com/en/2_community-developer?contributor=301729 Alternate module download URL => https://www.presta-addons-modules.com
  5. Guten Morgen Ich bin im Umgang mit Prestashop noch ziemlich unerfahren, daher verzeiht mir, falls ich mich unklar ausdrücke oder etwas nicht verstehe. Unser Shop läuft auf Prestashop 1.7.7.2. Bisher bin ich extrem zufrieden mit Prestashop, es läuft auch alles so wie es soll - mit einer Ausnahme. Wenn ich bei mir im Menü unter "Bestellungen" -> "Bestellungen" gehe, und dort rechts auf die Lupe ("Anzeigen") klicke, erscheint die Meldung "Oops... looks like an unexpected error occurred" Wenn ich dann den Debug-Modus aktiviere kommen folgende Meldungen (Screenshot). Allerdings scheitere ich daran mit meinem begrenzten Know-How... Wäre toll wenn mir da jemand weiterhelfen könnte. Soweit ich hier im Forum gelesen habe, scheint dies irgendein Fehler mit der Datenbank zu sein - aber wie behebe ich diesen? Ich hoffe, ich habe keine wichtigen Informationen vergessen. Vielen Dank jetzt schon für eure Hilfe 🙂 Liebe Grüsse Robin
  6. Bonjour, Suite à un plantage de mon thème trop surchargé en css, je suis reparti sur un thème propre, celui de base avec juste quelques couleurs modifiées. Petit soucis d'affichage sur la présentation des produits, je 'ai pas le bouton "Détails", juste le bouton "ajouter au panier". J'ai donc été dans le fichier /themes/montheme/product-list.tpl et j'ai ajouté le code qui manquait en me basant sur mon ancien fichier qui marchait bien. Résultat sur ma page d'accueil, les "nouveaux produits" ont bien ce nouveau bouton "Détails". Mais lorsque je consulte une catégorie, là ce foutu bouton n'apparaît pas, je suppose donc que cette partie est géré par un autre fichier, mais je ne trouve pas lequel. Ci-joint 2 captures d'écran, suffisament parlante. P.S. mon site est en ligne si vous voulez voir par vous-même https://france-vape.com Dans l'attente de vous lire. Christian
  7. Muy buenas a todos y todas! Me ha dejado de funcionar el botón desplegable ¨detalles¨ en el historial de pedidos del cliente. Versión Ps 1.6.0.6. Por lo que veo y me dicen, es un problema js que no tengo idea de como solucionar. Esto es lo que tengo dentro de .../ httpdocs / themes / transformer / history.tpl <td class="history_detail"> <a class="btn btn-default" href="javascript:showOrder(1, {$order.id_order|intval}, '{$link->getPageLink('order-detail', true)|escape:'html':'UTF-8'}');"> {l s='Details'} Alguien sabría como debería tenerlo editado para que se despliegue y mis clientes puedan ver el detalle de su pedido? Muchas gracias y saludos
  8. $id_order_state = Tools::getValue('id_order_state'); if ($id_order_state == 119 && Configuration::get('119') != '') //Configuration::get('Sendin_Api_Sms_shipment_Status') == 1 && { $order = new Order(Tools::getValue('id_order')); $address = new Address((int)$order->id_address_delivery); $customer_civility_result = Db::getInstance()->ExecuteS('SELECT id_gender,firstname,lastname FROM '._DB_PREFIX_.'customer WHERE `id_customer` = '.(int)$order->id_customer); $firstname = (isset($address->firstname)) ? $address->firstname : ''; $lastname = (isset($address->lastname)) ? $address->lastname : ''; if (Tools::strtolower($firstname) === Tools::strtolower($customer_civility_result[0]['firstname']) && Tools::strtolower ($lastname) === Tools::strtolower($customer_civility_result[0]['lastname'])) $civility_value = (isset($customer_civility_result['0']['id_gender'])) ? $customer_civility_result['0']['id_gender'] : ''; else $civility_value = ''; if ($civility_value == 1) $civility = 'Mr.'; else if ($civility_value == 2) $civility = 'Ms.'; else if ($civility_value == 3) $civility = 'Miss.'; else $civility = ''; $result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' SELECT `call_prefix` FROM `'._DB_PREFIX_.'country` WHERE `id_country` = '.(int)$address->id_country); if (isset($address->phone_mobile) && !empty($address->phone_mobile)) { $order_date = (isset($order->date_upd)) ? $order->date_upd : 0; if ($this->context->language->id == 1) $ord_date = date('m/d/Y', strtotime($order_date)); else $ord_date = date('d/m/Y', strtotime($order_date)); $msgbody = Configuration::get('119'); $total_pay = (isset($order->total_paid)) ? $order->total_paid : 0; $total_pay = $total_pay.''.$this->context->currency->iso_code; if (_PS_VERSION_ < '1.5.0.0') $ref_num = (isset($order->id)) ? $order->id : ''; else $ref_num = (isset($order->reference)) ? $order->reference : ''; $civility_data = str_replace('{civility}', $civility, $msgbody); $fname = str_replace('{first_name}', $firstname, $civility_data); $lname = str_replace('{last_name}', $lastname."\r\n", $fname); $product_price = str_replace('{order_price}', $total_pay, $lname); $order_date = str_replace('{order_date}', $ord_date."\r\n", $product_price); $msgbody = str_replace('{order_reference}', $ref_num, $order_date); $arr = array(); $arr['to'] = '$mobile'; $arr['text'] = $msgbody; $this->sendSmsApi($arr); } } Above code actually sends a message to the number when order status triggered to 119. But I need below variable details to get the $msgbody. {shop_name}-{id_order} {payment} {total_paid} {items2} {first_name} {last_name} {delivery_address1} {delivery_city} {delivery_country} {delivery_phone} {message} How to get those details and fill $msgbody. I am using below code to get variables. But not working properly. public function hookActionValidateOrder($params) { if (!$this->merchant_order || empty($this->merchant_mails)) return; // Getting differents vars $context = Context::getContext(); $id_lang = (int)$context->language->id; $id_shop = (int)$context->shop->id; $currency = $params['currency']; $order = $params['order']; $customer = $params['customer']; $configuration = Configuration::getMultiple( array( 'PS_SHOP_EMAIL', 'PS_MAIL_METHOD', 'PS_MAIL_SERVER', 'PS_MAIL_USER', 'PS_MAIL_PASSWD', 'PS_SHOP_NAME', 'PS_MAIL_COLOR' ), $id_lang, null, $id_shop ); $delivery = new Address((int)$order->id_address_delivery); $invoice = new Address((int)$order->id_address_invoice); $order_date_text = Tools::displayDate($order->date_add); $carrier = new Carrier((int)$order->id_carrier); $message = $this->getAllMessages($order->id); if (!$message || empty($message)) $message = $this->l('No message'); $items_table = ''; $products = $params['order']->getProducts(); $customized_datas = Product::getAllCustomizedDatas((int)$params['cart']->id); Product::addCustomizationPrice($products, $customized_datas); foreach ($products as $key => $product) { $unit_price = Product::getTaxCalculationMethod($customer->id) == PS_TAX_EXC ? $product['product_price'] : $product['product_price_wt']; $customization_text = ''; if (isset($customized_datas[$product['product_id']][$product['product_attribute_id']])) { foreach ($customized_datas[$product['product_id']][$product['product_attribute_id']][$order->id_address_delivery] as $customization) { if (isset($customization['datas'][Product::CUSTOMIZE_TEXTFIELD])) foreach ($customization['datas'][Product::CUSTOMIZE_TEXTFIELD] as $text) $customization_text .= $text['name'].': '.$text['value'].'<br />'; if (isset($customization['datas'][Product::CUSTOMIZE_FILE])) $customization_text .= count($customization['datas'][Product::CUSTOMIZE_FILE]).' '.$this->l('image(s)').'<br />'; $customization_text .= '---<br />'; } if (method_exists('Tools', 'rtrimString')) $customization_text = Tools::rtrimString($customization_text, '---<br />'); else $customization_text = preg_replace('/---<br \/>$/', '', $customization_text); } $url = $context->link->getProductLink($product['product_id']); $items_table .= '<tr style="background-color:'.($key % 2 ? '#DDE2E6' : '#EBECEE').';"> <td style="padding:0.6em 0.4em;">'.$product['product_reference'].'</td> <td style="padding:0.6em 0.4em;"> <strong><a href="'.$url.'">'.$product['product_name'].'</a>' .(isset($product['attributes_small']) ? ' '.$product['attributes_small'] : '') .(!empty($customization_text) ? '<br />'.$customization_text : '') .'</strong> </td> <td style="padding:0.6em 0.4em; text-align:right;">'.Tools::displayPrice($unit_price, $currency, false).'</td> <td style="padding:0.6em 0.4em; text-align:center;">'.(int)$product['product_quantity'].'</td> <td style="padding:0.6em 0.4em; text-align:right;">' .Tools::displayPrice(($unit_price * $product['product_quantity']), $currency, false) .'</td> </tr>'; $items_table2 .= ''.$product['product_name'].(int)$product['product_quantity'].''; } foreach ($params['order']->getCartRules() as $discount) { $items_table .= '<tr style="background-color:#EBECEE;"> <td colspan="4" style="padding:0.6em 0.4em; text-align:right;">'.$this->l('Voucher code:').' '.$discount['name'].'</td> <td style="padding:0.6em 0.4em; text-align:right;">-'.Tools::displayPrice($discount['value'], $currency, false).'</td> </tr>'; } if ($delivery->id_state) $delivery_state = new State((int)$delivery->id_state); if ($invoice->id_state) $invoice_state = new State((int)$invoice->id_state); if (Product::getTaxCalculationMethod($customer->id) == PS_TAX_EXC) $total_products = $order->getTotalProductsWithoutTaxes(); else $total_products = $order->getTotalProductsWithTaxes(); $order_state = $params['orderStatus']; // Filling-in vars for email $template_vars = array( '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{email}' => $customer->email, '{delivery_block_txt}' => MailAlert::getFormatedAddress($delivery, "\n"), '{invoice_block_txt}' => MailAlert::getFormatedAddress($invoice, "\n"), '{delivery_block_html}' => MailAlert::getFormatedAddress( $delivery, '<br />', array( 'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>' ) ), '{invoice_block_html}' => MailAlert::getFormatedAddress( $invoice, '<br />', array( 'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>', 'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>' ) ), '{delivery_company}' => $delivery->company, '{id_order}' => (int)$order->id, '{delivery_firstname}' => $delivery->firstname, '{delivery_lastname}' => $delivery->lastname, '{delivery_address1}' => $delivery->address1, '{delivery_address2}' => $delivery->address2, '{delivery_city}' => $delivery->city, '{delivery_postal_code}' => $delivery->postcode, '{delivery_country}' => $delivery->country, '{delivery_state}' => $delivery->id_state ? $delivery_state->name : '', '{delivery_phone}' => $delivery->phone ? $delivery->phone : $delivery->phone_mobile, '{delivery_other}' => $delivery->other, '{invoice_company}' => $invoice->company, '{invoice_firstname}' => $invoice->firstname, '{invoice_lastname}' => $invoice->lastname, '{invoice_address2}' => $invoice->address2, '{invoice_address1}' => $invoice->address1, '{invoice_city}' => $invoice->city, '{invoice_postal_code}' => $invoice->postcode, '{invoice_country}' => $invoice->country, '{invoice_state}' => $invoice->id_state ? $invoice_state->name : '', '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, '{invoice_other}' => $invoice->other, '{order_name}' => $order->reference, '{order_status}' => $order_state->name, '{shop_name}' => $configuration['PS_SHOP_NAME'], '{date}' => $order_date_text, '{carrier}' => (($carrier->name == '0') ? $configuration['PS_SHOP_NAME'] : $carrier->name), '{payment}' => Tools::substr($order->payment, 0, 32), '{items}' => $items_table, '{items2}' => $items_table2, '{total_paid}' => Tools::displayPrice($order->total_paid, $currency), '{total_products}' => Tools::displayPrice($total_products, $currency), '{total_discounts}' => Tools::displayPrice($order->total_discounts, $currency), '{total_shipping}' => Tools::displayPrice($order->total_shipping, $currency), '{total_tax_paid}' => Tools::displayPrice( ($order->total_products_wt - $order->total_products) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $currency, false ), '{total_wrapping}' => Tools::displayPrice($order->total_wrapping, $currency), '{currency}' => $currency->sign, '{gift}' => (bool)$order->gift, '{gift_message}' => $order->gift_message, '{message}' => $message ); // Shop iso $iso = Language::getIsoById((int)Configuration::get('PS_LANG_DEFAULT')); // Send 1 email by merchant mail, because Mail::Send doesn't work with an array of recipients $merchant_mails = explode(self::__MA_MAIL_DELIMITOR__, $this->merchant_mails); foreach ($merchant_mails as $merchant_mail) { // Default language $mail_id_lang = $id_lang; $mail_iso = $iso; // Use the merchant lang if he exists as an employee $results = Db::getInstance()->executeS(' SELECT `id_lang` FROM `'._DB_PREFIX_.'employee` WHERE `email` = \''.pSQL($merchant_mail).'\' '); if ($results) { $user_iso = Language::getIsoById((int)$results[0]['id_lang']); if ($user_iso) { $mail_id_lang = (int)$results[0]['id_lang']; $mail_iso = $user_iso; } } $dir_mail = false; if (file_exists(dirname(__FILE__).'/mails/'.$mail_iso.'/new_order.txt') && file_exists(dirname(__FILE__).'/mails/'.$mail_iso.'/new_order.html')) $dir_mail = dirname(__FILE__).'/mails/'; if (file_exists(_PS_MAIL_DIR_.$mail_iso.'/new_order.txt') && file_exists(_PS_MAIL_DIR_.$mail_iso.'/new_order.html')) $dir_mail = _PS_MAIL_DIR_; if ($dir_mail) Mail::Send( $mail_id_lang, 'new_order', sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference), $template_vars, $merchant_mail, null, $configuration['PS_SHOP_EMAIL'], $configuration['PS_SHOP_NAME'], null, null, $dir_mail, null, $id_shop ); } }
  9. Hi everyone! I'm using Prestashop v.1.5.2 I'm trying to put tracking number from order details directly to order history (see attachment), but unfortunately I'm not a php coder so I don't know what to put in <td></td> for getting this variable. I suppose I should add something into HistoryController.php and then edit my history.tpl but I lack the knowledge for it, maybe someone can help me? Didn't find any similar topics over internet.
  10. Prestashop 1.7.2.4 Hallo und happy new year!!! Hat jemand Erfahrungen mit folgendem Problem und wie ich dies lösen könnte? Wenn ich im Artikel unter "Details der Varianten" das Gewicht des jeweiligen Produktes eingebe um das Versandgewicht zu berechnen funktioniert dies zu Beginn und berechnet das Versandgewicht korrekt, jedoch wenn ich die Funktion "Cache" unter Leistung betätige, fällt das Gewicht raus - wenn ich "Cache" nicht benötige, bleibt das Gewicht drinnen - ich brauche diese Angaben jedoch, um die Versandkosten richtig zu berechnen. Herzlichen Dank für die Hilfe Kilian
  11. Prestashop 1.7.2.4 Hi and happy new year ;-) Using Prestashop 1.7.2.4. When adding weight to the variations details (calculating shippment weight) it disappears after using cache. When I`m not using cache it stays and calculates the price of the shippment correct. Has anyone experiences with this issue? Thank you very much, Kilian
  12. Dear developers, I kindly ask for your assistance as I'm getting an error I don't know where to trace or solve. On BO in products detail page I'm getting an error when clicking on deactive or activate (Prestashop 1.7.2.x). System prompts that action was not successful with JSON error: SyntaxError: JSON.parse: unexpected character SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data, main.bundle.js:56382:9 I also check JSON doc where it's said that there is a comma too much at the end that is causing this issue. Unfortunately, I canont find any useful on line one of main.bundle.js. Updated: I have seen that there is a discussion about saving issues in Firefox with Prestashop 1.7. Maybe this is realated. I have tested and get saving issues too. But different to the others I see error messages as mentioned including a new one indication also an issue with scrollbars (sorry, cannot re-produce right now). May I ask where I can solve this issue? Kind regards, PR Code attached from line 56330 to 56383. I use Firfox at the moment. Issue comes - funny wise - from line with Android (second last line). // Support: Firefox // Firefox doesn't have focus(in | out) events // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 // // Support: Chrome, Safari // focus(in | out) events fire after focus & blur events, // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order // Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857 if ( !support.focusin ) { jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler on the document while someone wants focusin/focusout var handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); }; jQuery.event.special[ fix ] = { setup: function() { var doc = this.ownerDocument || this, attaches = dataPriv.access( doc, fix ); if ( !attaches ) { doc.addEventListener( orig, handler, true ); } dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); }, teardown: function() { var doc = this.ownerDocument || this, attaches = dataPriv.access( doc, fix ) - 1; if ( !attaches ) { doc.removeEventListener( orig, handler, true ); dataPriv.remove( doc, fix ); } else { dataPriv.access( doc, fix, attaches ); } } }; } ); } var location = window.location; var nonce = jQuery.now(); var rquery = ( /\?/ ); // Support: Android 2.3 // Workaround failure to string-cast null input jQuery.parseJSON = function( data ) { return JSON.parse( data + "" ); };
  13. Hi, I´ve got problem with completion of customer´s cart in backoffice when there is bank wire payment. Customer receive an email with confirmation of order and second email with bank details - this email does not include bank details (see the PDF named “completed by admin”). If customer complete the order by himself, it gives him correct email as it is supposed (pdf “completed by customer). I need to complete the customer´s cart very often. Could you please help us? Thank you. completed by admin.pdf completed by customer.pdf
  14. I've created a new order status used in our company and I need to send an email to the customers when order comes to this status. Problem is that no {variable} works in my new mail template. I would like to include details about order in this email and only thing that works is {order_name} and total maybe customer name and total. Which file should i edit when i need to add more variables to my new email template? How can I add for example complete list of ordered products when order is changed (same mail which is sent after order is made) thank you for your help!
  15. Hi guys me again lol, the problem is when a customer places an order the order details show but no product details, when i come to print the invoice everything is there except the product details as well. very confused as i have not changed any of the admin files. just to let you know the order shows as valid in carts with all product details there. plz help me its driving me mad!
  16. Bonjour, Après quelques recherches je n'ai pas trouvé ce que je cherche alors je viens voir si quelqu'un peut m'aider ici. Je souhaite pouvoir, lors de l'enregistrement de mes fournisseurs, ajouter 1) Des informations générales sur ce fournisseur : ajouter ses délais de livraison, son franco de port, des notes personnelles 2) Ajouter des pièces jointes : Pouvoir ajouter son catalogue et autre, ses info rib, y mettre mes factures... 3) Les contacts de ce fournisseurs : un pour le commercial, un pour le livreur, un pour la directrice marketing, ... avec la possibilité de mettre nom, prénom, tel1, tel2, mail, date de dernier contact voir pourquoi pas pouvoir échanger par mail via ce module et des notes personnalisés sur les différents interlocuteurs. En bref un module qui me permette de tout centraliser sur prestashop afin que les employés à l'autre bout du monde puisse voir les infos et que je puisse tout gérer de n'importe quel ordinateur avec une connexion internet. Je vous remercie d'avance pour votre aide Marc
  17. Bonjour à tous, J'ai un gros gros soucis qu'il me faudrait résoudre au plus vite car mon client va bientôt lancer une campagne promotionnel. Or avec le dysfonctionnement que j'ai, cela risque d'être très ennuyeux !!! Tout d'abord, je suis passé en version 1.6.1.1. Depuis, je n'ai plus le détail des commandes, aucun produit n'apparait dans back-office (dans la partie Commandes/Commandes), pour avoir le détail d'une commande il faut que j'aille dans la partie Clients/Paniers. De plus, les factures sont vides au niveau des produits commandés. Et ce n'est pas tout, apparemment le client ne reçoit de mail de confirmation (j'ai testé avec un compte de test). Il y a aussi quelque chose d'assez étrange. Par exemple, pour une commande de 10€ (dans Commandes/Commandes) le total vente qui apparait dans Clients/Clients est doublé soit 20€ MAIS le paiement est réalisé correctement. J'ai regardé dans les tables de la BDD, apparemment lors de la commande, les produits commandés ne sont pas enregistrés. J'ai pu identifier les problèmes mais ne maitrise pas assez Prestashop pour pouvoir savoir quoi modifier dans quels fichiers. Je m'en remet à vous !! Merci par avance
  18. I want to display the customer details in the payment step of the checkout page. I don't have any idea how to do it. I'm fairly new to prestashop so sorry for this dumb question. Thanks!
  19. Hi Good people, Please help, Iv been stuck on this for a few weeks now and still not solved the issue. When a customer makes an order it goes through fine on there end to the point of paypal payment, then after payment goes through it takes you back to my store, but no order details show. In the BO nothing shows up, but I do get a paypal email notification for the order. Please any help would be great, I have tried to make an order with error codes set as true, but there is no error code, it seems to go through ok, but when it arrives back at my store there is no order. Prestashop 1.5. Again many thanks in advance for your help on this. Darren
  20. Hi guys, i would like to know how I can get products list grouped by category and use it in an external page. I'm thinking to build a sort of configurator using the products inside a shop that already exist, but i don't know if i have to write from scratch some mysql query or if is possibile to use something that already exist inside prestashop files (classes). The next step is to add selected items to a new cart for the checkout and for this i think to have found something online. Thanks in advance, Simone
  21. Hi, I have a problem accessing the order details in the front office. I am logged with a customer account and in the 'order history and details' when I open one of the orders and try to view the details, nothing happens. If I can't open the details I cannot make an RMA slip either...that's the goal. Please help! Regards
  22. Hi, I'm trying to implement Analytics for ecommerce in Prestashop but I've got troubles to get some order details. Here is the Analytics template : ga('ecommerce:addTransaction', { 'id': '1234', // Transaction ID. Required. 'affiliation': 'Acme Clothing', // Affiliation or store name. 'revenue': '11.99', // Grand Total. 'shipping': '5', // Shipping. 'tax': '1.29' // Tax. }); ga('ecommerce:addItem', { 'id': '1234', // Transaction ID. Required. 'name': 'Fluffy Pink Bunnies', // Product name. Required. 'sku': 'DD23444', // SKU/code. 'category': 'Party Toys', // Category or variation. 'price': '11.99', // Unit price. 'quantity': '1' // Quantity. }); I have no problem to implement the first part of the code, but for the second part, I have to do a loop with each product details and I don't manage to do it... For nom, I've got this : ga('ecommerce:addTransaction', { 'id': '{$id_order_formatted}', 'revenue': '{$total_prod}', 'currency': 'EUR' }); ga('ecommerce:addItem', { 'id': '{$id_order_formatted}', 'name': '{$contenu_com}', 'quantity': '{$nb_prod}', 'currency': 'EUR' }); ga('ecommerce:send'); But this way I only get the first product. Does somebody has the answer ?
  23. hello i have written below code in prestashop 1.5.6.2 and same code in prestashop 1.6.0.6 but its worked fine in version 1.5 but not in 1.6 i want to make admin tab like i have attach image same thing in prestashop 1.6.
  24. Hello, greetings. I updated my shop with 1.5.6 to 1.6.0.8 Module 1-click, everything went well, except the page where all orders are and see the details of an order all messed appears without buttons. See catches. I saw the solution about a month ago in some forum post, but I forgot to save it and now can not find it and I'm moving hosting. Any idea ?? Clear the cache of Smarty. The browser cache. Cache off in the BackOffice. force compilation. This was all done. Also overwrote the files in the admin folder.
  25. Quand on clique sur une catégorie du menu il y a l'image de la catégorie et le texte... Je parle du détails qui apparaît en bas du texte de la catégorie lorsqu'il y a beaucoup de texte Je cherche dans le code l'endroit ou je peut définir la longueur du texte court détails dans les catégories mais en vain je ne trouve rien..... En faite il serait bien que le texte qui apparaît, soit plus court et que on puisse voir le tout uniquement en appuyant sur détails ... C'est le but il me semble Un peu comme sur les blog lorsqu'un article fait 1 km de long et que pour le résumé ya le petit détails ou (lire la suite...) qui mène à la suite du texte et de l'article ... Merci d'avance de votre soutien !!
×
×
  • Create New...