OXID Community Forum

> International Forums > Templates and Design > Understanding how basket items are traversed in basket.tpl
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Understanding how basket items are traversed in basket.tpl


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 12-20-2011, 02:48 PM
r.kiefer r.kiefer is offline
Junior Member
Join Date: Dec 2011
Posts: 3
r.kiefer is on a distinguished road
Default Understanding how basket items are traversed in basket.tpl

Hello there,

I wonder how the basket items in the basket.tpl are traversed, line 77-79:
Quote:
[{assign var="basketitemlist" value=$oView->getBasketArticles() }]
[{foreach key=basketindex from=$oxcmp_basket->getContents() item=basketitem name=test_Contents}]
[{assign var="basketproduct" value=$basketitemlist.$basketindex }]
What I do not get is why there are two calls: getBasketArticles() and getContents(). As far as I understand that, both should return an array of current basket items, so I do not see the need for this interweaved structure, but I am sure there is one.

For a future implementation of a modified basket this might be important to me.

Thanks very much,
Richard

Last edited by r.kiefer; 12-20-2011 at 03:03 PM.
Reply With Quote
#Top   #2  
Old 12-21-2011, 11:24 AM
rafaeldabrowski's Avatar
rafaeldabrowski rafaeldabrowski is offline
Senior Member
Join Date: Sep 2010
Posts: 360
rafaeldabrowski is on a distinguished road
Default AW: Understanding how basket items are traversed in basket.tpl

The first call gives you an array of "oxarticles", the second one "oxbasketitems".

Regards

Rafael
__________________
HEINER DIRECT GmbH & Co. KG
www.heiner-direct.com
Reply With Quote
#Top   #3  
Old 12-22-2011, 11:44 AM
r.kiefer r.kiefer is offline
Junior Member
Join Date: Dec 2011
Posts: 3
r.kiefer is on a distinguished road
Default Re: AW: Understanding how basket items are traversed in basket.tpl

Hi Rafael,

thanks very much for the advice. I will dig into this difference.

Cheers,
Richard
Reply With Quote
#Top   #4  
Old 12-22-2011, 11:46 AM
rafaeldabrowski's Avatar
rafaeldabrowski rafaeldabrowski is offline
Senior Member
Join Date: Sep 2010
Posts: 360
rafaeldabrowski is on a distinguished road
Default AW: Understanding how basket items are traversed in basket.tpl

You are welcome.
You know the Codedocumentation ?

http://docu.oxid-esales.com/CE/sourc...n/4.5.0.34568/

Regards

Rafael
__________________
HEINER DIRECT GmbH & Co. KG
www.heiner-direct.com
Reply With Quote
Reply

Bookmarks

Tags
basket, baskettpl, items, traversed, understanding

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Basket! monteiro General 2 02-20-2012 10:16 AM
HDI 2Basket Multiple Items into the Basket via URL rafaeldabrowski Modules 1 02-16-2012 01:26 PM
No Basket Wakker Newbies 8 06-07-2011 02:39 PM
Add another price to basket Jeyush Newbies 2 12-09-2010 06:00 AM
Show Category in Basket-Items ruben_diez Newbies 0 12-08-2010 11:20 AM

All times are GMT +1. The time now is 07:41 PM.