Jump to content

benyben

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • First Name
    ben
  • Last Name
    mihai

benyben's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. I had trouble with that module, see picture, marked by red. the method above, marked by blue. I went to prestashop after ZenCart, and had orders 18k not consecutive numbers because I just made this change and we wiped the test orders
  2. First: In PrestaShop 1.6 (tested and confirmed working in v1.6.0.14) you can accomplish this by the following method. Copy the file /classes/PaymentModule.php to /override/classes/PaymentModule.php. Edit the file /override/classes/PaymentModule.php as follows. At lines 337-341 is a code block that should read like this: if (!result) { PrestaShopLogger::addLog('PaymentModule::validateOrder - Order cannot be created', 3, null, 'Cart', (int)$id_cart, true); throw new PrestaShopException('Can\'t save Order'); } Immediately after that code block, insert the following two lines of code: $order->reference = str_pad($order->id, 9, '0', STR_PAD_LEFT); $order->update(); Delete the file /cache/class_index.php so that Prestashop automatically re-creates this file taking into account the new override file. note: if you want to start from 3456 (put 5 not 9 )here-> id, 9, '0', STR_PAD_LEFT); so, is gona be id order 03456 ( not 000003456) Second: Ive made a plugin for the backend for this. To use it: 1. Copy the attached file into your admin/tabs folder 2. Go to Administration/ Menus /Add New 3. Enter "Order Options" as the name 4. Enter "AdminOrderOptions" as the class 5. Select "Orders" as the parent 6. Click Save 7. Go to Orders/Order Options 8. Enter the new number you want to start with 9. Click "Change Start number" It is not my merit, I only joined two pieces of information found on this forum! AdminOrderOptions.php
  3. In Cosuri de cumparaturi se afiseaza transportatorul ales in cazul comenzilor deja plasate. Cum fac sa imi apara transportatorul si in comenzi? Am adaugat in AdminOrdersController : a.id_order AS id_pdf, CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, ca.name carrier, osl.`name` AS `osname`, os.`color`, si ), 'new' => array( 'title' => $this->l('New client'), 'align' => 'text-center', 'type' => 'bool', 'tmpTableFilter' => true, 'orderby' => false, 'callback' => 'printNewCustomer' ), 'carrier' => array( 'title' => $this->l('Carrier'), 'align' => 'text-center', 'callback' => 'replaceZeroByShopName', 'filter_key' => 'ca!name' ), 'customer' => array( 'title' => $this->l('Customer'), 'havingFilter' => true, ), Imi arata coloana Transportator dar este goala ...ce este de adaugat mai departe? Mentionez ca Nu ma pricep la programare! doar testez:D daca fac asa ce iese s.a.m.d. Si 2: am update status comanda gresit Expediat cu Fancurier in loc de Expediat cu Posta Romana, cum sterg status Expediat cu Fancurier? Clientul cand intra in contul lui va vedea la istoric acel Expediat cu Fancurier multumesc
  4. Thanks, i use this: .product-navigation .btn { background-color: #FEA800; border: 2px solid #0404B4; border-radius: 30px; }
×
×
  • Create New...