Change Best Bids on Index Page to Latest Bids

Details of modifications which users can incorporate within Enuuk Auction Platform free of charge
Post Reply
RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Change Best Bids on Index Page to Latest Bids

Post by RWAP » Fri Jan 08, 2010 8:10 am

From v1.6 of Enuuk, the home page shows Best Bids placed on the system - this can be confusing as you only need a few high value fixed price items to dominate the list.

We found it better to change this to the latest bids placed:

In themes\default\index.php
Find:

Code: Select all

                    <h2><?=_('Best bids')?></h2>
Replace with:

Code: Select all

                    <h2><?=_('Latest bids')?></h2>
In class\Action\Index.php
Find:

Code: Select all

        $data['highestBids'] = Bid::getListFromDB($this->db, 'where offers.active=1 '.(!$adultAuctions ? ' and offers.adult=0' : '').' order by value desc limit '.$siteOptions['maxHighestBidItems']);
Replace with:

Code: Select all

        $data['highestBids'] = Bid::getListFromDB($this->db, 'where offers.active=1 '.(!$adultAuctions ? ' and offers.adult=0' : '').' order by date desc limit '.$siteOptions['maxHighestBidItems']);

cynic-
Posts: 73
Joined: Tue Dec 28, 2010 4:00 pm
Contact:

Re: Change Best Bids on Index Page to Latest Bids

Post by cynic- » Fri Feb 18, 2011 4:36 pm

Thank you, and to be more accurate...
'Latest bids' has no occurrence in language other than english so it is necessary to update your language file (messages.po)

Code: Select all

# $MSG_117
#: themes/default/index.php:16
msgid "Latest bids"
msgstr "Latest bids"
Enuuk auction platform v2.6 / upgrading to v2.8
French translation in progress

RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Change Best Bids on Index Page to Latest Bids

Post by RWAP » Fri Feb 18, 2011 5:33 pm

OK - but what should the translation be for other languages?

cynic-
Posts: 73
Joined: Tue Dec 28, 2010 4:00 pm
Contact:

Re: Change Best Bids on Index Page to Latest Bids

Post by cynic- » Mon Feb 21, 2011 3:19 pm

Good question, sorry for forgetting ;) Should be (translating via Google for German and Spanish)

FRENCH

Code: Select all

# $MSG_117
#: themes/default/index.php:16
msgid "Latest bids"
msgstr "Dernières offres"
SPANISH

Code: Select all

# $MSG_117
#: themes/default/index.php:16
msgid "Latest bids"
msgstr "Últimas ofertas"
GERMAN

Code: Select all

# $MSG_117
#: themes/default/index.php:16
msgid "Latest bids"
msgstr "Neuesten Angebote"
Enuuk auction platform v2.6 / upgrading to v2.8
French translation in progress

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest