此JS代码在.cshtml文件中正常工作,但在.js文件(外部javascript文件)中不工作。有谁可以帮我?我也尝试使用Ajax GET,但也不使用js文件。ToList(); } <script type="text/javascript"> //ajaxfunction for fetch data
$.a
我有这个代码来添加商店中的产品,但当您单击添加产品时,它们会正确添加。问题是我不想去产品页面。我要他留在店里。代码是这样的: * Override loop template and show quantities next to add to cart buttonsadd_action($product->is_sold_individually() ) {
$html = '<form action="' . esc_url( $prod