Recommended PrestShop Version

Thanks for choosing Agile.
For customers using our Agile Multiple Seller module and its accessry modules, we highly recommend to use PrestaShop 1.6x or 1.7.5 or lower. PrestaShop has made some changes in versions higher than 1.7.6 that makes it possible or very difficult to implement some of features via hooks, or override, since required hooks or override is not available.

Sept. 05, 2019

בסעיף זה להחדיר כיצד להגדיר זריז SEO PrestaShop זמין תג ענן

 

הוראות התקנה

0. כניסה back office ולכרטיסיה "מודולים"

1. האו ם-התקנת מודול רגיל קיים "תגיות לחסום" אם הוא מותקן כבר
2. חפשו "Agile SEO לתייג מודול", לחץ על יתקין, המודול תותקן באופן אוטומטי
3. לחץ על הקישור "הגדרת" תחת "SEO זריז תג מודול", קבע "להציג תגי" למספר שברצונך להציג

 

4. שלב זה הוא שונה עבור PrestaSgop 1.3 x ו 1.4 x

 

עבור PrestaShop 1.3 x

שינוי /admin???קובץ /tabs/AdminGenertator.php (שים לב, מנהל??? פירושו התיקיה של back office, בדרך כלל שמו)
חפש את שתי השורות הבאות (סביב קו # 192)

$tab['RewriteRule']['content']['^lang-([a-z]{2})/(.*) $'] = '$ 2? isolang =$ 1 [QSA, L, E]';
להחזיר את הכרטיסיה $;

  הכנס מתחת לקו באמצע מעל שתי שורות.
$tab['RewriteRule']['content']['^tags/(.*) $'] = 'search.php?tag=$1 [QSA, L, E]';

 

עבור prestaShop 1.4 x

ב sert בעקבות קוד לתוך הפונקציה generateHtaccess() ב /classes/Tools.php קובץ

חיפוש תג //cloud
$tab['RewriteRule']['content']['^tags/(.*) $'] = 'search.php?tag=$1 [QSA, L, E]';

Agile-PrestaShop-SEO-Tag-Tools

 

 

5. שינוי קובץ /classes/Tool.php
לאתר בעקבות גוש קוד בפונקציה getMetaTags()

 

/ * CMS פרטי במטה-תגים * /
elseif ($ id_cms = self::getValue('id_cms'))
{
שורה $ = Db::getInstance() - > getRow ('
בחר 'meta_title', 'meta_description', 'meta_keywords'
מ- '._DB_PREFIX_.'cms_lang'
היכן id_lang = '.intval($id_lang)'. ו- id_cms = '.intval($id_cms));
אם (שורה$)
{
שורה $['meta_title'] = $שורה ['meta_title']. '-'.Configuration::get('PS_SHOP_NAME');
לחזור self::completeMetaTags (שורה$, $row['meta_title']);
}
}

הוסף בעקבות לחסום קוד ימינה אחרי מעל קוד.

אחר
{
תג $ = self::getValue('tag');
if(isset($tag) AND strlen($tag) > 0)
{
שורה $['meta_title'] = $תג. " - " .Configuration::get('PS_SHOP_NAME');
שורה $['meta_description'] = תג $;
שורה $['meta_keywords'] = תג $;
לחזור self::completeMetaTags (שורה$, $row['meta_title']);
}
}

 

Agile-PrestaShop-SEO-Tag-Tools-01

6. מעבר אל בק אופיס הכרטיסיה העדפות בסעיף "כתובת URL ידידותי" כדי להפיק מחדש .htaccess