Prestashop modules by QuickUpdate
Bringing e-commerce to the next level

EASY INSTALL
Modules install without additional software

15 DAYS RETURN
Refund for any unsolvable issues

SECURE PAYMENT
Pay securely through Paypal

DEDICATED SUPPORT
Our experts are here to help

[QuickFix] Adding product combination sets price instead of quantity
Pages: [1]
  Print  
Author Topic: [QuickFix] Adding product combination sets price instead of quantity  (Read 2646 times)
admin
Administrator
Full Member
*****
Offline Offline

Posts: 161


View Profile
« on: June 04, 2012, 04:42:43 PM »

Affected:

QuickUpdate v4.5 on PS v1.4.x

Problem:

When adding a new combination for products in the shop, the price is increased with the value of the "quanitty" field.

This is actually bith a bug in QuickUpdate and Prestashop because for objective reasons the PS management of the combinations is not very consistent.

Solution:

1. Edit "/adminfolder/quickupdate/database.php"
2. Go to LINE 318 (or LINE 635 depending on editor) - identify the approximate section by searching the file for "addCombination()"
3. Replace line with:
Code:
$combinationID			= $this->versionCompare("1.4") ? $product->addCombinationEntity($wholesale_price, $price, $weight, $unit_impact, $ecotax, $quantity, $id_images, $reference, $supplier_reference, $ean13, $default, $location, $upc) : $product->addCombinationEntity($wholesale_price, $price, $weight, $ecotax, $quantity, $id_images, $reference, $supplier_reference, $ean13, $default, $location);

« Last Edit: June 04, 2012, 04:45:36 PM by admin » Logged
Pages: [1]
  Print  
 
Jump to:  

Panier  

(vide)