• 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

How to show staffelprices and quantity of stock


Author Message
LC4Peiniger
Wolfgang Maier
Multishop experienced
Topic creator
registered since: 12.04.2012
Posts: 16
Hi together,
Does anyone of you have an idea how to show the staffelprices anf the quantity of stock in the product detailed page?
There are posibillities within the ms-setup but the staffelprice is just calculated when the ordered product is put to the cart...
But it would be nice (and maybe fundamental for a shopsystem) that the customer could see the staffels and the availability of a product.

THX in advance
Wolfgang
Written on: 10. 05. 2012 [06:08]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
If you wanna show a table that contains the staffels, try to add this to your customized products detail page:

PHP
if ($product['staffel_price'])
	{
		$tmpcontent='
				<h3>Staffelprijzen</h3>
				<table cellpadding="0" cellspacing="0" id="staffel_price_table" >
					<tr>
						<th align="right">aantal van</th>
						<th align="right">aantal tot</th>
						<th align="right">prijs per stuk</th>
					</tr>';
 
		$sp_rows = explode(';', $product['staffel_price']);
		$type='even';
		foreach ($sp_rows as $sp_idx => $sp_row)
		{
			if ($type=='even') 	$type='odd';
			else				$type='even';
			$sp_idx += 1;
			list($sp_col, $sp_price) = explode(':', $sp_row);
			list($sp_col_1, $sp_col_2) = explode('-', $sp_col);
			$tmpcontent.='
						<tr class="'.$type.'">
							<td align="right">'.number_format($sp_col_1,0,'','.').'</td>
							<td align="right">'.number_format($sp_col_2,0,'','.').'</td>
							<td align="right">'.mslib_fe::Money2Cents(($sp_price*(1+$product['tax_rate']))).'
						</tr>';
 
		}
		$tmpcontent.='
				</table>
		';
		$output['products_description']	.= $tmpcontent;
	}


If you want to display the stock level, you can configure the setting SHOW_STOCK_LEVEL_AS_BOOLEAN to yes_with_image. Can be found in SYSTEM / SETTINGS.

Or customize the detail page and add $product['products_quantity'] where you want to display it.

Written on: 12. 05. 2012 [00:11]
LC4Peiniger
Wolfgang Maier
Multishop experienced
Topic creator
registered since: 12.04.2012
Posts: 16
Thanks Bas for your help icon_smile.gif Now I understand the template-system of the ms a little bit better icon_smile.gif ...and it worked fine...
Written on: 14. 05. 2012 [19:54]