• 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

Mini Basket


Author Message
islacanaria
Oliver Troch
Multishop experienced
Topic creator
registered since: 21.07.2010
Posts: 11
Hi togehter,

is somebody able to tell me how to place a Minibasket for the overview on the site?

Saludos Oliver
Written on: 01. 09. 2011 [08:34]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
You can customize the basket to your needs by seperating the basket PHP file from the multishop source and adjust it.

On default we provide two setups:

default
button

What you can do is:

go to SYSTEM / SETTINGS
Click the setting: Basket Content Element Type (key name BASKET_TYPE)
Change the value to: button

If this is not like you want it to be just copy the PHP script:

scripts/front_pages/includes/basket/button.php

To:

fileadmin/scripts/

Add the relative path to the setting BASKET_TYPE without .php at the end (fileadmin/scripts/button)

Example PHP contents:

PHP
<?php
$this->box_class="multishop_basket";
$this->cObj->data['header']='<a href="'.mslib_fe::typolink($this->conf['shoppingcart_page_pid'],'&tx_multishop_pi1[page_section]=shopping_cart').'">'.$this->pi_getLL('basket').'</a>';
$cart = $GLOBALS['TSFE']->fe_user->getKey('ses', 'tx_multishop_cart');
$totalitems=0;
if (count($cart['products']) >0)
{
	foreach ($cart['products'] as $product)
	{
		if (is_numeric($product['qty'])) $totalitems=$totalitems+$product['qty'];
	}
}
$content .= '
<a href="'.mslib_fe::typolink($this->shop_pid,'&tx_multishop_pi1[page_section]=shopping_cart').'" class="multishop_basketbox"><span>'.$totalitems.'</span></a>
';
?>


Written on: 14. 10. 2011 [20:01]