• 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

Categories as menues


Author Message
rowild
Robert Wildling
Multishop experienced
Topic creator
registered since: 20.09.2011
Posts: 9
Hi, gang,

I am looking for an explanation on how to integrate the shop categories into a regular menue, something like that:

Some Menue | Shop Cat 1 | Shop Cat 2 | Another Menu

Some Menu & Another Menu come from regular Typo3 sites. - I didn't find any toturial on this anywhere. Thanks for any hints!

And would it be possible to reduce the width of this very textarea in the forum backend? The right area expands to far UNDER the right sidebar - so the text one writes gets invisible and that's a bit annoying. Thank you!

Regards, Robert
Written on: 27. 09. 2011 [14:11]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Create a custom tmenu

includeLibs.usermenuitems = fileadmin/user_itemArrayProcFunc.php

temp.subpart_mainnavbox.2.itemArrayProcFunc = user_itemArrayProcFuncTest
temp.subpart_mainnavbox.2.itemArrayProcFunc.excUid = 323
temp.subpart_mainnavbox.2.itemArrayProcFunc.catId= 1
temp.subpart_mainnavbox.2.itemArrayProcFunc.shopUid= 206
temp.subpart_mainnavbox.2.itemArrayProcFunc.excUid = 323 <-- which menu id should use this output as submenu

The user_itemArrayProcFunc.php script contains:

PHP
<?php
function user_itemArrayProcFuncTest($menuArr,$conf)
{
	if($conf['parentObj']->id == $conf['excUid'])
	{
		$menuArr = array();
		$lConf = $conf["userFunc."];
		$currentCatId = intval($conf['catId']);
		$sql = "SELECT *,p.staffel_price as staffel_price, tr.tx_rate as tax_rate, IF(s.status, s.specials_new_products_price, p.products_price) as final_price  from tx_multishop_products p left join tx_multishop_specials s on p.products_id = s.products_id left join static_taxes tr on p.tax_id = tr.uid, tx_multishop_products_description pd, tx_multishop_products_to_categories p2c, tx_multishop_categories c, tx_multishop_categories_description cd where   pd.language_id='".$GLOBALS['TSFE']->sys_language_uid."' and cd.language_id=pd.language_id and p.products_id=pd.products_id and p.products_id=p2c.products_id and p2c.categories_id=c.categories_id and p2c.categories_id=cd.categories_id ";
		$res= $GLOBALS['TYPO3_DB']->sql_query($sql);
		if ($error = $GLOBALS['TYPO3_DB']->sql_error())
		{
			$GLOBALS['TT']->setTSlogMessage($error,3);
		}
		else
		{
			$GLOBALS['TT']->setTSlogMessage('NUMROWS:'.$GLOBALS['TYPO3_DB']->sql_num_rows($res));
			while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))
			{
				$row['title'] = $row['products_name'];
				$row['ITEM_STATE'] = 'NO';
				$linkConf = array(
				'parameter' => $conf['shopUid'],
				'additionalParams' =>'&products_id='.$row['products_id'].'&tx_multishop_pi1[page_section]=products_detail',
				'useCacheHash' => '1',
				'returnLast' => 'url',
				);
				if ($currentCatId ==$row['uid'])
				{
					  $row['ITEM_STATE'] = 'ACT';
				}
				$menuArr[] = $row;
			}
		}
	}
	return $menuArr;
}
?>
Written on: 13. 10. 2011 [14:17]
stickyfish
Joost
Multishop experienced
registered since: 12.01.2012
Posts: 14
I've tried this on my site, but i can't get it to work.
I have a lib called mainMenu. That's where the menu should appear.

Should i add something like this to the TS setup?:

includeLibs.usermenuitems = fileadmin/user_itemArrayProcFunc.php
lib.mainMenu.itemArrayProcFunc = user_itemArrayProcFuncTest
lib.mainMenu.itemArrayProcFunc.excUid = 323
lib.mainMenu.itemArrayProcFunc.catId= 1
lib.mainMenu.itemArrayProcFunc.catId= 2
lib.mainMenu.itemArrayProcFunc.catId= 3
lib.mainMenu.itemArrayProcFunc.shopUid= 206
lib.mainMenu.itemArrayProcFunc.excUid = 323

Or do i need to integrate it into this code:

lib.mainMenu = COA
##lib.mainMenu {
10 = HMENU
# defines the menu entrylevel
10.entryLevel = 0
10.1 = TMENU
10.1 {
noBlur = 1
CUR = 1
IFSUB= 1
ACTIFSUB = 1
}

10.1.NO {
wrapItemAndSub = <li class="normal minus">|</li>
}
10.1.CUR {
wrapItemAndSub = <li id="current" class="minus">|</li>
}
10.1.IFSUB {
wrapItemAndSub = <li class="normal plus">|</li>
}
10.1.ACTIFSUB {
wrapItemAndSub = <li class="active minus">|</li>
}

And if so, how?

About the Uid numbers. What is the excUid? Where can i find it?
And the shopUid, is that the page where the coreshop module is placed?


I also received this code from you for the catmenu:

temp.multishop_catlist = USER_INT
temp.multishop_catlist < plugin.tx_multishop_pi1
temp.multishop_catlist {
userFunc = tx_multishop_pi1->main
method=catlist
showifsub=1
}

I changed it to this:
lib.mainMenu = USER_INT
lib.mainMenu < plugin.tx_multishop_pi1
lib.mainMenu {
userFunc = tx_multishop_pi1->main
method=catlist
showifsub=1
}

