v8x-v9x Danea Import for prestashop 9.x.x by cyberhack

cyberhack

Well-known member
Master
Diamond
Elite
Joined
Apr 16, 2019
Messages
292
Reaction score
514
Points
93
NullCash
3,132
danea-logo.png


================================================================================
DANEA IMPORT - MODULE FOR PRESTASHOP 8.x AND 9.x
Version 5.0.0
Author: cyberhack
================================================================================

DESCRIPTION
-----------
PrestaShop module that allows you to import products, categories,
manufacturers and images directly from Danea EasyFatt to your PrestaShop store.


SYSTEM REQUIREMENTS
-------------------
- PrestaShop 8.x or 9.x
- PHP 8.0 or higher
- Danea EasyFatt (version 2009r12 or later)
- FTP or SSH access to the server
- Write permissions on image folders


INSTALLATION
------------

1. UPLOAD THE MODULE
- Access PrestaShop Back Office
- Go to: Modules > Module Manager
- Click on "Upload a module"
- Select the module ZIP file (or daneaimport folder)
- Click "Install"

2. ACTIVATE THE MODULE
- After installation, click "Configure"
- The module will automatically create necessary database tables


INITIAL CONFIGURATION
---------------------

1. GENERAL SETTINGS

Convert Images?
- Yes: Images are automatically resized
- No: Faster import, but images must be pre-optimized

Use Price 5 as Discount?
- Select which Danea price list to use as discounted price
- PrestaShop will show Price List 1 (strikethrough) and discount price

Use PrestaShop Hooks?
- Yes: Compatible with all plugins (slower)
- No: Faster import

Ignore Specific Prices
- Select if you want to manage discounts and groups from PrestaShop
back office

Prevent Delete from Danea?
- Yes: Danea cannot delete products (keeps everything)
- De-Activate but keep it: Deactivates products (active=0)
- No: Completely deletes products from database

Preserve Images?
- Yes: During update does NOT update existing images
- No: Always updates images

Preserve Tables?
- Yes: Danea cannot delete tables even in full upload
- No: Allows complete deletion

Language
- Select the language for import

2. UPDATE FIELDS CONFIGURATION

Enable/Disable which fields to update during import:
- name (product name)
- meta_description
- meta_title
- description (full description)
- description_short (short description)
- wholesale_price (wholesale price)
- link_rewrite (URL-friendly)
- available_now / available_later
- date_upd (update date)
- quantity
- weight
- id_manufacturer
- id_supplier
- ean13 (barcode)

3. USE PRICE LISTS FOR GROUPS

You can associate Danea price lists to PrestaShop customer groups:
- Price List 1 → Visitor Group
- Price List 2 → Guest Group
- Price List 3 → Customer Group
- Price List 4 → Other custom groups

WARNING: You cannot set the same group for multiple price lists!

PRESTASHOP 9.x COMPATIBILITY
----------------------------

This module has been updated for PrestaShop 9 and includes:
- ✅ Removed meta_keywords field (deprecated)
- ✅ Removed quantity_discount field (deprecated)
- ✅ Updated id_attribute → id_product_attribute
- ✅ Removed location field (deprecated)
- ✅ Added isbn, upc, mpn fields for combinations
- ✅ Correct quantity management in stock_available
- ✅ Removed PEAR dependency
- ✅ Compatible with PHP 8.x


IMPORTANT NOTES
--------------

1. BACKUP: Always make a complete database backup before importing
large quantities of products

2. TESTING: Test first with a few products to verify everything
works correctly

3. IMAGES: Images must be in JPG format and should have the same
name as the product code in Danea

4. PERFORMANCE: For very large imports (>1000 products), consider
temporarily disabling indexing and cache

5. PRICE GROUPS: Configure groups before importing if you want to
use price lists for specific groups

SUPPORT
-------

For issues or questions:
- Verify all files are uploaded correctly
- Check PrestaShop logs for specific errors
- Always clear cache after module modifications
- Verify Danea XML file is correct

CHANGELOG VERSION 5.0.0
-----------------------
- Full compatibility with PrestaShop 9.x
- Compatibility with PHP 8.x
- Removed deprecated fields (meta_keywords, quantity_discount, location)
- Fixed quantity management in stock_available
- Added support for isbn, upc, mpn in combinations
- Fixed UTF-8 encoding issues
- Improved UI (icons instead of missing GIFs)
- Fixed product deletion logic with 3 options
- Removed PEAR dependency
- Fixed deprecated methods (Tools::stripslashes)

I TESTED AND CREATED MODULE IN PRESTASHOP 9.X.X FOR PROBLEM POST YOUR MESSAGE!
================================================================================
End of guide
================================================================================
 

Attachments

  • daneaimport.zip
    57.2 KB · Views: 6
Top