Upgrade from v4.3.8 or below to v4.3.9 or above


Manually change templates


If you upgrade from Reverse Auction Factory v4.3.8 or below to version v4.3.9 or above and choose to NOT overwrite templates, then you will have to do the following precise modifications for compatibility reasons.

replace:

{if $terms_and_conditions}
    var must_accept_term= true;
{else}
    var must_accept_term= false;
{/if}
var auction_currency='{$auction->currency}';


with:

{if !empty($terms_and_conditions)}
    var must_accept_term= true;
{else}
    var must_accept_term= false;
{/if}
{if !empty($auction->currency)}
    var auction_currency='{$auction->currency}';
{else}
    var auction_currency='';
{/if}


replace:

{if ($googleMapX && $googleMapY)}


with:

{if (!empty($googleMapX) && !empty($googleMapY))}


replace:

{assign var = auction value = `$auction_rows[auctionsloop]`}
{assign var = index value = `$smarty.section.auctionsloop.rownum`}


with:

{assign var = auction value = $auction_rows[auctionsloop]}
{assign var = index value = $smarty.section.auctionsloop.rownum}


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction` index=`$index`}


with:

{include file='elements/lists/t_listauctions_cell.tpl' auction=$auction index=$index}


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction` index=`$index`}


with:

 {include file='elements/lists/t_listauctions_cell.tpl' auction=$auction index=$index}


replace:

<span style = "font-size: 24px;text-align: right;">{printprice price=$auction->max_price currency=$auction->currency}</span>


with:

<span style = "font-size: 24px;text-align: right;">{printprice price=$auction->max_price auction=$auction currency=$auction->currency}</span>


replace:

{"COM_RBIDS_WINNING_BID"|translate}: {printprice price=$auction->get('winning_bid') currency=$auction->currency}


with:

{"COM_RBIDS_WINNING_BID"|translate}: {printprice price=$auction->get('winning_bid') auction=$auction currency=$auction->currency}


replace:

{"COM_RBIDS_BEST_BID"|translate}: {printprice price=$auction->get('lowest_bid') currency=$auction->currency}


with:

{"COM_RBIDS_BEST_BID"|translate}: {printprice price=$auction->get('lowest_bid') auction=$auction currency=$auction->currency}


replace:

{if $payment_items_header} 


with:

{if !empty($payment_items_header)} 


replace:

{if !$auction->expired && !$auction->close_offer && $auction->extended_counter>0} 


with:

{if empty($auction->expired) && !$auction->close_offer && $auction->extended_counter>0} 


replace:

{printprice currency=$auction->currency price=$auction->max_price} 


with:

{printprice currency=$auction->currency auction=$auction price=$auction->max_price}


replace:

{printprice price=$auction->get('lowest_bid') currency=$auction->currency} 


with:

{printprice price=$auction->get('lowest_bid') auction=$auction currency=$auction->currency}


replace:

{if $cfg->google_key && $cfg->map_in_auction_details &&(($auction->googlex && $auction->googley)||($user->googleMaps_x && $user->googleMaps_y)) } 


with:

{if $cfg->google_key && $cfg->map_in_auction_details &&(($auction->googlex && $auction->googley)||($auctioneer->googleMaps_x && $auctioneer->googleMaps_y)) } 


replace:

 alt = "bid" {$disable_bids}/>&nbsp;{$auction->currency}&nbsp; 


with:

 alt = "bid"/>&nbsp;{$auction->currency}&nbsp; 


replace:

<input type = "checkbox" class = "inputbox" name = "agreement" value = "1" {$disable_bids} /> 


with:

<input type = "checkbox" class = "inputbox" name = "agreement" value = "1"/> 


replace:

<input type = "submit" name = "send" value = "{'COM_RBIDS_SEND_BID'|translate}" class = " btn button" {$disable_bids}/> 


with:

<input type = "submit" name = "send" value = "{'COM_RBIDS_SEND_BID'|translate}" class = " btn button"/> 


replace:

<input type="hidden" name="return" value="{$return}"/> 


with:

{*<input type="hidden" name="return" value="{$return}"/>*} 


replace:

{assign var = auction value = `$auction_rows[auctionsloop]`}
{assign var = index value = `$smarty.section.auctionsloop.rownum`} 


with:

{assign var = auction value = $auction_rows[auctionsloop]}
{assign var = index value = $smarty.section.auctionsloop.rownum} 


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction_rows[auctionsloop]` index=`$smarty.section.auctionsloop.rownum`} 


with:

{include file='elements/lists/t_listauctions_cell.tpl' auction=$auction_rows[auctionsloop] index=$smarty.section.auctionsloop.rownum} 


replace:

{assign var = auction value = `$auction_rows[auctionsloop]`}
{assign var = index value = `$smarty.section.auctionsloop.rownum`}


with:

{assign var = auction value = $auction_rows[auctionsloop]}
{assign var = index value = $smarty.section.auctionsloop.rownum}


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction_rows[auctionsloop]` index=`$smarty.section.auctionsloop.rownum`}


