Jump to content
thirty bees forum

Pierrox15

Members
  • Posts

    44
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Pierrox15

  1. Ah ok, je pensais simplement que le soucis de  @ThierryC01  était un problème de mise à jour de la bdd maxmind geoip

    On 10/27/2020 at 7:59 PM, Mediacom87 said:

    ben c’est simple, Google a des serveurs partout dans le monde et d'autres moteurs de rehcerhce aussi, donc ceux soit ne pourront accéder au site soit il n'accéderont qu'à une seule languie ou une seule version.

    Donc, c'est négatif en terme de SEO.

    Justement, je crois que j'ai fait un module qui bloque l'accès du site par pays mais laisse passer les Moteurs de recherche pour éviter cela.

    C'est déjà prévu dans le Core de Thirtybees, pas besoin d'un plugin pour ça.

     

    Sinon L'exemple de script que j'utilise pour mettre à jour la Bdd MaxMind.
    Mais je pense que le plugins Thirtybees GeopIp2 doit faire le boulot. (je ne l'ai pas trouvé sur le github TB, pourtant je l'ai dans ma liste de plugins TB)

    #!/bin/bash
        
    # Script to update maxmind databases
    # Created by Pierrox
    # Licensed by GPL v.2
    # Last update: 29-12-2019
    # --------------------------------------
    # Notes: Créer un compte pour récupérer une 
    # clef de license sur le site de maxminddb
    # --------------------------------------
    
    VERSION="0.1"
        
    # CFG Script
    # ==========
        
    REPO_URL="https://download.maxmind.com/app/geoip_download"
    LICENSEKEY="XXXxxxXXXxxx"
        
    # Maxmind products list
    PRODUCTS=("GeoLite2-Country" "GeoLite2-City")
    ARCHIV_EXT="tar.gz"
    DBPATH="/etc/nginx/geoip2"
        
    # List dependencies
    dep=(wget grep tar logger)
    
    for prog in ${dep[@]}; do
    	command -v $prog >/dev/null 2>&1 || {
    		echo "*${prog}* seems to be unavailables : Abort." >&2
    		exit 1;
    	}
    done
        
    mkdir -p ${DBPATH}
        
    # START SCRIPT
    # =============
        
    for PRODUCT in ${PRODUCTS[*]}; do
        wget -q "${REPO_URL}?edition_id=${PRODUCT}&license_key=${LICENSEKEY}&suffix=${ARCHIV_EXT}" -o /dev/null -O ${DBPATH}/${PRODUCT}.${ARCHIV_EXT} \
        && need="$(tar tf ${DBPATH}/${PRODUCT}.${ARCHIV_EXT} | grep ${PRODUCT}.mmdb)" \
        && tar -xf "${DBPATH}"/${PRODUCT}.${ARCHIV_EXT} -C  "${DBPATH}" "${need}" --strip 1 2>/dev/null \
        && logger "${PRODUCT}.mmdb update" \
        || logger "${PRODUCT}.mmdb update fail" -p 4
    done

     

  2. Hello,

    Je suis FR également. On a eu l'occasion de se rencontrer sur skype @zen 🙂

    Je vais me replonger dans Prestashop/thirtyBees incessamment sous peu. Je n’ai pas trop suivi les nouvelles. J'ai juste vu que la marque TB allait être revendue...
    Je fais du dev occasionnel sur PS/TB. Je n'ai jamais apprécié PS et sa communauté en carton.

    Je préfère Thirtybees qui se rapproche un peu plus de ce que j'attends d'un logiciel libre (bien que je ne le trouve pas parfait, mais ça fait le job ^.^).

    Voilà a++ les abeilles

     

  3. Hello,

    Someone have ever remove the wysiwyg on product edit?

    It will be nice to have a markdown syntax and a process to render clean code on front end

    Few weeks after deliver a site. I often have impression the merchant play platoon on the product page:

    spacer.png

    legend: tinymce, improve ure productivity

    Seriously, how can i prevent it and simplify the description capture?

    e-merchants have other things to do than text formatting?

    I just need heading, paragraph, and img...

    Do you know if a plugin exist to remove wysiwyg to help merchants focus on the essentials?

  4. If you want remove nofollow, yes!

    So I'm not an SEO Expert and I can't confirm if it's a good idea. but it look a bit strange to have a nofollow on a product link...  I don't know why dev do that??

    For me (and it's only my point of view), I will not use <a href=>  for the add to cart action.  It would be a form  or just a <button> with a bit of js to post action. In products list, i will only use 1 link  for 1 item, not more.

    Hope it helps. 🙂

  5. Hello,


    In your TB root with bash:

    grep -rinHo "nofollow" themes/niara/

    will ouput path:lineNumber:match

    themes/niara/order-address-product-line.tpl:20:nofollow
    themes/niara/order-address-product-line.tpl:24:nofollow
    themes/niara/header.tpl:25:nofollow
    themes/niara/header.tpl:25:nofollow
    themes/niara/order-carrier-opc-advanced.tpl:327:nofollow
    themes/niara/shopping-cart.tpl:339:nofollow
    themes/niara/shopping-cart.tpl:356:nofollow
    themes/niara/shopping-cart.tpl:370:nofollow
    themes/niara/authentication-login.tpl:34:nofollow
    themes/niara/order-carrier.tpl:353:nofollow
    themes/niara/product-list-switcher.tpl:4:nofollow
    themes/niara/product-list-switcher.tpl:8:nofollow
    themes/niara/sitemap.tpl:31:nofollow
    themes/niara/sitemap.tpl:32:nofollow
    themes/niara/sitemap.tpl:43:nofollow
    (...)
    

     

    • Like 1
  6. Send him a mail and ask for an extend period for testing purpose .

    So, just an sql request and settings for specific output format can do the the job. what is the fields do you need?

  7. Hello,

     

    You can use the datakick Data Manager for that.  It's a very powerfull tool to manage products and build collection of datas

    But it's not a free module. You can try it for 2 weeks + 2 more weeks extended

    • Like 1
  8. Hello

    On the latest update on  1.1.X branch

    When wepb + cdn are enabled

    webp static ressource are on cdn and works great

    jpg are redirect with 302 on homepage??
    example:

    curl -i https://cdn1.dev.cantal.tech/20305-futurheli-2019_thickbox_default/kyosho-dameuse-blizzard-fr-couleur-2015-radio.webp
    HTTP/2 200
    server: nginx/1.14.0 (Ubuntu)
    date: Wed, 20 Nov 2019 09:57:58 GMT
    content-length: 41274
    last-modified: Mon, 04 Nov 2019 23:01:08 GMT
    expires: Thu, 31 Dec 2037 23:55:55 GMT
    cache-control: max-age=315360000
    x-cache-status: MISS
    cache-control: must-revalidate, proxy-revalidate
    access-control-allow-origin: https://futurheli.dev.cantal.tech
    
    
    
    curl -i https://cdn1.dev.cantal.tech/20305-futurheli-2019_thickbox_default/kyosho-dameuse-blizzard-fr-couleur-2015-radio.jpg
    HTTP/2 301
    server: nginx/1.14.0 (Ubuntu)
    date: Wed, 20 Nov 2019 09:58:07 GMT
    content-type: text/html; charset=utf-8
    content-length: 0
    location: https://futurheli.dev.cantal.tech/
    expires: Thu, 31 Dec 2037 23:55:55 GMT
    cache-control: max-age=315360000
    x-cache-status: MISS
    cache-control: must-revalidate, proxy-revalidate
    access-control-allow-origin: https://futurheli.dev.cantal.tech

     

    When  CDN Disable workfine (jpg are correcly served)

    When Url rewrite Disable work fine too

     

    PS: I use a reverse ngins proxy but backend is a classic apache2.4 server.  for me it's a rewrite apache2 directive who are not correctly updated

  9. Hello,

    I think disable a module don't clear the  cache/class_index.php file.

    can you try to disable the module,  remove the cache/class_index.php and try to access to Invoice?

     

     

  10. Hello,

    I m creating a module to manage category on the front office and I've got a problem to clear cache when the product association change.

    When  I join a product to a  *non default* category  the  HookCategoryUpdate seem not be call.

    Perhaps i don't understanding how to use it?

     

    Below  the code i use to clear my specific cache:

    I Don't know how I can get the new *non defaut* category association
     to clear it front office page cache

    	public function hookActionProductUpdate($params){
    		$id_product = $params['id_product'];
    		if ( $categories = Product::getProductCategories(intval($id_product))){
    			foreach ($categories as $id_category){
    				$this->clearCategoriesCache(intval($id_category));
    			}
    		}
    	}
    
    	public function hookActionCategoryUpdate($params){
    		if($id_category = $params['id_category']){
    			$this->clearCategoriesCache(intval($id_category));
    		}
    	}
    
    	public function hookActionProductAdd($params){
    		$id_product = $params['id_product'];
    		if ( $categories = Product::getProductCategories(intval($id_product))){
    			foreach ($categories as $id_category){
    				$this->clearCategoriesCache(intval($id_category));
    			}
    		}
    	}
    
    	public function clearCategoriesCache($id_category){
    		return $this->_clearCache('productscategory.tpl','productscategory|'. $id_category);
    	}

    Thx for your help

  11. Ok, Résolu/closed

    C'était le bazar dans les catégories notamment au niveau de la configuration de la catégorie racine / catégorie parente / etc.

    It was  bad settings in ps_category / ps_configuration tables.
    Problems on id_parent / is_root_category column etc
    after many updates ( From ps 1.4) the ps_category datas was a bit confused.

     

    Thx to zen

    • Thanks 1
  12. Non, le site est en local .

    catégorie (ou rubrique) courante c'est la catégorie en cours d'édition.

    Admettons :  ma categorieAAA est dans l'arborescence niveau 3:

    chemin actuel:
    accueil/lvl1/lvl2/categorieAAA

    chemin désiré:
    accueil/categorieAAA

    Au niveau du formulaire de sélection de rubrique je n'ai pas la possibilité de choisir "Accueil"  je ne peux que sélectionner les catégories de niveau 1 ou de profondeur supérieur...

    Voilà, je ne sais pas si je suis assez clair?

    Edit: Je précise que je peux trés bien creer un nouvelle catégorie dans accueil

  13. Salut,

    Je sais que tu es francophone donc j'en profite pour poser la question en français.
    Le terme rubrique racine prête à confusion.
    En fait il s'agit de déplacer la rubrique courante vers une rubrique de premier niveau: (donc dans mon cas accueil)

    Voici une photo d'écran issue de la page d'édition d'une catégorie et plus particulièrement du formulaire d'association de la rubrique courante dans l'arborescence du site:

    2127530198_Screenshot_2019-11-13CatgoriesModifierInmotionGyroroueFuturheli.png.a145406445aa434d1642924c078adb4b.png

    Je ne peux pas sélectionner "Accueil". pour info j'ai feinter en éditer via l'inspecteur d'élément de firefox le name d'un bouton radio en mettant l'ID catégory de l'accueil et ça semble fonctionner.

    Je suis en TB V1.1.X. Est ce qu'il s'agit bien d'un bug d'interface? si oui je ferai un bug report!

    Ps: Rien à voir, mais  J'ai vu que ma demande d'amélioration de l'interface d'édition catégorie a été intégré
    https://github.com/thirtybees/thirtybees/issues/1019 c'est TOP!😍

  14. Hello,

    Is it possible to move a non-root category to a root category?

    I would like preserve the primary key "id_category" and its branch of sub-categories.

    Actually in the BO Interface for category edition  I've got radio button form and I can't select root. I hope it's just an UI bug 🙂

    Thanks for your help

×
×
  • Create New...