Jump to content

How do I reset download link


Guest tptstore

Recommended Posts

Guest tptstore

Hi. In v4 you could easily reset a download link for a customer. I can't find how to do this in v5. Surely this functionality hasn't been dropped?

Link to comment
Share on other sites

  • 2 months later...

  • 5 months later...

In the admin screen, Orders, Order Summary for a particular order, Items list area, for each item, there should be one or two lines that looks like:

1 x Test Product - TESA31 ($6.75) [ link ] $6.75

Options Chosen

In the file /admin/skins/default/templates/order.index.php at around line 143, the corresponding code looks like:

{$product.quantity} x {$product.name} - {$product.product_code} ({$product.line_formatted})

{if $product.digital}<a href="{$VAL_SELF}&amp;reset_id={$product.id}" />[{$LANG.orders.reset_download_link}]</a>{/if}

<span>{$product.price_total_formatted}</span>

{if $product.options}<br />{$product.options}{/if}

So, if the product is digital, then there should be a link on this line that will reset the expiration to now+timelimit.

If you do not see this, then we will need to determine why.

Link to comment
Share on other sites

Weird, here's what I've got in that spot:


{foreach from=$PRODUCTS item=product}

    <div id="item">

    {$product.quantity} x {$product.name} - {$product.product_code} ({$product.line_formatted})<span>{$product.price_total_formatted}</span>

    {if $product.options}

	 <br />{$product.options}

	 {/if}

    </div>

    {/foreach}

Link to comment
Share on other sites

Since it just looked like it was missing


{if $product.digital}<a href="{$VAL_SELF}&amp;reset_id={$product.id}" />[{$LANG.orders.reset_download_link}]</a>{/if}

I inserted that line. It now shows [] in the spot to reset the item. looks like it does it, but i'm thinking it should have some text between those brackets.

Link to comment
Share on other sites

This feature was added in 506. It comprises of three items:

1. The form element (the link)

2. The code to process the parameters contained in the link (&reset_id=99)

3. The language file to give $LANG.orders.reset_download_link the wording.

Please be aware that the vast amount of answers to questions posed will relate to the latest version of CC at the time of the posted reply unless otherwise specified. Please be sure that you are aware of your own installation's version and mention that version when posting.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...