Jump to content

Swerace

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by Swerace

  1. For over 1 year ago I changed domain from xx-xxx.se to xxxx.se. I removed databases and all files via ftp, and then redirect xx-xxx.se to xxxx.se. When i search in google for xxxx.se, one of the results are xx-xxx.se and in a specific page with english language. When I click on that result I came to my new domain but with (page not exist). Is this bad for seo, and why it not disappear? Its over 1 year ago I removed everything from that domain! Thanks in advance
  2. Thank you so much!! This helped me very much! Is it hard for a newbie to change product names to H1? Kind regards.
  3. In my store ps (1.6.1.4) product names are H2. So my question is, can I use H2 as header in the product description? Or is it bad for seo with (double) H2? H1 is sooo big in prod-descript. When I use seo tools it gives warning for no H1. Is that because of the product names are H2? My next question is about cms page. I have been learned that every text in a store is good for seo, the more the better. So if I have a link in the footer to a cms page with info about a product for example, is this good for seo? Or is it worthless? For example if i have a link with "learn more about seo", and write info about seo in it Thanks in advance!
  4. Thank you so much for your help! Humm... I use your pretty clean url, but after that I also installed seo booster for the canonical etc. Maybe seo booster making the problems with url. Cleaning up the store from overrides is way to high skills for me :-D
  5. Thanks for your reply! Here is the php file. <?php /** * PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-) * * @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/ * @copyright 2010-2016 VEKIA * @license This program is not free software and you can't resell and redistribute it * * CONTACT WITH DEVELOPER http://mypresta.eu * [email protected] */ class CmsController extends CmsControllerCore { /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ public function init() { if ($id_cms = (int)Tools::getValue('id_cms')) { $this->cms = new CMS($id_cms, $this->context->language->id, $this->context->shop->id); } elseif ($id_cms_category = (int)Tools::getValue('id_cms_category')) { $this->cms_category = new CMSCategory($id_cms_category, $this->context->language->id, $this->context->shop->id); } if (Configuration::get('PS_SSL_ENABLED') && Tools::getValue('content_only') && $id_cms && Validate::isLoadedObject($this->cms) && in_array($id_cms, array( (int)Configuration::get('PS_CONDITIONS_CMS_ID'), (int)Configuration::get('LEGAL_CMS_ID_REVOCATION') )) ) { $this->ssl = true; } parent::init(); $this->canonicalRedirection(); 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; } } elseif (Validate::isLoadedObject($this->cms_category) && $this->cms_category->active) { $this->assignCase = 2; } else { header('HTTP/1.1 404 Not Found'); header('Status: 404 Not Found'); } } /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ public function setMedia() { parent::setMedia(); if ($this->assignCase == 1) { $this->addJS(_THEME_JS_DIR_ . 'cms.js'); } $this->addCSS(_THEME_CSS_DIR_ . 'product_list.css'); $this->addCSS(_THEME_CSS_DIR_ . 'cms.css'); $this->addCSS(_PS_MODULE_DIR_ . 'cmsproducts/cmsproducts.css'); } /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ 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 ($this->assignCase == 1) { 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'); } elseif (isset($this->cms_category->meta_title)) { $path = Tools::getFullPath(1, $this->cms_category->meta_title, 'CMS'); } $this->cms->content = $this->returnContent($this->cms->content); $this->context->smarty->assign(array( 'cms' => $this->cms, 'content_only' => (int)Tools::getValue('content_only'), 'path' => $path, 'body_classes' => array( $this->php_self . '-' . $this->cms->id, $this->php_self . '-' . $this->cms->link_rewrite ) )); if ($this->cms->indexation == 0) { $this->context->smarty->assign('nobots', true); } } elseif ($this->assignCase == 2) { $this->context->smarty->assign(array( 'category' => $this->cms_category, '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, true, (int)$this->context->shop->id), 'path' => ($this->cms_category->id !== 1) ? Tools::getPath($this->cms_category->id, $this->cms_category->name, false, 'CMS') : '', 'body_classes' => array( $this->php_self . '-' . $this->cms_category->id, $this->php_self . '-' . $this->cms_category->link_rewrite ) )); } $this->setTemplate(_PS_THEME_DIR_ . 'cms.tpl'); } /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ public static function getImagesByID($id_product, $limit = 0) { $id_image = Db::getInstance()->ExecuteS('SELECT `id_image` FROM `' . _DB_PREFIX_ . 'image` WHERE cover=1 AND `id_product` = ' . (int)$id_product . ' ORDER BY position ASC LIMIT 0, ' . (int)$limit); $toReturn = array(); if (!$id_image) { return null; } else { foreach ($id_image as $image) { $toReturn[] = $id_product . '-' . $image['id_image']; } } return $toReturn; } /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ public function returnProduct($id_product) { $explode[] = $id_product; foreach ($explode as $tproduct) { if ($tproduct != '') { $x = (array)new Product($tproduct, true, $this->context->language->id); $productss[$tproduct] = $x; $productss[$tproduct]['id_product'] = $tproduct; $image = self::getImagesByID($tproduct, 1); $picture = explode('-', $image[0]); $productss[$tproduct]['id_image'] = $picture[1]; } } $products = Product::getProductsProperties($this->context->language->id, $productss); $this->context->smarty->assign('products', $products); $this->context->smarty->assign('feedtype', "cmsSingleProductFeed"); $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } /* * module: cmsproducts * date: 2016-10-04 10:16:04 * version: 1.4.1 */ public function returnProducts($id_product) { $explode_products = explode(",", $id_product); foreach ($explode_products AS $idp) { $explode[] = $idp; foreach ($explode as $tproduct) { if ($tproduct != '') { $x = (array)new Product($tproduct, true, $this->context->language->id); $productss[$tproduct] = $x; $productss[$tproduct]['id_product'] = $tproduct; $image = self::getImagesByID($tproduct, 1); $picture = explode('-', $image[0]); $productss[$tproduct]['id_image'] = $picture[1]; } } } $products = Product::getProductsProperties($this->context->language->id, $productss); $this->context->smarty->assign('products', $products); $this->context->smarty->assign('feedtype', "cmsProductsFeed"); $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function returnProductsHpp($block) { if (class_exists("Hpp")) { $hpp = new Hpp(); if (method_exists($hpp, 'returnProducts')) { return $this->displayHpp($hpp->returnProducts($block)); } else { return $this->noModuleMessage("Homepage Products Pro"); } } else { return $this->noModuleMessage("Homepage Products Pro"); } } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function returnProductsRpp($block) { if (class_exists("Ppb")) { $rpp = new Ppb(); if (method_exists($rpp, 'returnProducts')) { return $this->displayRpp($rpp->returnProducts($block)); } else { return $this->noModuleMessage("Related Products Pro"); } } else { return $this->noModuleMessage("Related Products Pro"); } } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function displayRpp($products) { if (count($products) <= 0) { $this->context->smarty->assign('feedtype', "noProducts"); } else { $this->context->smarty->assign('products', $products); $this->context->smarty->assign('feedtype', "rppfeed"); } $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function displayHpp($products) { if (count($products) <= 0) { $this->context->smarty->assign('feedtype', "noProducts"); } else { $this->context->smarty->assign('products', $products); $this->context->smarty->assign('feedtype', "hppfeed"); } $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function noModuleMessage($module) { $this->context->smarty->assign('products', $products); $this->context->smarty->assign('module', $module); $this->context->smarty->assign('feedtype', "error"); $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } /* * module: cmsproducts * date: 2016-10-04 10:16:05 * version: 1.4.1 */ public function returnContent($contents) { preg_match_all('/\{products\:[(0-9\,)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnProducts(str_replace("}", "", $explode[1])), $contents); } preg_match_all('/\{product\:[(0-9\,)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnProduct(str_replace("}", "", $explode[1])), $contents); } preg_match_all('/\{hpp\:[(0-9)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnProductsHpp(str_replace("}", "", $explode[1])), $contents); } preg_match_all('/\{rpp\:[(0-9)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnProductsRpp(str_replace("}", "", $explode[1])), $contents); } return $contents; } }
  6. I had the same problem. For me some files was missing in /mails/lang_directory
  7. Looks like a wonderful module! In my cms page i not see the product, just the text "{product:1,2,3,4}". If I disable all overrides I can't enter the cms page, I just got the text (this page doesn't exit).
  8. Setting up my Robots.txt for PS 1.6.1.4 Webmaster tools says its web page problems: 40 server problems and 1108 not found I use Multilingual and Multistore Sitemap Generator and it gives me this: /module/lgsitemaps/sitemap?fc=module&name=sitemap_1 Can the Robots.txt gives this problem? My robots looks like: User-agent: * # Allow Directives Allow: */modules/*.css Allow: */modules/*.js # Private pages Disallow: /*?orderby= Disallow: /*?orderway= Disallow: /*?tag= Disallow: /*?id_currency= Disallow: /*?search_query= Disallow: /*?back= Disallow: /*?n= Disallow: /*&orderby= Disallow: /*&orderway= Disallow: /*&tag= Disallow: /*&id_currency= Disallow: /*&search_query= Disallow: /*&back= Disallow: /*&n= Disallow: /*controller=addresses Disallow: /*controller=address Disallow: /*controller=authentication Disallow: /*controller=cart Disallow: /*controller=discount Disallow: /*controller=footer Disallow: /*controller=get-file Disallow: /*controller=header Disallow: /*controller=history Disallow: /*controller=identity Disallow: /*controller=images.inc Disallow: /*controller=init Disallow: /*controller=my-account Disallow: /*controller=order Disallow: /*controller=order-opc Disallow: /*controller=order-slip Disallow: /*controller=order-detail Disallow: /*controller=order-follow Disallow: /*controller=order-return Disallow: /*controller=order-confirmation Disallow: /*controller=pagination Disallow: /*controller=password Disallow: /*controller=pdf-invoice Disallow: /*controller=pdf-order-return Disallow: /*controller=pdf-order-slip Disallow: /*controller=product-sort Disallow: /*controller=search Disallow: /*controller=statistics Disallow: /*controller=attachment Disallow: /*controller=guest-tracking # Directories Disallow: */classes/ Disallow: */config/ Disallow: */download/ Disallow: */mails/ Disallow: */modules/ Disallow: */translations/ Disallow: */tools/ # Files Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* Disallow: /* # Sitemap
  9. This orders is in all presta. Its for showing you how orders looks like, i think.
  10. Thanks for your answer! Is it much work with this? I don't love my theme, so if its big work, I think I take it as a sign to change theme
  11. If i click on a main category i see products in this category and not the sub categories. I want to see all sub categories under that category. For example today: Main category - sub1 - sub2 - sub3 If I click on Main category i comes to all products in main category. I want to come to the sub categories. This is a problem because i have many sub categories in my site. If i hide subcategories from top menu, it will be like I removed them from my site.
  12. Thank you so much!! Some files in /mails/lang_directory was missing! Works perfect now!
  13. Thanks, but it works if I send from test email. I can't understand whats wrong. Everything is exactly as my other store.
  14. I have a strange problem I can't solve. Customer gets no confirmation email, and when I change order status I got a red field with "can't send email to the customer". BO - Advanced settings - email, and there send a test mail to same email adress as the test customer have, it works. I have another store with same PS Version and same host, no problem. Hate when I see problems when I should sleep. No, i don't sleep this night! LOL
  15. Thank you so much for taking time! I really preciate it! Have checked with webmaster tool, it says OK. No, I have just Swedish in the shop. Should I remove something in the robots?
  16. Thanks. I have tried regenerate with no success. My robots looks like this # robots.txt automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums # This file is to prevent the crawling and indexing of certain parts # of your site by web crawlers and spiders run by sites like Yahoo! # and Google. By telling these "robots" where not to go on your site, # you save bandwidth and server resources. # For more information about the robots.txt standard, see: # http://www.robotstxt.org/robotstxt.html User-agent: * # Allow Directives Allow: */modules/*.css Allow: */modules/*.js # Private pages Disallow: /*?orderby= Disallow: /*?orderway= Disallow: /*?tag= Disallow: /*?id_currency= Disallow: /*?search_query= Disallow: /*?back= Disallow: /*?n= Disallow: /*&orderby= Disallow: /*&orderway= Disallow: /*&tag= Disallow: /*&id_currency= Disallow: /*&search_query= Disallow: /*&back= Disallow: /*&n= Disallow: /*controller=addresses Disallow: /*controller=address Disallow: /*controller=authentication Disallow: /*controller=cart Disallow: /*controller=discount Disallow: /*controller=footer Disallow: /*controller=get-file Disallow: /*controller=header Disallow: /*controller=history Disallow: /*controller=identity Disallow: /*controller=images.inc Disallow: /*controller=init Disallow: /*controller=my-account Disallow: /*controller=order Disallow: /*controller=order-opc Disallow: /*controller=order-slip Disallow: /*controller=order-detail Disallow: /*controller=order-follow Disallow: /*controller=order-return Disallow: /*controller=order-confirmation Disallow: /*controller=pagination Disallow: /*controller=password Disallow: /*controller=pdf-invoice Disallow: /*controller=pdf-order-return Disallow: /*controller=pdf-order-slip Disallow: /*controller=product-sort Disallow: /*controller=search Disallow: /*controller=statistics Disallow: /*controller=attachment Disallow: /*controller=guest-tracking # Directories Disallow: */classes/ Disallow: */config/ Disallow: */download/ Disallow: */mails/ Disallow: */modules/ Disallow: */translations/ Disallow: */tools/ # Files Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*sv/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ Disallow: /*en/ # Sitemap Sitemap: http://mysite.se/1_index_sitemap.xml
  17. Hej, Har ett problem med robots.txt. Har precis bytt tema och domän. Nu när jag googlar min webbadress så står det: En beskrivning av det här resultatet är inte tillgänglig på grund av webbplatsens robots.txt Har aldrig haft det här problemet med tidigare butiker. Någon som har några idéer? Har följande alternativ för att konfigurera sitemap. Har endast valt index. -Index -Cronjobs-callback -wishlist -newsletter Tack på förhand. /Micke
  18. OMG!! Now I understand the problem with my address Home map is still a problem
  19. Thank you so much! So if i understand it right, I change "My address" in the database? The weird thing with home map, is that I have translated it in BO. In BO its right (Hem) on swedish, but in FO its still (Home).
  20. Hi, I have a problem that makes me crazy! If Im logged in as a customer and goes to, my account - my addresses. I can see a box with (My ADDRESS). I want to translate MY ADDRESS to Swedish. I have searched in all translations. Installed modules, store translations etc. Cant find it! Also wonder how I translate root category HOME. Prestashop 1.6.1.4 Custom theme: Single wave
×
×
  • Create New...

Important Information

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