[TYPO3-shop] variants select box with onchange
Matt Sturkenboom
m.sturkenboom at gmail.com
Tue Sep 30 21:54:08 CEST 2008
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_PRICE_NO_TAX###</span>
For the select-box you need to use : <select name="###FIELD_COLOR_NAME###"
id="###PRODUCT_COLOR_ID###"
onchange="###PRODUCT_COLOR_FUNCTION1###">###PRODUCT_COLOR###</SELECT>
I can only ask Franz too update his documentation .... please .....
2008/9/29 Matt Sturkenboom <m.sturkenboom at gmail.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?id=63&tx_ttproducts_pi1[backPID]=63&tx_ttproducts_pi1[product]=14&cHash=c6a14b2517&no_cache=1&eID=tt_products<http://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/mailman/listinfo/typo3-project-tt-products
>
More information about the TYPO3-project-tt-products
mailing list