• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:

https://translation.typo3.org/projects/TYPO3.ext.multishop/

Spanish:

https://translation.typo3.org/es/TYPO3.ext.multishop/pi1/locallang.xlf

The following language are already translated by our supporters:

  • Dutch
  • German
  • French

Virtual Product link not visible


Author Message
puci
Peter
Multishop experienced
Topic creator
registered since: 20.04.2012
Posts: 13
If I enter the ###ORDER_DETAILS### in the "email_order_payed_letter" I only get the details in the email but not the link to the product.

Do I have to set another Marker than ###ORDER_DETAILS### or create a new one?
Written on: 04. 06. 2012 [14:57]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
We already fixed it in our development repository, but is not yet ready for publishing.

You can fix it manually by:

Opening the file class.mslib_fe.php

Find the method: function printOrderDetailsTable($order,$type='site')

After the loop:
PHP
if (count($product['attributes']))
{
  // code
}


Add:
PHP
if ($order['payed'] and $product['file_download_code'])
{
    // virtual product
    if (!$product['file_label']) $product['file_label']=$product['products_name'];
    $content.='<a href="'.$this->FULL_HTTP_URL.''.mslib_fe::typolink(",2002",'&tx_multishop_pi1[page_section]=get_micro_download&code='.$product['file_download_code'].'&orders_id='.$order['orders_id']).'">Download micro download: '.htmlspecialchars($product['file_label']).'</a>';
}


So your code looks like:

PHP
if (count($product['attributes']))
{
    foreach ($product['attributes'] as $tmpkey => $options)
    {
        $subprices.='<BR>';
        if ($ms['MODULES']['SHOW_PRICES_INCLUDING_VAT'])
        {
            $attribute_price=round(($options['options_values_price']*($product['products_tax']/100))+$options['options_values_price'],4);
        }
        else $attribute_price=$options['options_values_price'];
        $content.='<BR>'.$options['products_options'].': '.$options['products_options_values'];
        $price=$price+($product['qty']*($options['price_prefix'].$options['options_values_price']));
        if ($price < 0) $price=0;
        if ($options['options_values_price'] >0) $subprices.=mslib_fe::Money2Cents(($product['qty']*($options['price_prefix'].$attribute_price)));
    }
}
if ($order['payed'] and $product['file_download_code'])
{
    // virtual product
    if (!$product['file_label']) $product['file_label']=$product['products_name'];
    $content.='<a href="'.$this->FULL_HTTP_URL.mslib_fe::typolink(",2002",'&tx_multishop_pi1[page_section]=get_micro_download&code='.$product['file_download_code'].'&orders_id='.$order['orders_id']).'">Download micro download: '.htmlspecialchars($product['file_label']).'</a>';
}
Written on: 11. 06. 2012 [17:42]
crewcut
Kim Holberg
Multishop experienced
registered since: 19.05.2012
Posts: 7
Hi Bas,

I tried to modify as per your instructions, but i still do not receive any download-link in the email.

Could you please specify the procedure in the shop control panel and confirm the markers i have to use...

Regards,

Kim Holberg Andersen

[This article was edited 1 times, at last 04.08.2012 at 19:16.]
Written on: 04. 08. 2012 [19:14]