| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Same productid but different option, so add don't update | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Can anyone tell me the location of the code that updates the quantity of an item in the cart if the productid's are the same?
I will explain what I am trying to do just to clarify... I have items where it is the exact same productid but you pick from a company, and date drop down before you add to cart. If you add the item once it works great. Now once you have the item in your cart and you go back to choose the same item but change the company and/or date and add that to the cart it updates the quantity of the previously added item. I know this is because in the cart.php or func.php it is seeing if the newly added productid is the same as the productid in the cart. If it is it updated the amount of the product in the cart. What I want to do is add more to the if statement that updates the quantity. I have checked all over but cannot find the code that updates the cart amount if both productid's are the same. I removed this line from the func.php (line 2175) Code:
I also removed this from the cart.php (line 227) Code:
But it still just updates the product already in the cart if the added productid is the same.
__________________
Gibberish [Unix] X-Cart 4.0.12 |
|||||||
#2
|
|||||||
|
|||||||
![]() Still unable to find this code.
Can anyone tell me the location of the code that updates the quantity of an item in the cart if the newly added productid is the same as the product int he cart?
__________________
Gibberish [Unix] X-Cart 4.0.12 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|