But this one isn't working also. Don't know what i'm doing wrong. Maybay you can help me?

Thanks.
Written on: 12. 01. 2012 [15:22]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Did you try it with: showifsub=0?

Cause if it's one it will only show when you are inside a main category.
Written on: 13. 01. 2012 [12:06]
stickyfish
Joost
Multishop experienced
registered since: 12.01.2012
Posts: 14
"base" wrote:

Did you try it with: showifsub=0?

Cause if it's one it will only show when you are inside a main category.


Hi Bas,

yes, i have tried it. I use templavoila. Could that be a problem?

Thanks.

Joost
Written on: 13. 01. 2012 [15:38]
bas
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
I have attached the php script. save it to: fileadmin/multishop_scripts/menu.php

Now configure your tmenu inside your TYPO3 template like this:

PHP
includeLibs.usermenuitems = fileadmin/multishop_scripts/menu.php
temp.subpart_mainnavbox = HMENU
temp.subpart_mainnavbox.special = directory
temp.subpart_mainnavbox.special.value = {$BVB_TOPNAV_PID}
temp.subpart_mainnavbox.1 = TMENU
temp.subpart_mainnavbox.1 {
   expAll = 1
}
 
temp.subpart_mainnavbox.1.wrap = <ul>|</ul>
temp.subpart_mainnavbox.1.NO {
  wrapItemAndSub = <li>|</li>
 
}
temp.subpart_mainnavbox.1.IFSUB {
 	before.dataWrap = <li class="hassubs">|
  	wrapItemAndSub = |</li>
}
 
 
temp.subpart_mainnavbox.2 = TMENU
temp.subpart_mainnavbox.2 {
   expAll = 1
   wrap = <ul>|</ul>
   NO.wrapItemAndSub = <li>|</li>
}
 
temp.subpart_mainnavbox.2.itemArrayProcFunc = user_itemArrayProcFunc->user_itemArrayProcFuncTest
temp.subpart_mainnavbox.2.itemArrayProcFunc.catId= {$plugin.multishop.categoriesStartingPoint}
temp.subpart_mainnavbox.2.itemArrayProcFunc.shopUid= {$plugin.multishop.shop_pid}
temp.subpart_mainnavbox.2.itemArrayProcFunc.excUid = {$BVB_PARENT_MENU}
 
 
temp.subpart_mainnavbox.3 = TMENU
temp.subpart_mainnavbox.3 {
   expAll = 1
   wrap = <ul>|</ul>
   NO.wrapItemAndSub = <li>|</li>
}
 
temp.subpart_mainnavbox.3.itemArrayProcFunc = user_itemArrayProcFunc->user_itemArrayProcFunc2
temp.subpart_mainnavbox.3.itemArrayProcFunc.catId= {$plugin.multishop.categoriesStartingPoint}
temp.subpart_mainnavbox.3.itemArrayProcFunc.shopUid= {$plugin.multishop.shop_pid}
temp.subpart_mainnavbox.3.itemArrayProcFunc.excUid = {$BVB_PARENT_MENU}
 
 
temp.subpart_mainnavbox.4 = TMENU
temp.subpart_mainnavbox.4 {
   expAll = 1
   wrap = <ul>|</ul>
   NO.wrapItemAndSub = <li>|</li>
}
 
temp.subpart_mainnavbox.4.itemArrayProcFunc = user_itemArrayProcFunc->user_itemArrayProcFunc2
temp.subpart_mainnavbox.4.itemArrayProcFunc.catId= {$plugin.multishop.categoriesStartingPoint}
temp.subpart_mainnavbox.4.itemArrayProcFunc.shopUid= {$plugin.multishop.shop_pid}
temp.subpart_mainnavbox.4.itemArrayProcFunc.excUid = {$BVB_PARENT_MENU}
 
temp.subpart_miscnavbox = HMENU
temp.subpart_miscnavbox.special = directory
temp.subpart_miscnavbox.special.value = {$BVB_TOPEXT_PID}
temp.subpart_miscnavbox.1 = TMENU
temp.subpart_miscnavbox.1 {
   expAll = 1
}
Attachment

Written on: 26. 01. 2012 [22:28]
fitli65
David Lenherr
Multishop newbie
registered since: 25.05.2012
Posts: 1
Hi Bas

I tried your script...
In my case it does not work... I have an empty output where the NAVI maker is...

marks.NAVI < temp.subpart_mainnavbox

Did you write this script for TemplaVoila or should it work in "normal" Typo3 Installation too?

The first solution in this post I tried too... Same problem...

I only try to get a menu with the categories/subcategories/...

Thanks in advance für your support ;o)
David
Written on: 25. 05. 2012 [12:54]
knut32
Knut Heinrich
Multishop experienced
registered since: 29.05.2012
Posts: 7
I tried this script. But it does not work icon_cry.gif

The marker is empty. I have an "normal" typo3 installation.

Can you help me please? And thanks for your help icon_biggrin.gif

Ich habe dieses Script ausprobiert. Leider funktioniert es bei mir nicht.
An der Stelle des Markers gibt es keinen Inhalt.

Muß ich noch irgendwas einstellen oder beachten?

Wie bekomme ich das zum Laufen? Danke für deine Hilfe

[This article was edited 1 times, at last 03.07.2012 at 09:54.]
Written on: 03. 07. 2012 [09:52]