Jump to content

z72diego

Members
  • Posts

    75
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

z72diego's Achievements

Newbie

Newbie (1/14)

3

Reputation

1

Community Answers

  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 [email protected] 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.
×
×
  • Create New...