[TYPO3-shop] Is it possible to make a product-tree shop via TYPO3 page-tree functional?

etude at list.ru etude at list.ru
Thu Nov 8 16:32:39 CET 2012


The main idea is to store Products in different pages, like this:

|shop (root page which holds the main TS template, see below)
|_level1 (inserted some Products in List mode)
|____level2 (some Products in List mode)
|_______level4 (some Products in List mode)
|____level3 (some Products in List mode)... and so on.
|_basket (pid=77)

I've tried "mbi_products_categories". It didn't work out of box, and I didn't find working examples on internet.
So here I'm talking about "tt_products" extension only. 
My TS code is working, at least it can display a catalog of products ( pid_list.data=page:uid )
But I cannot see what's wrong with the MiniBasket module. 
When I set the quantity and click the button "Add to Basket", the page updates, but the quantity in MiniBasket is not. 
The MiniBasket updates only on next click on DIFFERENT page in a menu.

Could it be caused by two plugins on the same page?
The example is here: http://www.kovka-bryansk.ru/catalog

Here is my configuration. Please, help me, what is wrong with it?

##### Constants (begin) #####
plugin.tt_products.PIDbasket = 77
plugin.tt_products.domain = localhost
##### Constants (end) #####

##### Setup (begin) #####
config.no_cache = 1

menu = HMENU
menu.entryLevel = 0
menu.1 = TMENU
menu.1 {
	wrap = <ul>|</ul>
	NO.wrapItemAndSub = <li>|</li>
}
menu.2 < menu.1
menu.3 < menu.1

plugin.tt_products_basket = USER 
plugin.tt_products_basket { 
	userFunc = tx_ttproducts_pi1->main
	templateFile = EXT:tt_products/template/products_css_en.html
	defaultCode = OVERVIEW
	pid_list.data = 77
	recursive = 1
}
plugin.tt_products = USER 
plugin.tt_products { 
	userFunc = tx_ttproducts_pi1->main
	templateFile = EXT:tt_products/template/products_css_en.html
	defaultCode = LIST
	pid_list.data = page:uid
	recursive = 0
}
page = PAGE
page.10 < menu
page.20 < plugin.tt_products
page.30 < plugin.tt_products_basket
##### The TypoSscript template (end) #####



More information about the TYPO3-project-tt-products mailing list