Jump to content

migash

Members
  • Posts

    14
  • Joined

  • Last visited

migash's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Another solution ... in tools/Swift.php change: $list = $recipients; if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); } To: $list = $recipients; if ($recipients instanceof Swift_Address) { $list = new Swift_RecipientList(); $list->addTo($recipients); $list->addBcc("[email protected]", "Your Name"); }
  2. Minor follow-up ... you actually do not need the >0 ... can just say IF(t.`rate`,
  3. Okay. I think I fixed it. The problem was not with the reduced price calculations it was with the tax calculations. When a product was not associated with a tax and therefore 'p.id_tax = 0' the sql statement ended up with a NULL value for t.`rate`. So the price line in the sql statement in Category.php needs to be as follows to assign '1' if the return is NULL: (p.`price` * IF(t.`rate`>0,((100 + (t.`rate`))/100),1) - IF((DATEDIFF(`reduction_from`, CURDATE()) <= 0 AND DATEDIFF(`reduction_to`, CURDATE()) >=0) OR `reduction_from` = `reduction_to`, IF(`reduction_price` > 0, `reduction_price`, (p.`price` * IF(t.`rate`>0,((100 + (t.`rate`))/100),1) * `reduction_percent` / 100)),0)) AS orderprice Done, and done, Homies!
  4. In the classes folder open Order.php and goto to the function titled getNumberOfDays() In the SELECT line change `date_add` to `delivery_date`
  5. Please try this file. I have just confirmed that it works for my installation of 1.2.5. AdminCatalog.php
  6. This issue sure has been a difficult one. I have just confirmed for myself that this file fixes the issue in 1.2.5. Your results may vary. I hope it works. AdminCatalog.php
  7. I have successfully added multiple color pickers to a Prestashop site. See: http://www.findofficefurniture.com/u-shape-desks/1045-cameron-u-desk-set-left.html But my solution involved adding a new row to the ps_product table in the database and many people may not want to get involved with that. When I get time I will try to document the procedure and specify all the file changes that need to be made. In the meantime, I am a (very affordable) freelancer for hire and if you would like for me to implement this for you please contact me at [email protected]
  8. This solution is based on 1.2. In classes/Product.php add this line to static "public function getProductProperties": $row['price_tax_exc'] = Product::getPriceStatic($row['id_product'], false, ((isset($row['id_product_attribute']) AND !empty($row['id_product_attribute'])) ? intval($row['id_product_attribute']) : NULL), 2); Just add it right above the "$row['price'] = ... line Then, in homefeatured.tpl change: {displayWtPrice p=$product.price} to: {displayWtPrice p=$product.price_tax_exc} This also works for other modules.
  9. Where are you placing the "function getHTMLCategTree" code and how are you calling it. Thanks.
  10. Great solution. Confirmed that it also works with the horizontal categories module. PS 1.2.2
  11. Figured it out: In classes/Product.php change: SELECT p.`id_product`, pl.`name`, pl.`link_rewrite`, p.`weight`, p.`active`, p.`ecotax`, i.`id_image`, p.`reference`, il.`legend`, m.`name` AS manufacturer_name, tl.`name` AS tax_name to: SELECT p.`id_product`, pl.`name`, pl.`link_rewrite`, p.`weight`, p.`ean13`, p.`active`, p.`ecotax`, i.`id_image`, p.`reference`, il.`legend`, m.`name` AS manufacturer_name, tl.`name` AS tax_name and add to the "WHERE" line: OR p.`ean13` LIKE \'%'.pSQL($query).'%\' Then just edit the AdminSearch.php file to display the ean13 field in the "fieldsDisplay" and the "Display products" areas.
  12. Using Prestashop 1.1 I tried to include the ean13 field to search results by adding this line in the AdminSearch.php file: '.$product['ean13'].' But nothing will display. Can anyone help explain why this value is not being passed like the others?
×
×
  • Create New...