我在Woocommerce Mini购物车数量中遇到了错误的ajax加载+-单击+-时未刷新价格-
我的WordPress版本5.4.1和Woocommerce版本4.1.1
我的mini-cart.php代码如下: 请帮我做错的是我创建的自定义mini-cart.php,在此先感谢,如果有人可以帮助我,我将非常感谢
我的网站网址:https://wmiserver.com/bulkwholesale/
class NameMachine extends StatefulWidget {
final List<String> names;
NameMachine({Key key, @required this.names}) : super(key: key);
@override
State<StatefulWidget> createState() => _NameMachineState();
}
class _NameMachineState extends State<NameMachine> {
List<Widget> names;
@override
void initState(){
super.initState();
names = widget.names
.map(
(names) => Container(
padding: EdgeInsets.all(4.0),
color: Colors.white,
child: Text(
names,
textScaleFactor: 1.2,
textAlign: TextAlign.center,
),
width: double.infinity,
height: double.infinity,
),
)
.toList();
}
@override
Widget build(BuildContext context) {