MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: browsing X items?



******    message to minivend-users from mikeh@minivend.com     ******

Quoting Thomas Walter (tw@mail.itreff.de):
> 
> Hello all!
> 
> I have a problem with displaying only x items on one page... I used the
> same code as mike did in the demo-shop (the new one) on the browse1-Page
> (where you can browse one or two  items per page). 
> 
> If the total number of items is not divisible through X (the number of
> items to display on one page) without rest - there are empty fields on
> the page ...
> 
> Hmpf - sorry - but it is hard to explain this in english for me... It is
> easy to try it: Just delete one of the items in the simple products.asc
> (or add one) to get an odd number of items. Then browse the shop with
> two items per page. If you get to the last page you will see what I
> mean...
> 
> How do I stop my (and the simple-demo) shop to do this?
> 

[item-next][calc]$item = q{[item-field category]};
                 return 1 unless $item;
                 return 1 if $item eq 'Accessory';
				 return 0;
				 [/calc][/item-next]

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
Fast, reliable, cheap.              131 Willow Lane, Floor 2  | ||  _ \
Pick two and we'll talk.            Oxford, OH  45056         | || |_) |
 -- unknown                         <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: