Tt products

From TYPO3Wiki

(Redirected from Ext tt products)
Jump to: navigation, search

<< Back to Extension manuals page

[edit]

The future of tt_products

This page serves as a central point to discuss the addons and corrections to tt_products. The conversation is done in the news://news.netfielders.de/typo3.projects.tt-products Mailing List and on this TYPO3 forum.

The Commerce is an alternative recommended shop-extension. The tt_products development will always remain because this is downwards compatible and widely spread. This is Open Source and every programmer is invited to contribute to the development process.

You can get the latest version of tt_products and a much improved mbi_products_cateogories extensions including hooks for mm-categories (DAM extension) in the shop of http://ttproducts.de. Some sponsoring is needed to get the bug fixes done and new features implemented and tested. You can find a support forum at http://jambage.com .

Info sites:
German tt_products.de site
International tt_products.org site

Demo-Shop:
The Demo-Shop has a further extension (pdf_products) with which you can sell PDFs. But in all other aspects it is the standard tt_products shop.
http://pdf-shop.ttproducts.org

Book:
Der TYPO3-Webshop

Franz Holzinger is the maintainer of Shop system (tt_products) (contact: franzholz) since version 2.0.0.

Contents

News

3rd September 2007: We have launched the official international website for tt_products. With it you have a software- and service-shop where you can order and buy special software for tt_products. You can order special tt_products-services,too. All products and the most editorial articles are in english. The french version of ttproducts.org is planned in the near future. ttproducts.org will report the actual tt_products development and outline the future image of this shop-system. official international tt_products.org site


29th August 2008: tt_products has reached 50000 downloads from TER listed on typo3.org. The real number is about 5 times as high.

4th May 2007: tt_products is listed in the Top-10 extensions of TYPO3 with 38727 downloads. see http://typo3.org/extensions/repository/popular/

17th October 2005: tt_products is listed in the Top-20 extensions of TYPO3 with 14900 downloads.

In the meantime tt_products has fallen out of the Top-10 extensions. But it seems that about 50% of the extension are among the Top-10 by a failure or by cheating.

The next things that have already been implemented into tt_products 2.7.0 are

  • change of product display with change of a variant select box

In tt_products 2.8.0 you will have

  • Graduated prices which can be entered individually fodr each product
  • Multiple variants can be entered on the article side.
  • You can assign articles chosen from a group box to products . Each article can be assigned to more than one product even with an additional price.

Send me any error messages per email.

Origins

Wanted

You are welcome to join the team to implement your features of tt_products. (see the tt_products news list. If you have already a working shop and want to be sure that it will remain compatible to future versions of TYPO3, help us to achieve this: Give us a full copy of your Typo 3 tt_products implementation. This is necessary to test it during the development process.


Download

TER: Shop system (tt_products) (contact: franzholz)

You will find the tt_products 2.3.0 sources with the Extension Manager. The official sources with small corrections (maybe not working) are downloadable from http://svn.sourceforge.net/viewcvs.cgi/typo3xdev/tx_ttproducts/trunk/ (HOWTO configure SVN). You must install subversion 1.3 to be able to check these files out.

svn co https://typo3xdev.svn.sourceforge.net/svnroot/typo3xdev/tx_ttproducts/trunk tt_products 

The tt_products will sometimes be uploaded into TER with the same version numbers, when only small things have been changed.
If you have used the former tt_products 1.2.7 you have to do the follwing changes:

  • In ###BASKET_TEMPLATE### you must create a line
<input type="hidden" name="mode_update" value="1">

in front of your version of

<input type="Submit" name="products_update" value="Basket/Warenkorb aktualisieren">

Watch the error feedback on this page. zk_products users must set the "$TYPO3_CONF_VARS['EXTCONF']['tt_products']['pageAsCategory'] = 1" in localconf.php.
attention:

  • You must fill in the product's 'In Stock (pcs)' field, or no article will be shown if set to 0.
  • If you use a shopping price calculation you have to set
10.priceTax.type = count
  • You have to adapt all former calculation scripts. $itemArray and $calculatedArray have to be used instead of the former CalculatedBasketArray and CalculatedSums tt_products member variables.
  • You have to use ###FIELD_NAME_BASKET### now in your basket template!

Templates

Installation Instructions

Remove your mierda tt_products extension from the Extension Manager, download the file above and copy its contents to the local folder typo3conf/ext/tt_products or the global typo3/ext/tt_products on your server.
Then use the Extension Manager's "Available extensions to install" and add the Shop system again.

Recommendations

Put your recommendations here. Send error messages directly to the author.

  • Recommendation 1:

If you use PIDthanks then you have to use also the BASKET_ORDERTHANKS_TEMPLATE used for displaying a thanks page.

Hooks

It's much easier to upgrade from one shop-version to the current one, when addons are added using hooks. When a hook exists what is not listed here, then just add it to this page! --Daniel Brüßler 09:45, 21 April 2007 (CEST)

getLinkParams

example usage: I need to add certain parameter to the "back to list" links

documentation@2007-03-17 - available in the next version (suppose 2.5.3):

<PHP> :
$hookObj->getLinkParams($this,$queryString,$excludeList,$addQueryString,$bUsePrefix,$bUseBackPid,$piVarCat);

You can define your method with the $addQueryString as a reference. Then you can change the contents.

<PHP> :
function getLinkParams($excludeList='',&$addQueryString, ...) {
  ...
  $queryString['backPID'] = 0815;
}

addGlobalMarkers

example usage: I need to add "global" content what comes from the FlexForm or what is defined by TypoScript

documentation@2007-04-21 - available since version 2.5.2:

You define the method in an extra class:

<PHP> :
class tx_ttproducts_markeradd {
   function addGlobalMarkers(&$markerArray)     {
     $markerArray['###EXT_PRODUCT_YOURNEWMARKER###'] = 'YOURNEWMARKER-content';
     return;
   }
}
 
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/YOUREXTENSIONKEY/marker/class.tx_ttproducts_markeradd.php']) {
  include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/YOUREXTENSIONKEY/marker/class.tx_ttproducts_markeradd.php']);
}
 
if (defined('TYPO3_MODE')) {
  $TYPO3_CONF_VARS['EXTCONF'][TT_PRODUCTS_EXTkey]['addGlobalMarkers'][] = 'EXT:ext/YOUREXTENSIONKEY/marker/class.tx_ttproducts_markeradd.php:&tx_ttproducts_markeradd';
}

and load it in the main class class.tx_ttproducts_pi1 using require_once.

getItemMarkerArray

You can use the hook at function getItemMarkerArray in model/class.tx_ttproducts_article_base.php to add markers on a product/article base.

Wishlist

newly implemented

  • credit card payment via Paypal: Paypal extension can be used together with the Payment Library and tt_products

Add your wishes here

what should be implemented in the next step.

  • it would be nice if it was possibly to select autorotation of highlights and offers. I.e. two 'offers' or 'highlights' displayed on the front page – each time the page is updated, the next (or random) two 'offers'/'highlights' are displayed. I know 'ke_showproducts' have this feature, but it do not allow you to use al the fields of tt_products (only 'image' and 'title').
  • category support by page. Select category when you create an article or product and save all products and acticles in one sysfolder. Create new page, insert shop, selct list, chose category that is to be displayed, or select all
  • it would be nice if multiple price discount percentage user groups could be added. Ie. admin adds a user COMPANY 3 to user group 1 and this user group has 10% off price (configureable) and prices are automatically cut off 10% when he logs in, or even better - under the price his discount is displayed as: Your discount: 10%. Then, 10% is deducted from total in his basket or total sum. This way it could enable nice reseller purchasements or wholesale. It would be absolutely GREAT if additionally products or products groups could have different discount rates. Ie. Prod group 1 for user group 1 discount: 8%.
  • Always check if the amount of products is on the stock before making an order possible.
  • Create a price value where shipping costs nothing
  • Ratings : rate popularity of the product
  • opinions/feedback left by others(registered users) who used the product.
  • It would be nice if you could sort the products by hand.
  • Possibilitie to have a Main product and from there a link to accessoires which you also can buy if you want.
  • Backend module for order processing, product and user administration
  • Cropping the note in list view should be done by regarding open HTML tags and end of words (like tt_news).
  • Possibility to use 4 decimals (0,0231) for wholesale items.
  • Possibility to sell downloadable items, e.g. pictures or software.
  • display error message for wrong entries on the entry page
  • make TMENU usable with the products sysfolder
  • possibility to save automatically if the customer is male or female.
  • More options when showing the variants in single view ex. use radio buttons instead of droplist; show variant price next to option. ex. SIZE - PRICE
  • would be nice to have this module using Flex and Templavoila, instead of traditional TS templating

Implemented Shops

Here you can enter the URLs of the shops you have implemented with tt_products.
Please, keep the alphabetical sorting by the URLs.
air-soft.gun-evasion.com
carljung.cz
Shop für Segelschiffchen
Minishop modified list/put in basket
Implementierung tt_products für Catering- & Party-Service
Fressexpress - Hundefutter
Garten Bronder Utting
Uitgeverij Gideon : Dutch Christian bookshop
Hells Devil Parts
OERLIKON Industriegeschichte(n)
Shop des Jaguar-Online-Club
Shopbereich der Kitecity Sportreisen
KRAMSKI Putter Golfausrüstung
Landjugendverlag t-Shirts and much more
Leasing-World.com
Macland
Shop für Puppenmanufaktur Marie-Mischell
meer wijn - wijnwinkel
MOTO-SHOP-GROßHANS
Schallplatten und CDs in Frankfurt
my-twinparts - V-Twin Motorradzubehoer
NoteTaker.nl - This site seems to be using oscommerce?
Traditionelle Weihnachtskunst aus dem Erzgebirge
Pferdegutallesgut.de
Taucher-Shop
Buchshop, KNV Integration und Import/Export zu MOS Choice
qualitaetsstruempfe.de
Indie-Label, Vertrieb von Tonträgern
Schimonski's Kulturkaufhaus
Shopbereich von Segelcharter24.de
Shoppen in Diessen
Shop für Sonnenschutzfolien
Onlineshop für Teamsportartikel
tt_products shop
tt_products shop (international)
Westernstore
Shop für den Orgelbau
BVDOnline.de - Zeiterfassung und mehr... - inkl. Shop für Zeiterfassungskomponenten

Voting

This voting has been closed already. The database table fields have been changed in version 2.5.3. --Franz Holzinger 08:36, 10 February 2007 (CET)

The voting is finished already. I hope to find time to change these database fields in the next months. --Franz Holzinger 06:30, 3 October 2006 (CEST)

Do you want that all the price fields will be changed from varchar(20) to INT or BIGINT to get the values in Cents? (see http://dev.mysql.com/doc/mysql/en/numeric-types.html). Or maybe DECIMAL(19,2) in Euro/Dollar is the same, but easier to read?

So enter your names here. Behind your name you can explain your opinion.
The vote will end on November 1st 2005. Then the tables will get changed if the majority has voted so. Everyone would have to reenter his prices into his tt_products tables. Or maybe someone can provide a conversion script which does that. Or you export your tt_products tables and reimport them.

Yes:

  • Franz Holzinger 22:19, 1 Sep 2005 (CEST): because this gives more flexibility for SQL-queries.
  • MarcusFihlon 08:07, 2 Sep 2005 (CEST): this makes a lot of things (sorting, calculating, searching), you can do with prices, a lot easier.
  • Toni Wenzel 18:21, 2 Sep 2005 (CEST): this would make more sense that varchar. especially for sorting in sql queries.
  • User:RogerRoger Bunyan 00:08, 6 Sep 2005 (CEST): So long as it comes with an upgrade tool.
  • Stefano 18:21, 6 Sep 2005 (CEST):well: integer better that varchar, but DECIMAL (or BIG DECIMAL) even better!.
    • --Franz Holzinger 11:08, 7 Sep 2005 (CEST) why is DECIMAL better than INT? What is the advantage of DECIMAL to INT?
    • --Stefano 10:10, 29 Sep 2005 (CEST) well, i think that this way you don't have to think if a value has 2 decimal digits or not (say you are using YEN.. they are integers.. i think that usign DECIMA(19,2) you go ok with every currency
  • Christian Hernmarck 17:35, 22 Sep 2005 (CEST): INT takes less space and numerical mysql-functions will take less time with numeric column type.

No:


Additional question:

  • Should DECIMAL(19,4) be used? (see wishlist) --Franz Holzinger 20:01, 11 Oct 2005 (CEST)
    • why 4? why not 5? or 6? that's pure alchemy :-/ ...maybe FLOAT? perhaps rounding problems?
Personal tools