Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Добавить кнопку


Recommended Posts

Вот код кнопки 

<Style>

a.button21 { display: inline-block; width: 5em; height: 2em; line-height: 2em; vertical-align: middle; text-align: center; text-decoration: none; user-select: none; color: rgb(0,0,0); outline: none; border: 1px solid rgba(0,0,0,.4); border-top-color: rgba(0,0,0,.3); border-radius: 2px; background: linear-gradient(rgb(255,255,255), rgb(240,240,240)); box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(255,255,255,.2), 0 -1px 1px 1px rgba(0,0,0,0); transition: .2s ease-in-out; } a.button21:hover:not(:active) { box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(0,255,255,.5), 0 -1px 1px 1px rgba(0,255,255,.5); } a.button21:active { background: linear-gradient(rgb(250,250,250), rgb(235,235,235)); box-shadow: 0 0 3px rgba(0,0,0,.5) inset, 0 1px 1px 1px rgba(255,255,255,.4), 0 -1px 1px 1px rgba(0,0,0,.1); }

<Style>

 

<a href="#" class="button21">Комплектующие</a>

 

Подскажите пожалуйси в какой файл и какое место всивить , что бы в карточки товара рядом со стоимостью товара была кнопка "комплектующи" при нажатии на которую перекидывало в модуль "вкладку под изображением товара" комплектующие или  как модальное окно открывалось. 

Product.tpl нету, есть только Файл catalog\view\theme\revolution\template\product\product.twig

Как это реализовать?

Link to comment
Share on other sites


57 минут назад, Yuriy06 сказал:

Вот код кнопки 

<Style>

a.button21 { display: inline-block; width: 5em; height: 2em; line-height: 2em; vertical-align: middle; text-align: center; text-decoration: none; user-select: none; color: rgb(0,0,0); outline: none; border: 1px solid rgba(0,0,0,.4); border-top-color: rgba(0,0,0,.3); border-radius: 2px; background: linear-gradient(rgb(255,255,255), rgb(240,240,240)); box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(255,255,255,.2), 0 -1px 1px 1px rgba(0,0,0,0); transition: .2s ease-in-out; } a.button21:hover:not(:active) { box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(0,255,255,.5), 0 -1px 1px 1px rgba(0,255,255,.5); } a.button21:active { background: linear-gradient(rgb(250,250,250), rgb(235,235,235)); box-shadow: 0 0 3px rgba(0,0,0,.5) inset, 0 1px 1px 1px rgba(255,255,255,.4), 0 -1px 1px 1px rgba(0,0,0,.1); }

<Style>

 

<a href="#" class="button21">Комплектующие</a>

 

Подскажите пожалуйси в какой файл и какое место всивить , что бы в карточки товара рядом со стоимостью товара была кнопка "комплектующи" при нажатии на которую перекидывало в модуль "вкладку под изображением товара" комплектующие или  как модальное окно открывалось. 

Product.tpl нету, есть только Файл catalog\view\theme\revolution\template\product\product.twig

Как это реализовать?

 

вы вообещё в курсе что все шаблоны имеют разлилие

Edited by KomissarJuve
Link to comment
Share on other sites


2 часа назад, Yuriy06 сказал:

Вот код кнопки 

<Style>

a.button21 { display: inline-block; width: 5em; height: 2em; line-height: 2em; vertical-align: middle; text-align: center; text-decoration: none; user-select: none; color: rgb(0,0,0); outline: none; border: 1px solid rgba(0,0,0,.4); border-top-color: rgba(0,0,0,.3); border-radius: 2px; background: linear-gradient(rgb(255,255,255), rgb(240,240,240)); box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(255,255,255,.2), 0 -1px 1px 1px rgba(0,0,0,0); transition: .2s ease-in-out; } a.button21:hover:not(:active) { box-shadow: 0 0 3px rgba(0,0,0,0) inset, 0 1px 1px 1px rgba(0,255,255,.5), 0 -1px 1px 1px rgba(0,255,255,.5); } a.button21:active { background: linear-gradient(rgb(250,250,250), rgb(235,235,235)); box-shadow: 0 0 3px rgba(0,0,0,.5) inset, 0 1px 1px 1px rgba(255,255,255,.4), 0 -1px 1px 1px rgba(0,0,0,.1); }

<Style>

 

<a href="#" class="button21">Комплектующие</a>

 

Подскажите пожалуйси в какой файл и какое место всивить , что бы в карточки товара рядом со стоимостью товара была кнопка "комплектующи" при нажатии на которую перекидывало в модуль "вкладку под изображением товара" комплектующие или  как модальное окно открывалось. 

Product.tpl нету, есть только Файл catalog\view\theme\revolution\template\product\product.twig

Как это реализовать?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.