Browse Source

Don't show product add another button

Vova Tkach 5 years ago
parent
commit
cef4995923
1 changed files with 4 additions and 0 deletions
  1. 4 0
      modules/module_shop.go

+ 4 - 0
modules/module_shop.go

@@ -873,6 +873,10 @@ func (this *Modules) RegisterModule_Shop() *Module {
 				}
 			}
 
+			if data.A_parent_id() > 0 {
+				content += `<style>.product-another{display:none}</style>`
+			}
+
 			// All product current categories
 			var selids []int
 			if data.A_id > 0 {