Jump to content

toalka

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • First Name
    Tamara
  • Last Name
    Kalinina

toalka's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. https://www.prestashop.com/forums/topic/624820-problemi-traduzione-tema-da-back-office/?do=findComment&comment=2657784
  2. Solution: Open /HOMEFOLDER/vendor/prestashop/translationtools-bundle/Translation/Extractor/Util/Flattenizer.php replace this (line ~94) public static function flattenFiles($files, $outputPath, $locale, $filesystem, $addLocale = true) { foreach ($files as $file) { $flatName = preg_replace('#[\/\\\]#', '', $file->getRelativePath()).$file->getFilename(); if ($addLocale) { $flatName = preg_replace('#\.xlf#', '.'.$locale.'.xlf', $flatName); } $filesystem->copy($file->getRealpath(), $outputPath.'/'.$flatName); } return true; } to public static function flattenFiles($files, $outputPath, $locale, $filesystem, $addLocale = true) { foreach ($files as $file) { $flatName = preg_replace('#[\/\\\]#', '', $file->getRelativePath()).$file->getFilename(); if ($addLocale and strpos($flatName,$locale.'.xlf') == false) { $flatName = preg_replace('#\.xlf#', '.'.$locale.'.xlf', $flatName); } $filesystem->copy($file->getRealpath(), $outputPath.'/'.$flatName); } return true; }
  3. Hi, I need to add radio which change, will lead to the change in total price. I add this code in order-detail.tpl: <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_1_0" class="discount_option_radio" type="radio" name="discount_option" data-key="1" data-id_address="1" value="1" checked="checked"> </td> <td colspan="2" class="text-right">Pago a 30 dias mediante transferencia. Dto -2%</td> <td colspan="2" class="price" id="disc1">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_2_1" class="discount_option_radio" type="radio" name="discount_option" data-key="2" data-id_address="2" value="2"> </td> <td colspan="2" class="text-right">Pronto pago antes de la salida de la mercaderia Dto. -5%</td> <td colspan="2" class="price" id="disc2">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_3_2" class="discount_option_radio" type="radio" name="discount_option" data-key="3" data-id_address="3" value="3"> </td> <td colspan="2" class="text-right">Pago mediante Tarjeta de credito. Dto. -2%</td> <td colspan="2" class="price" id="disc3">-0,00 €</td> </tr> <tr class="cart_disc"> <td colspan="1" class="text-right"> <input id="discount_option_4_3" class="discount_option_radio" type="radio" name="discount_option" data-key="4" data-id_address="4" value="4"> </td> <td colspan="2" class="text-right">Pago a mas de 30 dias, NO aplicable ningun Dto.</td> <td colspan="2" class="price" id="disc4">0,00 €</td> </tr> How to connect it with Order.php to make it works? Thanks!
  4. Go to "modules/blocklayered/views/templates/admin/add_1.6.tpl" and sort <li></li>
×
×
  • Create New...