Jump to content

Neo_odessa

Members
  • Posts

    31
  • Joined

  • Last visited

Profile Information

  • Location
    Odessa
  • Activity
    Freelancer

Recent Profile Visitors

464 profile views

Neo_odessa's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Thanks for solution! works for 1.6 version
  2. Thank you for help. Problem SOLVED after changing files by your link.
  3. Hi I`m faced very strange error When I`m trying update some information in product It nothing happened. Usual I can see Green notice "Successful update" but it not appears and changes are missing. What I`m tried and no results: -Clear cache (delete cache folder) -Turn off all cache in admin -Turn off overrides and non prestashop modules -In MySql changed DB to empty clean -Changed hoster Nothing helps I`m make video capture where I`m trying make changes? then clicking "Save" button but nothing https://www.youtube.com/watch?v=QilaCc2S_Fs
  4. I`ve deleted not necesary code but still not working, I check if I changing this lines I see results in front office. Only can`t understand how put country "if"
  5. I`ve tried do how you suggested but nothing works Please check the code I`ve added your suggestions on lines 272-274 public function cartListErrors() { $err = array(); $errors = array(); $arr = array(); $arr = $this->checkQuantitiesAlt(); $currency = Currency::getCurrency((int)$this->context->cart->id_currency); $this->context->cart->id_address_delivery; $customer_delivery = new Address($this->context->cart->id_address_delivery); if ($customer_delivery->id_country = '216'){ $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);} else { $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM')*1.6666667, $currency);} if ($this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS) < $minimal_purchase) { $err[] = sprintf( $this->l( 'A minimum purchase total of %1s (tax excl.) is required to validate'. ' your order, current purchase total is %2s (tax excl.).' ), Tools::displayPrice($minimal_purchase, $currency), Tools::displayPrice( $this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS), $currency ) ); } And strange when I`m adding this line $customer_delivery->id_country = '216' It showing in cart $minimal_purchase for all countries same as I`ve added in back office and when I`m changing this line to $customer_delivery->id_country == '216' In cart showing $minimal_purchase *1.6
  6. I`m trying change minimal amount in cart different for one country. I`m using module advancedcheckous so i`m doing modifications not in orderOpcController.php I`m found code in advancedcheckout.php I`ve added for country that I need: $id_country = Tools::GetValue('id_country'); if ($id_country = 216){ $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);} For other countries I need Increase minimal amount up to 1.66667 Please check my code why it not working: public function cartListErrors() { $err = array(); $errors = array(); $arr = array(); $arr = $this->checkQuantitiesAlt(); $currency = Currency::getCurrency((int)$this->context->cart->id_currency); $id_country = Tools::GetValue('id_country'); if ($id_country = 216){ $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);} else { $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM')*1.6666667, $currency);} if ($this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS) < $minimal_purchase) { $err[] = sprintf( $this->l( 'A minimum purchase total of %1s (tax excl.) is required to validate'. ' your order, current purchase total is %2s (tax excl.).' ), Tools::displayPrice($minimal_purchase, $currency), Tools::displayPrice( $this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS), $currency ) ); }
  7. Thanks awesome script now I can filter by statuses.
  8. First I`ve tried to find order state in select fields it have "order_id"... etc. there will be great add "order_state"
  9. I put url directly to /order-search.php and now I can find products in orders in Prestools But I cant filter orders by statuses. It possible?
  10. I`ve installed from this link https://www.prestashop.com/forums/index.php?app=core&module=attach&section=attach&attach_id=151011
  11. I see screanshot but I dont have this option. When I over mouse to "Order Edit" I dont have dropdown menu with "Order Search" you showing on screanshot
  12. I will wait for musicmaster answer but I think Prestatools don`t have this filter I`m discovered Prestatools and can`t find this It will be perfect if you can help with additional filter in AdminOrdersController.php. If it much work you can contact me in private message I`m ready to pay for this help ))
×
×
  • Create New...