Fatal error product configurator

I get the following error in the product configurator. Fatal error[color=#000000][font=Tahoma, Arial, Verdana,]: Cannot use string offset as an array in [/font][/color]C:\Inetpub\vhosts\belettering-online.nl\httpdocs\var\compiled\admin%%E4^E42^E4252AD1%%mainbox.tpl.php[color=#000000][font=Tahoma, Arial, Verdana,] on line [/font][/color]41

This happens when i try to add a product. Looks like a bug. Anyone a solutions?

Thanx in advance

clear cart cache

Already tried this…didn't do the trick…still get the error message

The problem was a bug. The solution is to replace some code in the func.js file:


if (data[id].option.path) {

with this one:

if (data[id].option && data[id].option.path) {

in the func.js file located in the addons/buy_together/js directory of your CS-Cart installation.

After that clear the browser's cache (generally it is implemented by pressing the Ctrl+R key combination)

I had the same problem with setting up a cart promotion whereby the error came up after adding a product to give a discount for.

after making this change, a number of the other options for cart promotions disappeared! (for example - discount for all products in category)

any ideas on this anyone?