[TYPO3-shop] variants select box with onchange

Matt Sturkenboom m.sturkenboom at gmail.com
Mon Sep 29 22:37:50 CEST 2008


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>&nbsp;
<!-- ###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!


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