Jump to content

Neo_odessa

Members
  • Posts

    31
  • Joined

  • Last visited

Profile Information

  • Location
    Odessa
  • Activity
    Freelancer

Recent Profile Visitors

272 profile views

Neo_odessa's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Thanks for solution! works for 1.6 version
  2. Changed to 'og_cat' => $category->name, But no results. In front-office product page I see <meta property="article:section" content="" />
  3. Hi. Thanks for great module. Anybody can help me I`m trying to paste categoty name for Product OG protected function assignProductOG() { // get product info // product:price:amount // product:price:currency if ($id_product = (int)Tools::getValue('id_product')) { $product_price = Product::getPriceStatic($id_product); $currency = $this->context->currency->iso_code; //category $category = new Category((int)$product->id_category_default, (int)$this->context->language->id); Last line im trying to get category name $this->context->smarty->assign(array( 'og_cat' => $category, Then assign for tpl And when I`m put in tpl is no result <meta property="article:section" content="{$og_cat}" />
  4. Thank you for help. Problem SOLVED after changing files by your link.
  5. 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
  6. 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"
  7. 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
  8. 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 ) ); }
  9. Thanks awesome script now I can filter by statuses.
  10. First I`ve tried to find order state in select fields it have "order_id"... etc. there will be great add "order_state"
  11. 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?
  12. I`ve installed from this link https://www.prestashop.com/forums/index.php?app=core&module=attach&section=attach&attach_id=151011
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More