Jump to content

z72diego

Members
  • Posts

    75
  • Joined

  • Last visited

Everything posted by z72diego

  1. I'll do the test but I do not know, since that code snippet refers to a modification in the file mailalerts.php This that we speak rather should affect the whole store, modifying I imagine product.php for example I will do the test and then share the results here. Thanks, If you can think of something else, please let me know.
  2. Thanks for your reply @selectshop.at yeah, i know it is, but i would like to apply discounts to the pre-tax price. For example if I have an order: Product A - Unit price (without tax) $ 10 - Quantity 1 TAX 21% Discount 20% Actually PS takes the product in this way: $10 * 1.21 = $12.10 and for that price applies the 20% discount, so $ 9.68 will be the total to pay. I want the discount to be calculated in the price without taxes and these are then applied. $ 10 -20% = $ 8 * 1.21 = $ 9.68 I know that the total is the same, but not the total of the tax. In the first case, the total of the tax it's $ 2.10 and in the second case, $ 1.68. For final consumers this does not affect, but when (in my country) a commerce that receives taxes sells to another that also receives taxes, there is a very important difference.
  3. Hi, sorry for raising such an old thread, but in PS 1.6.123 this still happens. There is no way to configure if the discount is applied "after-tax" or "before-tax". In my case, i need to apply discounts before tax, and searching i found this thread. If any expert has an idea, it will be well received Thanks!
  4. Hi all! I'm looking for a developer in Prestashop that can help me solve a bug I have in a store in Prestashop 1.6.1.23 There are some things to keep in mind: - It is an internal bug, that is, in a clean installation of PS this error does not occur. - I have already analyzed the situation with 2 developers and I have not found the solution yet. - The integrity of all the files has been verified, and although there are some modifications made and overrides, and these do not affect at all the behavior that the bug produces. - The entire store uses advanced stock management, and uses quantities of warehouses. I'll explain the bug: When products are added to an order that is already created, and the order is marked as sent, the stock of these products added afterwards does not generate a decreasing movement in the stock. This is, by means of the "Add products" button that is located at the bottom left of the order detail (observing from the backoffice of course). The products that were added in the original order do generate a decreasing movement in the stock. Interested, please contact us privately.
  5. Hi, thanks for the tutorial, but it's not working for me (cashondelivery) and PS 1.6.1.19
  6. Hello Nishith thank you very much for your response. I share here the code modified by another developer that gave me a hand shortly before you. The result is the same and a new column was added that allows to see the total charged of each invoice. It is very useful for a B2B business. Regards! AdminOutstandingController.php
  7. Hello everyone! I want to edit the AdminOutstandingController.php so that instead of showing the column "Outstanding balance allowed" ("outstanding_allow_amount") it shows the value of what PS calls "invoices" (which is "total_paid_tax_incl"). I tried with: 'total_paid_tax_incl' => array( 'title' => $this->l('Total Remito X'), 'align' => 'text-right', 'type' => 'price', 'currency' => true, 'callback' => 'setOrderCurrency', 'badge_success' => true ), But i have not success it returns "--" Full code: https://codeshare.io/50njdD Any idea? Thanks!
  8. Hello everyone, I am looking for a developer to modify a module that I have purchased, it is a very simple modification: add a selector and that this same one influences a calculation. Interested send email to z72diego@gmail.com Thanks!!
  9. Thank you Scully, I apologize for that, I'll keep it in mind for the next one. Thanks for your answer, I'll test if it works!
  10. It is also a solution to show only the product reference, removing the product name. I tried with: $results = Db::getInstance()->executeS(' SELECT reference, id_product as id FROM '._DB_PREFIX_.'product ORDER BY ASC'); but no luck
  11. Hello!! I want to make an override of a back-office file (AdminCartRulesController.php) to facilitate the process of generating discount coupons for certain products. I just want to display product reference next to the product name in the product selector of the "New discount" section (I attached an image to be more graphic). I think this is the part I need to edit: case 'products': $products = array('selected' => array(), 'unselected' => array()); $results = Db::getInstance()->executeS(' SELECT DISTINCT name, p.id_product as id FROM '._DB_PREFIX_.'product p LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)Context::getContext()->language->id.Shop::addSqlRestrictionOnLang('pl').') '.Shop::addSqlAssociation('product', 'p').' WHERE id_lang = '.(int)Context::getContext()->language->id.' ORDER BY name'); foreach ($results as $row) { $products[in_array($row['id'], $selected) ? 'selected' : 'unselected'][] = $row; } Context::getContext()->smarty->assign('product_rule_itemlist', $products); $choose_content = $this->createTemplate('product_rule_itemlist.tpl')->fetch(); Context::getContext()->smarty->assign('product_rule_choose_content', $choose_content); break;
  12. Fixed, the template has a function that activates a "magnifying glass" which apparently has a bug, deactivates it and now works correctly.
  13. Hello everyone I'm having a problem (apparently with my template) in which the product page (product.tpl) seen from a cell phone (iphone and android but NOT pc mobile view contracting the size of the window) does not allow to click on the main menu (Blocktopmenu) or in the footer links (block various links, block my account, block contact infos). Something that also happens is that when clicking the button to enlarge the image of the product, a blank page opens with the "tickbox" image, instead of opening a pop up. Another detail is that the blocktopmenu does not appear in the location it should.. The strange thing is that in the case of products that have more than one image, if you click on a secondary photo, the pop-up opens properly and then the menu, links and everything starts to work correctly. Example with a single image: https://goo.gl/vvaDkP Example of product with more than one image: https://goo.gl/xagGWf The support of the template by the creator is quite limited .. and since I did not find more answers by myself, here I am! From already thank you very much.
  14. Hello everyone, I am looking for a developer to modify the delivery-slip.tpl to adapt it to a pre-printed document that is officially used in my country. It's a simple job, edit an HTML and put some variables. I am offering USD 20. Interested contact by private message! Have a good day!!
  15. You are the best Michael!! Problem solved I await your e-mail answer, thanks again!!!
  16. Hello Michael, Yes, I tried to modify that line of code to see what happened. The comment is one of the tests I did (Also did not work). My original Validate.php was identical to the one you mentioned: /** * @param string $dni to validate * @return bool */ public static function isDniLite($dni) { return empty($dni) || (bool)preg_match('/^[0-9A-Za-z-.]{1,16}$/U', $dni); } But with that same format of validation I found the error for the first time. It's weird, I do not understand why it accepts 11111111 but not ⁠⁠⁠29911444. A customer placed an order yesterday and indicated this number and apparently had no problems: 38358088 Thanks!!
  17. Hello everyone, I have a problem with version 1.6.0.11 of PrestaShop. Some DNI that the clients enter when registering an address in the site gives them error: 1. dni is incorrect 2. The identification number is incorrect or has already been used But, the strange thing about all this is that it happens only with some numbers, for example: this DNI gives error: ⁠⁠⁠29911444, but this other one does not: 19911444 .. this ID also does not give error: 11111111, but this one does: ⁠28911444 and also this: ⁠2891144 In the file validate.php i verified the field dni and I changed it by the following: { return empty($dni) || (bool)preg_match('/^[+0-9. ()-]*$/', $dni); /* return preg_match('/^[^<>;={}]*$/u', $dni); */ } I clarify that none of the numbers entered are DNI addresses registered in the store. In AdminAddressesController.php i have the following: if (Country::isNeedDniByCountryId(Tools::getValue('id_country')) && !Tools::getValue('dni')) $this->errors[] = Tools::displayError('The identification number is incorrect or has already been used.'); Any help? Thanks.
  18. Mismo problema. Se soluciona destildando el campo "DNI obligatorio" en la seccion "Direcciones", debajo de todo, pero tampoco es una solucion definitiva ya que en mi caso necesito que todos los clientes registrados indiquen su DNI en el registro en la tienda... habrá que esperar a algun experto mire el codigo y pueda darnos una mano a todos! Saludos, Diego
  19. Developer hired, thank you to all who contacted!
  20. Hello everyone, I want to make a small modification to a module that I bought and the developer has a poor support and does not respond to my messages. The module to be modified exports the catalog of the store in PDF format. According to certain parameters: indicated category and I would like to add 2 other parameters: . online only (yes / no) . quantity avaliable (greater than ...) To filter the products that are shown in the generated PDF. Interested in the modification please contact me at z72diego@gmail.com Thank you.
×
×
  • Create New...