Jump to content

Buaha

Members
  • Posts

    25
  • Joined

  • Last visited

Profile Information

  • Activity
    Freelancer

Recent Profile Visitors

406 profile views

Buaha's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, i have problem with database. My server provider sent me email that one of database have very long execute time for one query with over a minute. Is there anything i can do to decrease this time? I think that because of this very often on frontend i cant see product. I see blank white page. # Time: 170302 22:19:43 # User@Host: host [host] @ [192.168.45.12] # Thread_id: 146 Schema: secretlashes.pl QC_hit: No # Query_time: 19.600707 Lock_time: 0.016750 Rows_sent: 10 Rows_examined: 5506747 SET timestamp=1488489583; SELECT DISTINCT od.product_id, pl.name, pl.description_short, pl.link_rewrite, p.reference, i.id_image, product_shop.show_price, cl.link_rewrite category, p.ean13, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity FROM ps_order_detail od LEFT JOIN ps_product p ON (p.id_product = od.product_id) INNER JOIN ps_product_shop product_shop ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)LEFT JOIN `ps_product_attribute` pa ON (p.`id_product` = pa.`id_product`) LEFT JOIN ps_product_attribute_shop product_attribute_shop ON (product_attribute_shop.id_product_attribute = pa.id_product_attribute AND product_attribute_shop.id_shop = 1 AND product_attribute_shop.`default_on` = 1) LEFT JOIN ps_stock_available stock ON (stock.id_product = p.id_product AND stock.id_product_attribute = IFNULL(`product_attribute_shop`.id_product_attribute, 0) AND stock.id_shop = 1 AND stock.id_shop_group = 0 ) LEFT JOIN ps_product_lang pl ON (pl.id_product = od.product_id AND pl.id_shop = 1 ) LEFT JOIN ps_category_lang cl ON (cl.id_category = product_shop.id_category_default AND cl.id_shop = 1 ) LEFT JOIN ps_image i ON (i.id_product = od.product_id) LEFT JOIN `ps_category_product` cp ON (cp.`id_category` = product_shop.id_category_default AND cp.id_product = product_shop.id_product) LEFT JOIN `ps_category_group` cg ON (cp.`id_category` = cg.`id_category`) WHERE od.id_order IN
  2. Yeah sure contact me via pm
  3. Hi, im looking for something like this: i want page in back office that displays all products in the orders of the appropriate status that i need to send. It would be best if the same products is in orders on this list they summed up. Is there a module that do that or maybe its is so simple that i need to add somewhere simple code? Any solution to this problem?
  4. hi. on checkout (address) both delivery address box and invoice box are empty (in console I have Uncaught TypeError: items[field_item].replace is not a function). line from quick-order: items[field_item] = items[field_item].replace(",", ""); i have virus on my site and my server administrator disabled function on server but i dont know is something is necessary to presta work properly: show_source,shell_exec,passthru,exec,proc_open,parse_init_file,curl_multi_exec,passthru, php_uname, phpAds_remoteInfo, phpAds_XmlRpc, phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, posix_setuid, posix_uname, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, syslog, xmlrpc_entity_decode,system I dont know what to do
  5. problem polega na tym że strona główna działa prawidłowo jednak żadna podstrona kategori/csm/produkty/koszyk czy cokolwiek innego się nie wyświetla i po prostu jest biała. Raportowanie błędów mam włączone jednak nadal strona jest biała i nie wyświetlają się żadne błędy. Patrząc w kod strony wygląda tak jakby head generował się prawidłowo jednak body jest puste. Nie wiem w jakim miejscu pojawił się taki problem ponieważ dostałem tak działającą już stronę od developera. Podobno strona wcześniej działała prawidłowo.
  6. Mam problem z modułem Push on Cart. Na czystej preście działa bezproblemowo. Jednak w sklepie do którego chcę doinstalować ten moduł nie działa on do końca prawidłowo. Mianowicie wszystko da się ustawić i zapisać. Wszystko jest ok do momentu próby ponownej konfiguracji moduł. Przy wejście w konfiguracja moduł czyści wszystkie swoje ustawienia i trzeba ustawiać cały moduł od początku. Nie wywala żadnego błędu ani nic innego. Czy ktoś może wie w czym może tkwić problem? Wersja presty: 1.6.0.8 Pozdrawiam
  7. hmmm... czy coś robię źlę? Wklejam twój kod do htaccess jednak nic się nie dzieje. Czy problemem może być to że sklep znajduje się w podkatalogu: mojadomena.pl/shop/product.php?id_product=60
  8. Witam, mam pewnie problem. Mianowicie aktualizuję sklep z wersji 1.4 do 1.6. Niestety przy aktualizacji linki do wszystkich produktów i stron zostają zmieniony na nowy typ. stary link: /product.php?id_product=60 nowy link: /index.php?id_product=60&controller=product czy jest jakaś możliwość żeby w 1.6 linki były takie same jak były w 1.4 lub czy istnieje jakaś możliwość przekierowania prze htacces albo przez coś innego żeby ktoś kto wejdzie przez stary link był kierowany na nowy link? Pozdrawiam
  9. Hi, i need to add that code to my site: <!-- START of the zanox affiliate HTML code --> <!-- (The HTML code may not be changed in the sense of faultless functionality!) --> <script type="text/javascript" src="https://ad.zanox.com/pps/?16338C4782058&mode=[[1]]&CustomerID=[[XXX]]&OrderID=[[XXX]]&CurrencySymbol=[[XXX]]&TotalPrice=[[XXX]]&PartnerID=[[XXX]]"> </script> <noscript> <img src="https://ad.zanox.com/pps/?16338C4782058&mode=[[2]]&CustomerID=[[XXX]]&OrderID=[[XXX]]&CurrencySymbol=[[XXX]]&TotalPrice=[[XXX]]&PartnerID=[[XXX]]" width="1" height="1" /> </noscript> <!-- END zanox-affiliate HTML-Code --> I have a problem with PartnerID. Partner ID is zanpid value from link like this: http://www.yourwebsite.com/?zanpid=12345678910 This value need to be stored in session then on confirmation page this need to return this value to this cod. I have found this to topics but this isint working: http://www.gordonzube.com/en/2010/06/24/integrate-affiliate-tracking-codes-in-prestashop.html https://www.prestashop.com/forums/topic/135218-read-session-variable/ Anyone can help me Thanks You
  10. wszystko jasne okazało się że jeśli jest po prostu wpisane jest users.txt to plik jest tworzony w głównym katalogu presty i tam zapisywane są dane
  11. Tak wygląda cały controller. Może rzeczywiście url do pliku users.txt powinien być w jakimś innym formacie? Tylko jaki powinien być poprawny format linku do tego pliku? <?php /* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ class CmsControllerCore extends FrontController { public $php_self = 'cms'; public $assignCase; public $cms; public $cms_category; public function canonicalRedirection($canonicalURL = '') { if (Validate::isLoadedObject($this->cms) && ($canonicalURL = $this->context->link->getCMSLink($this->cms))) parent::canonicalRedirection($canonicalURL); else if (Validate::isLoadedObject($this->cms_category) && ($canonicalURL = $this->context->link->getCMSCategoryLink($this->cms_category))) parent::canonicalRedirection($canonicalURL); } /** * Initialize cms controller * @see FrontController::init() */ public function init() { parent::init(); if (isset($_POST['Submit'])){ $username = $_POST['user']; $email = $_POST['mail']; //the data $data = "$username | $email\n"; //open the file and choose the mode $fh = fopen("users.txt", "a"); fwrite($fh, $data); //close the file fclose($fh); header('Location: xxx.html'); } if ($id_cms = (int)Tools::getValue('id_cms')) $this->cms = new CMS($id_cms, $this->context->language->id); else if ($id_cms_category = (int)Tools::getValue('id_cms_category')) $this->cms_category = new CMSCategory($id_cms_category, $this->context->language->id); $this->canonicalRedirection(); // assignCase (1 = CMS page, 2 = CMS category) if (Validate::isLoadedObject($this->cms)) { $adtoken = Tools::getAdminToken('AdminCmsContent'.(int)Tab::getIdFromClassName('AdminCmsContent').(int)Tools::getValue('id_employee')); if (!$this->cms->isAssociatedToShop() || !$this->cms->active && Tools::getValue('adtoken') != $adtoken) { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } else $this->assignCase = 1; } else if (Validate::isLoadedObject($this->cms_category)) $this->assignCase = 2; else { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } } public function setMedia() { parent::setMedia(); if ($this->assignCase == 1) $this->addJS(_THEME_JS_DIR_.'cms.js'); $this->addCSS(_THEME_CSS_DIR_.'cms.css'); } /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); $parent_cat = new CMSCategory(1, $this->context->language->id); $this->context->smarty->assign('id_current_lang', $this->context->language->id); $this->context->smarty->assign('home_title', $parent_cat->name); $this->context->smarty->assign('cgv_id', Configuration::get('PS_CONDITIONS_CMS_ID')); if (isset($this->cms->id_cms_category) && $this->cms->id_cms_category) $path = Tools::getFullPath($this->cms->id_cms_category, $this->cms->meta_title, 'CMS'); else if (isset($this->cms_category->meta_title)) $path = Tools::getFullPath(1, $this->cms_category->meta_title, 'CMS'); if ($this->assignCase == 1) { $this->context->smarty->assign(array( 'cms' => $this->cms, 'content_only' => (int)(Tools::getValue('content_only')), 'path' => $path )); } else if ($this->assignCase == 2) { $this->context->smarty->assign(array( 'category' => $this->cms_category, //for backward compatibility 'cms_category' => $this->cms_category, 'sub_category' => $this->cms_category->getSubCategories($this->context->language->id), 'cms_pages' => CMS::getCMSPages($this->context->language->id, (int)($this->cms_category->id) ), 'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '', )); } $this->setTemplate(_PS_THEME_DIR_.'cms.tpl'); } }
  12. wpisałem tak, na początku miałem podaną pełną ścieżkę do pliku też nie działało. Czy może ma znaczenie to w jakim folderze albo w jakiej formie jest podana ścieżka do pliku? wcześnie miałem http://www.xxx.pl/img/csm/users.txt
  13. Nikt nie ma pomysłu jak rozwiązać ten problem? Nie mam zielonego pojęcia co może być powodem nie zapisywania danych z formularza do pliku akurat na preście
×
×
  • Create New...