繁体   English   中英

Atrributes Selection在Android浏览器4.x上不起作用

[英]Atrributes Selection is NOT working on Android browsers 4.x

我对属性有疑问(PrestaShop 1.6)

http://www.zapateriamiqueca.es/ropita/20-leotardos-condor.html

如果您在任何浏览器(Chromme,Firefox ...)上单击“选择大小(Talla):”,但在Android 4.xo 5.x上都可以正常使用,但是... 如果您单击“选择大小:从android 4.x”浏览器默认情况下,它会打开可供选择的选项,然后立即将其关闭。

我遵循以下指示:

  1. 在主题文件夹中打开product.tpl并查找:

     <select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="form-control attribute_select no-print"> 

2-下课后注释掉表单控件,因此它看起来像:

<select name="{$groupName}" id="group_{$id_attribute_group|intval}" class="attribute_select no-print">

3-然后将您的global.css文件添加到{your_theme} / css内,添加以下内容使其再次显示(组后的数字因网站而异,因此请查看哪个组号用于您的属性选择器) :

select#group_3.attribute_select {width: 60%!important;}

select#group_1.attribute_select {width: 60%!important;}

我设法修改了product.tpl,但是我不确定在第3点中将代码行复制到哪里,以保持属性选择样式。

我也不知道在哪里可以找到我的团体号码。 非常感谢您的帮助。

谢谢您的宝贵时间! ;-)

如果您查看源代码 ,将会发现:

<select name="group_3" id="group_3" class="form-control attribute_select no-print">

因此,如示例所示,此值的groupName id为group_3

在保存之前,您需要编辑/themes/Calisto/css/global.css此文件并在最后添加此行:

select#group_3.attribute_select {width: 60%!important;}

我并不是说这可以解决您的问题,但这就是您的指示所说的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM