Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-shop] variants select box with onchange within the typo3-project-tt-products@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hello, I've installed tt_products 2.7.0. The xajax is installed and I see the reference in the header ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
I've installed tt_products 2.7.0. The xajax is installed and I see the reference in the header of the html. Code : <script type="text/javascript"> /*<![CDATA[*/ var xajaxRequestUri="http://www.safesupport.eu/index.php?id=63&tx_ttproducts_pi1[backPID]=63&tx_ttproducts_pi1[product]=14&cHash=c6a14b2517&no_cache=1&eID=tt_products"; var xajaxDebug=false; var xajaxStatusMessages=false; var xajaxWaitCursor=true; var xajaxDefinedGet=0; var xajaxDefinedPost=1; var xajaxLoaded=false; function tt_products_fetchRow(){return xajax.call("tt_products_fetchRow", arguments, 1);} /*]]>*/ </script> <script type="text/javascript" src="typo3conf/ext/taxajax/xajax_js/xajax.js"></script> <script type="text/javascript"> window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect?\nURL: typo3conf/ext/taxajax/xajax_js/xajax.js'); } }, 6000); </script> The constant config : useArticles = 1 selectColor = 1 selectSize = 1 The template code : <!-- ###display_variant1### --> <br><br>Keuze : <SELECT class="besteldropdown" name="###FIELD_COLOR_NAME###" onchange="###PRODUCT_COLOR_FUNCTION1###" rows="1">###PRODUCT_COLOR###</SELECT> <!-- ###display_variant1### --> Is this the way to configure this functionality or is there an other setting I forgot because the price does not change and there is nog js error. please help. Thnx in advanced! _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
I solved it myself ....
The following must be implemented too. For the price you want to show you need to use this : <span id="###ARTICLE_PRICE_NO_TAX_ID###">###ARTICLE_PRIC E_NO_TAX###</span> For the select-box you need to use : <select name="###FIELD_COLOR_NAME###" id="###PRODUCT_COLOR_ID###" onchange="###PRODUCT_COLOR_FUNCTION1###">###PRODUC T_COLOR###</SELECT> I can only ask Franz too update his documentation .... please ..... 2008/9/29 Matt Sturkenboom <m.sturkenboom (AT) gmail (DOT) com> > Hello, > > I've installed tt_products 2.7.0. > The xajax is installed and I see the reference in the header of the html. > > Code : > <script type="text/javascript"> > /*<![CDATA[*/ > var xajaxRequestUri=" > http://www.safesupport.eu/index.php?...ttproducts_pi1[backPID]=63&tx_ttproducts_pi1[product]=14&cHash=c6a14b2517&no_cache=1&eID=tt_products<ht tp://www.safesupport.eu/index.php?id=63&tx_ttproducts_pi1%5BbackPID%5D=63& tx_ttproducts_pi1%5Bproduct%5D=14&cHash=c6a14b2517 &no_cache=1&eID=tt_products> > "; > var xajaxDebug=false; > var xajaxStatusMessages=false; > var xajaxWaitCursor=true; > var xajaxDefinedGet=0; > var xajaxDefinedPost=1; > var xajaxLoaded=false; > function tt_products_fetchRow(){return > xajax.call("tt_products_fetchRow", arguments, 1);} > /*]]>*/ > </script> > <script type="text/javascript" > src="typo3conf/ext/taxajax/xajax_js/xajax.js"></script> > <script type="text/javascript"> > window.setTimeout(function () { if (!xajaxLoaded) { alert('Error: the > xajax Javascript file could not be included. Perhaps the URL is > incorrect?\nURL: typo3conf/ext/taxajax/xajax_js/xajax.js'); } }, > 6000); > </script> > > The constant config : > > useArticles = 1 > selectColor = 1 > selectSize = 1 > > > The template code : > > <!-- ###display_variant1### --> > <br><br>Keuze : <SELECT class="besteldropdown" > name="###FIELD_COLOR_NAME###" onchange="###PRODUCT_COLOR_FUNCTION1###" > rows="1">###PRODUCT_COLOR###</SELECT> > <!-- ###display_variant1### --> > > Is this the way to configure this functionality or is there an other > setting I forgot because the price does not change and there is nog js > error. > > please help. > > > Thnx in advanced! > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#3
|
|||
|
|||
|
Matt Sturkenboom a écrit :
> I solved it myself .... > > The following must be implemented too. > > For the price you want to show you need to use this : <span > id="###ARTICLE_PRICE_NO_TAX_ID###">###ARTICLE_PRIC E_NO_TAX###</span> > For the select-box you need to use : <select name="###FIELD_COLOR_NAME###" > id="###PRODUCT_COLOR_ID###" > onchange="###PRODUCT_COLOR_FUNCTION1###">###PRODUC T_COLOR###</SELECT> > > I can only ask Franz too update his documentation .... please ..... > If you send me the whole chapter ready to put this into the manual I will do so. Or just add it to the wiki at http://wiki.typo3.org/index.php/Tt_products - Franz _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#4
|
|||
|
|||
|
Ok cool, good idea!
2008/10/3 Franz Holzinger <franz (AT) fholzinger (DOT) com>: > Matt Sturkenboom a écrit : >> I solved it myself .... >> >> The following must be implemented too. >> >> For the price you want to show you need to use this : <span >> id="###ARTICLE_PRICE_NO_TAX_ID###">###ARTICLE_PRIC E_NO_TAX###</span> >> For the select-box you need to use : <select name="###FIELD_COLOR_NAME###" >> id="###PRODUCT_COLOR_ID###" >> onchange="###PRODUCT_COLOR_FUNCTION1###">###PRODUC T_COLOR###</SELECT> >> >> I can only ask Franz too update his documentation .... please ..... >> > > If you send me the whole chapter ready to put this into the manual I > will do so. Or just add it to the wiki at > http://wiki.typo3.org/index.php/Tt_products > > - Franz > > _______________________________________________ > TYPO3-project-tt-products mailing list > TYPO3-project-tt-products (AT) lists...netfielders.de > http://lists.netfielders.de/cgi-bin/...ct-tt-products > _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-shop] Different product prices for different variants? | Juan Pablo Villaverde | typo3-project-tt-products@lists.netfielders.de | 1 | 19.07.2008 18:03 |
| [TYPO3-shop] categories:select doesn't work | Robert Grede | typo3-project-tt-products@lists.netfielders.de | 1 | 15.03.2008 09:23 |
| [TYPO3-shop] Article price in the select list | Daniel Calderini | typo3-project-tt-products@lists.netfielders.de | 2 | 05.12.2007 10:21 |
| [TYPO3-shop] ###FIELD_QTY### always empty when showing variants | Juan Pablo Villaverde | typo3-project-tt-products@lists.netfielders.de | 0 | 06.11.2007 23:47 |
| [TYPO3-shop] articles and variants | Tomi Hrovatin | typo3-project-tt-products@lists.netfielders.de | 1 | 05.05.2007 20:33 |