Author Topic: <div class="modal-header">  (Read 6080 times)

Offline pberdas

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
<div class="modal-header">
« on: October 22, 2015, 01:09:23 PM »
Hello everybody!  I been using this forum for few months now to fix all my issues using your awesome search bar  ;D and the console tools for Chrome/FF.


Now, I have been having trouble finding the <div class="modal-body"> to edit it do to issues repeating the words on the create account page at the bottom when I click the privacy link of "I have read and agree to the Privacy"  It repeat Privacy 3 times.  (see picture 1). 

-I went to the create.tpl file and found this:


<?php if ($text_agree) { ?>
         <label class="col-md-6 mt20 mb40">
            <?php echo $text_agree; ?><a href="<?php echo $text_agree_href; ?>" onclick="openModalRemote('#privacyPolicyModal','<?php echo $text_agree_href; ?>'); return false;"><b><?php echo $text_agree_href_text; ?></b></a>

            <?php echo $form['agree']; ?>
         </label>



-Yes I can fix it quick with a redirect to the privacy page using the next code, but my site is in few languages


 <?php if ($text_agree) { ?>
         <label class="col-md-6 mt20 mb40">
            <?php echo $text_agree; ?><a href=page/privacy***



At the bottom of the file I see the referenced #modal

<div id="privacyPolicyModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="privacyPolicyModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
   <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
      <h3 id="privacyPolicyModalLabel"><?php echo $text_agree_href_text; ?></h3>
   </div>
   <div class="modal-body">
   </div>

   <div class="modal-footer">
      <button class="btn" data-dismiss="modal" aria-hidden="true"><?php echo $text_close; ?></button>
   </div>
</div>

I see the "modal-body" but I can't find it to delete the <div class="center"> as shown in (pic 2)


Can somebody please help?  Thanks in advance!
         


PS:  I didn't used code because it was blocking me to post this msg do to the  "Sorry, you are not allowed to post external links."


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: <div class="modal-header">
« Reply #1 on: October 23, 2015, 04:02:08 AM »
please look into public_html/storefront/view/default/template/responses/content/content.tpl
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline pberdas

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: <div class="modal-header">
« Reply #2 on: October 23, 2015, 09:14:58 AM »
Hi and thanks abolabo! 

Can you explain how you know its there?  What on that code reference that file? Thanks in advance

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: <div class="modal-header">
« Reply #3 on: October 23, 2015, 10:08:35 AM »
it's a common tpl for all "contents" that shows inside modal (see admin ->design->content)
to find tpl just open controller public_html/storefront/controller/responses/content/content.php
see method loadInfo()
Code: [Select]
$this->processTemplate('responses/content/content.tpl' );
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod