Well actually it's not really coding but more like "finding the right names". What I am trying to do is getting dependant product options. For Example: different Types of T-Shirts have different Colors available and depending on what shirttype the user chooses, the other options fitting to his choice appear.
I already found this topic: http://www.ecwid.com/forums/showthread.php?t=18333
The Code provided from Matt (https://gist.github.com/makfruit/530...kfruit/5302479) worked as intended on the product browser. But my situation is different and I am kind of lost because I tried so much to make it work.
The Code works for the product browser but my page is made in Muse and the only part of "ECWID-embed-html" is the box containing the options, the quantaty and the "to-bag" button (and the bag itself but it doesn't matter) as you can see here in my testpage (http://davidshoptest.businesscatalyst.com/magni-1.html) on the right, underneath the way too large priceimage

Now to the part about the code. Of course I changed the expanderName and Flag to the needed parameters which did work just fine in the regular product browser. But when it comes to the single-product-embedding it's not doing anything anymore. I've added a window.alert on the very end of the expander function to see when it goes off. It never did. Oh it did once, but I think that was a bug because everything on the website went bananas. I think the main problem is somewhere in this part:
Quote:
Ecwid.OnPageLoaded.add(function(page) { if ('PRODUCT' == page.type) { checkExpandableOptions(); // Attach a handler to the 'expander' option jQuery("div[class *= ecwid-productoption-" + expanderOptionName + "] input[type=radio]").click(function() { checkExpandableOptions(); }); } |
Is anyone out there so kind to help me with this one? All I need is the examplecode from Matt to work on my Single-Product-Embedding... I would code the rest myself. We don't really like the product-browser, even with changed CSS. And making it look like the way we want would take too much time and require coding skills on a high level which we don't have. So unless we get this code working soon I have to look for another ecommerce solution unfortunately.
Thanks in advance!
Kind regards!