简体   繁体   English

为什么在ubercart / drupal网站上隐藏了第二个“添加到购物车链接”?

[英]why is the second 'add to cart link' is hidden on ubercart/drupal site?

My site is built on drupal using ubercart. 我的网站是使用ubercart在drupal上构建的。 I have two 'add to cart links' on my page but for some reason the second one is hidden. 我的页面上有两个“添加到购物车链接”,但是由于某种原因,第二个链接被隐藏了。 It only shows if i delete the first one. 它仅显示如果我删除第一个。 You can see them both in view source of the page. 您可以在页面的视图源中同时看到它们。 (The second button should be next to 'contact us' button) My site is https://www.thepetwiki.com/mg-testsite.com/ubercart/painting/kaluga-dock any idea why? (第二个按钮应该在“与我们联系”按钮旁边)我的网站是https://www.thepetwiki.com/mg-testsite.com/ubercart/painting/kaluga-dock,您知道为什么吗?

You hide it in css. 您将其隐藏在CSS中。

http://www.thepetwiki.com/mg-testsite.com/ubercart/sites/all/themes/NaiveArtOnlineColorful/style.css http://www.thepetwiki.com/mg-testsite.com/ubercart/sites/all/themes/NaiveArtOnlineColorful/style.css

line 2819 2819行

#edit-actions--2 {
    display: none;
}

Drupal automatically changes the id if you have multiple form items with the same id. 如果您有多个具有相同ID的表单项,Drupal会自动更改ID。

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

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