News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

<div class="modal-header">

Started by pberdas, October 22, 2015, 01:09:23 PM

Previous topic - Next topic

pberdas

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."


abolabo

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

pberdas

Hi and thanks abolabo! 

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

abolabo

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()
$this->processTemplate('responses/content/content.tpl' );
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Forum Rules Code of conduct
AbanteCart.com 2010 -