Switch between Template view of proucts based on user selection woocommerce

I use woocommmerce and i have two template view for products (content-product.php) and (contentcarousel-product.php) . in (archive-product.php) per defaut display first template like this <?php wc_get_template_part( ‘content’, ‘product’ ); ?> i created two button like this with onclick event with javascrip <button onclick=”Viewone()”> view 1</button> <button onclick=”Viewtwo()”> view 2</button> i want when click button 1…

Error Saving Table with WPDataTables Plugin [closed]

I installed wpdatatables in my WordPress Instance, and I get the following error trying to create a JSON Table: There was an error while trying to save the table! OK {“table”:{“id”:13,”title”:”New wpDataTable”,”show_title”:1,”table_type”:”json”,”connection”:””,”content”:”https://wpdatatables.com/sample_files/employees.json”,”filtering”:1,”filtering_form”:0,”sorting”:1,”tools”:1,”server_side”:0,”editable”:0,”inline_editing”:0,”popover_tools”:0,”editor_roles”:””,”mysql_table_name”:””,”edit_only_own_rows”:0,”userid_column_id”:0,”display_length”:10,”auto_refresh”:0,”fixed_columns”:”-1″,”fixed_layout”:0,”responsive”:1,”scrollable”:0,”word_wrap”:0,”hide_before_load”:1,”var1″:””,”var2″:””,”var3″:””,”tabletools_config”:{“print”:1,”copy”:1,”excel”:1,”csv”:1,”pdf”:0},”advanced_settings”:”{\”info_block\”:1,\”global_search\”:1,\”showRowsPerPage\”:1,\”showAllRows\”:0,\”clearFilters\”:0}”,”columns”:[{“calculateTotal”:0,”color”:””,”conditional_formatting”:0,”css_class”:””,”defaultSortingColumn”:0,”display_header”:”Name”,”editor_type”:”text”,”filter_type”:”text”,”filterDefaultValue”:””,”formula”:””,”groupColumn”:0,”hide_on_mobiles”:0,”hide_on_tablets”:0,”id”:169,”id_column”:0,”input_mandatory”:0,”orig_header”:”Name”,”pos”:0,”skip_thousands_separator”:0,”text_after”:””,”text_before”:””,”type”:”string”,”valuesList”:””,”visible”:1,”width”:””,”decimalPlaces”:-1,”possibleValuesAddEmpty”:0,”possibleValuesAjax”:10,”calculateAvg”:0,”calculateMax”:0,”calculateMin”:0,”sorting”:1,”exactFiltering”:0,”filterLabel”:””,”checkboxesInModal”:0,”possibleValuesType”:”read”,”editingDefaultValue”:””,”dateInputFormat”:””,”linkTargetAttribute”:””,”linkButtonAttribute”:0,”linkButtonLabel”:””,”linkButtonClass”:””,”rangeSlider”:0}, ….. I even use the example JSON URL from WPdataTables and receive the same error https://wpdatatables.com/sample_files/employees.json I don’t know what’s wrong with this, could…