Reply to topic
Loop through Categories array???
jsteen


Joined: 20 Mar 2006
Posts: 3
Reply with quote
I am looking for a way to get past the HTML forced on me in
<mvt:item name="category_tree" />
I know I can loop through the Products array with
<mvt:foreach iterator="product" array="products">
and then just use &mvt:product:paramater_to_display/use
to get the info i want out of the products array.

Is there an array for the categories? What's it named?
I've been looking all over the miva site, my host's site and google
to figure this out- can't seem to find an answer anywhere?

Thanks,
Jon
pruthvikb


Joined: 15 Dec 2005
Posts: 7
Reply with quote
Hi

I am also looking for this.

See this link http://extranet.miva.com/forums/showthread.php?t=304. Here I have placed my query here

Kumar
JohnPPCC


Joined: 05 Feb 2008
Posts: 1
Reply with quote
What I need is either something like this, or just a way to run a query and check a recordcount, ala:

<mvt:if RecordCount("SELECT mv5Categories.Name, mv5Products.Name
FROM (mv5Categories INNER JOIN mv5ProductCategories ON mv5Categories.CategoryID = mv5ProductCategories.CategoryID) INNER JOIN mv5Products ON mv5ProductCategories.ProductID = mv5Products.ProductID
WHERE ((mv5Categories.Name=\"CatName\") AND ((mv5Products.Name=\"ProdName\"));")>
Show Stuff Here For The Product If It's In Category 'CatName'!
</mvt:if>

(I have no idea what the table or field names are, this is very simply pseudocode.)
Loop through Categories array???
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic