Store quantity

Marik

No avatar

2006-09-26 10:31

I want in my productsList at my admin panel
to show how many product there are in my stock
Normally you use the $aList[iStore] but it doesn't show anything

How can i fix this?

Marik

No avatar

2006-09-26 10:31

I use StoreLight btw ;)

treewood (OpenSolution)

Avatar: treewood

2006-09-26 10:43

Marik - in products list there is no info about it. Only in product details. It is not nessesery to get this info from another file in db/ directory and have more load shop but if You know PHP You should:
1. in plugins/storeLight/actions_client.php add:

if( $p == 'productsList' )
  
$aStoreProducts throwProductsStore( );


2. In file core/products.php in function throwProductsData() add in for lines:

if( isset( $GLOBALS['aStoreProducts'][$aList['iProduct']] ) )
    
$aList['iStore'] = $GLOBALS['aStoreProducts'][$aList['iProduct']];
  else
    
$aList['iStore'] = null;


3. After add variable $aList[iStore] to templates/products_list.tpl

ps. i didn't test it

Marik

No avatar

2006-09-26 11:02

sorry it doesn't work
do you have other suggestions?

Marik

No avatar

2006-09-26 11:11

Got the counting down of the stock working btw ;)

treewood (OpenSolution)

Avatar: treewood

2006-09-26 11:26

marik - then it is working or not?

Marik

No avatar

2006-09-26 11:43

No, I want to see in my Admin panel at the product_list how many product I got in one view

treewood (OpenSolution)

Avatar: treewood

2006-09-26 13:57

Marik - then edit file plugins/storeLight/actions_admin.php not plugins/storeLight/actions_client.php and change in templates/admin/products_list.tpl not templates/products_list.tpl

Marik

No avatar

2006-09-26 14:22

I knew it and did it already?

Marik

No avatar

2006-09-26 14:22

but it doesn't work :(

Marik

No avatar

2006-09-26 17:11

Treewood - Got another Idea?

treewood (OpenSolution)

Avatar: treewood

2006-09-26 21:28

Marik - for now i dont have time for test it. sorry

Marik

No avatar

2006-09-27 05:41

When do you have?

Marik

No avatar

2006-09-27 21:03

maybe I can let it see in the pricelist?

Marik

No avatar

2006-10-02 12:50

Stil no one can help me?

Where is the support?

treewood (OpenSolution)

Avatar: treewood

2006-10-02 15:57

Marik - i am sure that it need to work. did You do it right? i am not sure about it

Marik

No avatar

2006-10-02 17:40

I get no information in my productlist
Only empty fields


Maybe I make a wrong order of the code
Need it a special place or something?

Marik

No avatar

2006-10-03 13:32

Got it at the wrong code
I have placed it at:
$aList['fPrice'] = throwSpecialProductPrice( $aList['iProduct'], $aList['fPrice'] );

And now it's working
But i want it in my pricesListPro to
I have add:
if( $p == 'pricesListPro' )
$aStoreProducts = throwProductsStore( );

to admin_actions.php in storelight but it doesn't work :'(

treewood (OpenSolution)

Avatar: treewood

2006-10-03 18:04

Marik - then edit plugins/pricesListPro/actions_admin.php and there put this $aStoreProducts = throwProductsStore( );

Marik

No avatar

2006-10-03 20:53

it works
thanks a lot!

Back to top
about us | contact