Add Time based reorder funktion

If you have reorder enablet this is a litle hack to show the reorder only for 2 days



(I have the Multivendor and if the price for dis ordered product change the product price remain the old)


  • open the [yourtemplate] customer/views/orders/components/order_repay.tpl



    Change this code ( have a automatic scroll funktion if the reorder template are active)

```php

{* $Id$ }

{if $order_info.total|floatval && ($order_info.timestamp+60
60*48 >= $smarty.now)}

{literal}


{/literal}

{capture name=“group”}


{include file="common_templates/subheader.tpl" title=$lang.repay_order}
{script src="js/cc_validator.js"}



{foreach from=$payment_methods item="pm" name="pay"}






{/foreach}

{$pm.payment}   {$pm.description}

{if $payment_method.template}

{include file="views/orders/components/payments/`$payment_method.template`" payment_id=$payment_method.payment_id}
{/if}
{$lang.payment_surcharge}: {include file="common_templates/price.tpl" value=$payment_method.surcharge_value class="list_price"}

{include file="views/checkout/components/customer_notes.tpl"}


{if $payment_method.params.button}
{$payment_method.params.button}
{else}
{include file="buttons/button.tpl" but_text=$lang.repay_order but_name="dispatch[orders.repay]" but_role="action"}
{/if}



{/capture}
{include file="common_templates/group.tpl" content=$smarty.capture.group}
{/if}
```