Inserting a another field in the array

RuR

Avatar: RuR

2012-05-24 10:13

How can I insert another field in the cart array?
Now the basket shows Name |Price[EUR] | Quantity | Total[EUR]
and I want another field here

» Quick.Cart v5.x

treewood (OpenSolution)

Avatar: treewood

2012-05-25 09:53

RuR - what you want to display?

RuR

Avatar: RuR

2012-05-25 10:47

Id of certain pages that i store in a session....
example im buying the walking boots / trekking witch page has id=20, I buy those boots and i want to store that Id with Name |Price[EUR] | Quantity | Total[EUR] .....

RuR

Avatar: RuR

2012-05-27 10:10

anyone?

treewood (OpenSolution)

Avatar: treewood

2012-05-28 07:14

rur ... problem is that product can be in more then in one category. but maybe it will help.

edit core/orders.php and find function listProducts() after this code

if( isset( $this->aProducts ) ){

add this

$oProduct Products::getInstance( );


after in the same function after code

$aData['sPrice'] = displayPrice$aData['fPrice'] );

add this

$aData['sPages'] = $oProduct->throwProductsPagesTree$aData['iProduct'] );


Now edit templates/default/orders_step-1.tpl and put somewhere (between start and the end of LIST) this variable:
$aData[sPages]

RuR

Avatar: RuR

2012-05-29 12:09

treewood i had an idea but need your understanig of the code that i implement it.
for each subpage i put an Id of the page in the session(got that done).now i would like to generate a few baskets-> the main id looks like this

Tents
Name | Price[€] | quantity |Total[€]
item1
item2
ect
----------------------------------------------------------------------
Hinking boots
Name | Price[€] | quantity |Total[€]
item1
item2
ect
----------------------------------------------------------------------
Hinking boots
Name | Price[€] | quantity |Total[€]
item1
item2
ect
----------------------------------------------------------------------
btnSubmit

Back to top
about us | contact