Jump to content

hakeryk2

Members
  • Posts

    912
  • Joined

  • Last visited

  • Days Won

    4

hakeryk2 last won the day on January 6 2021

hakeryk2 had the most liked content!

Profile Information

  • Location
    Poland
  • First Name
    Eryk
  • Last Name
    Wróbel

Recent Profile Visitors

5,986 profile views

hakeryk2's Achievements

  1. Prestashop stores image with id 55100 in img/p/5/5/1/0/0 folder.
  2. Few years ago and I found this thread in google while I was searching for JS solution xD It is so obvious now but yeah. Praise the forums!
  3. Dude... it is just basically my code from few post up here.
  4. Leave these variables as they are posted originaly. Just insert script file in the main folder of your shop and run it. You don't need to edit anything and it should run smoothly.
  5. Just use this script that I mentioned before. Download the file, put it in main server folder, launch from browser and that is it.
  6. /** * @param $id_product * @param int $quantity * @param Context|null $context * @param null $id_product_attribute * @return bool */ public static function isDiscounted($id_product, $quantity = 1, Context $context = null, $id_product_attribute = null) { if (!$context) { $context = Context::getContext(); } @$id_group = $context->customer->id_default_group; @$cart_quantity = !$context->cart ? 0 : Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT SUM(`quantity`) FROM `'._DB_PREFIX_.'cart_product` WHERE `id_product` = '.(int)$id_product.' AND `id_product_attribute` = '.(int)$id_product_attribute.' AND `id_cart` = '.(int)$context->cart->id ); $quantity = $cart_quantity ? $cart_quantity : $quantity; @$id_currency = (int)$context->currency->id; @$ids = Address::getCountryAndState((int)$context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}); $id_country = $ids['id_country'] ? (int)$ids['id_country'] : (int)Configuration::get('PS_COUNTRY_DEFAULT'); return (bool)SpecificPrice::getSpecificPrice((int)$id_product, $context->shop->id, $id_currency, $id_country, $id_group, $quantity, $id_product_attribute, 0, 0, $quantity); } Well, this is what I ended up with. Put this into Product.php override.
  7. Good idea, maybe I will fix this in future. I did not needed this in my shop but idea is quite clever. If I will make something about it I'll let you know.
  8. Well, I tried that by using import builted in but I failed so I decided to make it programatically.
  9. Well, if this 500 then we need to magic to figure it out. Only then we will be able to help if we will know what cause the issue and what error is saying.
  10. @Krystian Podemski coś może wiadomo o tej przedsprzedaży? Pierońsko by mi się to przydało w warunku "jeśli stock quantity kombinacji lub produktu <=0 i data_available != 0000-00-00 lub nie jest w przeszłości to ustaw przedsprzedaż na aukcji
  11. Actually I dunno because there was some search fixes as I mentioned 3 posts above. I made for 1.7 but few people here were able to make it on 1.7. I can't help you because I am not working on 1.7
  12. @Krystian Podemski i tak mi się skojarzyło, że x13 nie zaciąga kodu produktu (indywidualnych) gdy te są udostępnione w kombinacji. EAN pobiera, ale kodu nie. Prawdziwy time saver gdy to dodadzą EDIT: Cofam lekko, ponieważ da się to zmapować ale robienie tego dla każdej kategorii/mapowania jest wkurzające.
  13. Brakuje mi tylko w tym od x13 jednego rozwiązania: możliwości ustawienia w aukcji przedsprzedaży gdy kombinacja posiada ustawioną datę dostępności i stan stocku kombinacji jest mniejszy lub równy 0. Chodzi o to by nie tracić rozpędzonej górki gdy np sprzedaliśmy np 20 sztuk jakiegoś produktu, jesteśmy na topce, a tu bah, aukcja się zakończyła ponieważ stany się skończyły. Można by wtedy pobrać (jeśli istnieje) datę dostępności i zmienić status aukcji na przedsprzedaż by nie tracić tej dobrej passy
  14. Ramix to o czym ty mówisz nie ma absolutnie przełożenia na prędkość do pierwszego bajta ale tak - lepiej nie używać ostatniej sekcji i zaznaczyć "Użyj pamięci podręcznej" na Nie choć zawsze kusi by dać na tak. Kompresowanie obrazków to metoda tylko dla użytkowników wolnego połączenia z internetem lub gdy sam hosting ma bardzo wolne łącze.
×
×
  • Create New...