| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Array Question | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Hi Everyone,
I have this array: Code:
Code:
I looked on php.net, but either I am missing it or it doesn't exist. Hopefully someone knows how to do this. Thanks
__________________
Following the signature guidelines |
|||||||
|
#2
|
|||||||
|
|||||||
|
Hi,
If you look within cart.php there is already a function there that does this kind of thing. I guess you are looking to do an add multiple products to cart or something. If you are it is easier to add all the products/amounts to the array that you are referring to then loop through the cart.php for each element of the array - this will sort the add multiple products side for you plus look at the product options elements aswell.
__________________
ex x-cart guru |
|||||||
|
#3
|
|||||||
|
|||||||
|
FD,
Actually I am making a module that compares what you have in your cart to what people have bought in the past and then recommends products you should consider. I am thinking that I'll put it on the cart.php page and the individual products page. Thanks for the tip
__________________
Following the signature guidelines |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||