Jump to content
EduardSemernya

Внедрение HTML в карточку товара

Recommended Posts

Здравствуйте, хочу что бы подсказали как  внедрить HTML в карточку товара product.php

<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>Daily UI  #016 |  Pop-Up / Overlay</title>
  <link href="https://fonts.googleapis.com/css?family=Nunito:300,400,400i,700" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  
      <link rel="stylesheet" href="/catalog/model/popup_okno/css/style.css">

  
</head>

<body>
  <a href="#" class='btn open-modal' data-modal="#modal1">Open Modal</a>

<div class='modal' id='modal1'>
	<div class='content'>
		<h1 class='title'>This is a modal</h1>
		<p>
				Here is some text and stuff. cool cool	
		</p>
		<a class='btn close-modal' data-modal="#modal1" href="#">K Bye</a>
	</div>	
</div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>

    <script  src="/catalog/model/popup_okno/js/index.js"></script>

</body>
</html>

 

Edited by EduardSemernya

Share this post


Link to post
Share on other sites

В файл product.tpl поместите код. Файл со стилями нужно подключить в header.tpl

Share this post


Link to post
Share on other sites
1 хвилину назад, losthill сказав:

В файл product.tpl поместите код. Файл со стилями нужно подключить в header.tpl

 

Вставлять только этот код в product.php? 

<body>
  <a href="#" class='btn open-modal' data-modal="#modal1">Open Modal</a>

<div class='modal' id='modal1'>
	<div class='content'>
		<h1 class='title'>This is a modal</h1>
		<p>
				Here is some text and stuff. cool cool	
		</p>
		<a class='btn close-modal' data-modal="#modal1" href="#">K Bye</a>
	</div>	
</div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>

    <script  src="/catalog/model/popup_okno/js/index.js"></script>

</body>

 

я вставлял, почему то 0 изменений. Тут какие то одни пхп коды )))

Знімок екрана 2018-08-26 о 10.15.51.png

Share this post


Link to post
Share on other sites
4 хвилини назад, losthill сказав:

без <body> перед <?php echo $footer; ?>

 

почему то ничего не меняется

Знімок екрана 2018-08-26 о 10.29.30.png

Share this post


Link to post
Share on other sites

Кеш модификаторов сбрасывали?

<?php } ?> Явно код должен быть после этой строки, а не перед ней

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.