Top sellers

  • Delete Orders
    Delete Orders

    Enable the option to delete orders in admin page -> orders Also you...

    $0.00
  • CoolShare
    CoolShare

    Add a social bookmarks with mouse over animation.

    $0.00
  • Categories image
    Categories image

    This module allows you to display the block in the category, but with...

    $0.00
  • Mass price update
    Mass price update

    This module allows you to update quantity or percentage, the prices of...

    $0.00

Recent orders (+)

SoldItems
Countdown Specials - Flash sales
Custom Loyalty Rewards

Received: 05/21/2017 12:57:07
Customer: Roman
Send to: Žatec, Czech Republic
Order value:$56.70
View all ->
CSV/TXT/XML Cron Import / Dropshipping

Received: 05/11/2017 13:01:13
Customer: Claudio
Send to: Torino, Italy
Order value:$48.95
View all ->
pMobile - Prestashop template for mobile devices

Received: 05/09/2017 10:08:42
Customer: Franck Frederic
Send to: Abidjan, Ivory Coast
Order value:$79.00
View all ->
PrestaSpeed

Received: 05/04/2017 23:13:43
Customer: Luna
Send to: franca, Brazil
Order value:$52.25
View all ->
CSV/TXT/XML Cron Import / Dropshipping

Received: 05/04/2017 11:51:28
Customer: Mari
Send to: Uddel, Netherlands
Order value:$48.95
View all ->

Update products with 0 stock when Import via CSV

In many cases CSV want to update the stock of products by the importer PrestaShop. The problem usually arises when we want to update products or combinations with the value "0". PrestaShop prevents actualizemos amounts to "0", so we have to resort to a modification to update us products with the value of stock.

We'll have to open the "controllers/admin/AdminImportController.php" file

Seek public function productImport function (), and within it, this line

and eliminate the section "&& (int) $ product-> quantity"

With this we can update products with stock 0 from our CSV

But if we update product combinations, we need to modify another line in the same file. Within the attributeImport (function), we seek:

and replaced by:


With this, we should update products with stock "0".

We can also create an override of the class AdminImportController.php not lose it when you upgrade.