with:

{include file='elements/lists/t_listauctions_cell.tpl' auction=$auction_rows[auctionsloop] index=$smarty.section.auctionsloop.rownum}


replace:

{assign var="index" value=`$smarty.section.category.rownum`}


with:

{assign var="index" value=$smarty.section.category.rownum}


replace:

{assign var = auction value = `$auction_rows[auctionsloop]`}
{assign var = index value = `$smarty.section.auctionsloop.rownum`}


with:

{assign var = auction value = $auction_rows[auctionsloop]}
{assign var = index value = $smarty.section.auctionsloop.rownum}


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction_rows[auctionsloop]` index=`$smarty.section.auctionsloop.rownum`}


with:

{include file='elements/lists/t_listauctions_cell.tpl' auction=$auction_rows[auctionsloop] index=$smarty.section.auctionsloop.rownum}


replace:

{if $payment_items_header}


with:

{if !empty($payment_items_header)}


replace:

<input type="hidden" name="oldid" value="{$oldid}"/>


with:

<input type="hidden" name="oldid" value="{$oldid|default: 0}"/>


replace:

{printprice price=$auction->max_price currency=$auction->currency}


with:

{printprice price=$auction->max_price auction=$auction currency=$auction->currency}


replace:

{printprice price=$auction->max_price currency=$auction->currency}


with:

{printprice price=$auction->max_price auction=$auction currency=$auction->currency}


replace:

{printprice price=$cfg->set_default_max_price currency=$auction->currency}


with:

{printprice price=$cfg->set_default_max_price auction=$auction currency=$auction->currency}


replace:

{include file='elements/filter_button.tpl' label="COM_RBIDS_MY_AUCTIONS_TAB_PUBLISHED_OFFERS"|translate}


with:

{include file='elements/filter_button.tpl' filter='published' label="COM_RBIDS_MY_AUCTIONS_TAB_PUBLISHED_OFFERS"|translate}


replace:

{assign var = auction value = `$auction_rows[auctionsloop]`}
{assign var = index value = `$smarty.section.auctionsloop.rownum`}


with:

{assign var = auction value = $auction_rows[auctionsloop]}
{assign var = index value = $smarty.section.auctionsloop.rownum}


replace:

{include file='elements/lists/t_listauctions_cell.tpl' auction=`$auction_rows[auctionsloop]` index=`$smarty.section.auctionsloop.rownum`}


with:

{include file='elements/lists/t_listauctions_cell.tpl' auction=$auction_rows[auctionsloop] index=$smarty.section.auctionsloop.rownum}


replace:

{if $cfg->google_key && $cfg->map_in_auction_details &&(($auction->googlex && $auction->googley)||($user->googleMaps_x && $user->googleMaps_y)) }
   {if ($auction->googlex && $auction->googley)}
      {include file='js/t_javascript_maps.tpl' googleMapX=$auction->googlex googleMapY=$auction->googley}
   {elseif ($user->googleMaps_x && $user->googleMaps_y)}
      {include file='js/t_javascript_maps.tpl' googleMapX=$user->googleMaps_x googleMapY=$user->googleMaps_y}


with:

{if $cfg->google_key && $cfg->map_in_auction_details &&(($auction->googlex && $auction->googley)||($auctioneer->googleMaps_x && $auctioneer->googleMaps_y)) }
   {if ($auction->googlex && $auction->googley)}
      {include file='js/t_javascript_maps.tpl' googleMapX=$auction->googlex googleMapY=$auction->googley}
   {elseif ($auctioneer->googleMaps_x && $auctioneer->googleMaps_y)}
      {include file='js/t_javascript_maps.tpl' googleMapX=$auctioneer->googleMaps_x googleMapY=$auctioneer->googleMaps_y}


replace:

{if ($googleX!="" && $googleY!="") || $cfg->google_key!="" }


with:

{if ($googleMapX!="" && $googleMapY!="") || $cfg->google_key!="" }


replace:

{if $cfg->allowpaypal && !$cfg->hide_contact}


with:

{if $cfg->allow_paypal && !$cfg->hide_contact}


replace:

{foreach from=$user->activity_domains item=item name=item}
   <a href = '{$links->getAuctionListRoute($item->aucLinkFilterCatIdUserId)}'>{$item->catname}</a>{if !$smarty.foreach.item.last}, {/if}
{/foreach}


with:

{if $user->activity_domains|is_array}
   {foreach from=$user->activity_domains item=item name=item}
      <a href = '{$links->getAuctionListRoute($item->aucLinkFilterCatIdUserId)}'>{$item->catname}</a>{if !$smarty.foreach.item.last}, {/if}
   {/foreach}
{else}
   {$user->activity_domains}
{/if}