radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator Another

Start a new topic

How can i use FancyProductDesignerView

Hello,


İ want use changeColor method, but i cant create FancyProductDesignerView  class, and i cant see any examples for that. 


 

$(".colorSelect").on("click",function(){
				var selectedView  = $("input[name=selectedElement]").val();
				var element = yourDesigner.getElementByID(selectedView);
				var fpdView = new FancyProductDesignerView($('#clothing-designer'),yourDesigner,function(){
					
				},null);
				fpdView.setup();
				fpdView.changeColor(element,$(this).data("color"));
			});

 thats code giving " Uncaught TypeError: Cannot read property 'width' of undefined" error.


1 person has this question
1 Comment

Hey,


Have you tried accessing the global fancyProductDesigner variable? I know its accessible in the Woocommerce version of the plugin, "fancyProductDesigner.addView" is probably what your looking for?

Login or Signup to post a comment