Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to Contact US link


ce7

Recommended Posts

hi i have almost finished modify the website after install few addons on 234.1 Edge (BS) version, now i found another problem and I really have no clue where to check as I check all the footer content and can not file code to modify...

please find the image, how to contact us suppose to link to contact_us.php but it showing wrong link, newsletter.php

1138588151_howtocontactus-errorlink-01.thumb.PNG.5689b1aef43612a05b25c2d1db726bfa.PNG

Can someone please advise what files maybe I need to go to check for it?

Many thanks!  Lyn

Link to comment
Share on other sites

@JcMagpieHi Zahid,

Thank you very much for reply. I had check all the footer content but non of them have wrong re-direct
tpl_cm_osc_banner.php

<div class="col-sm-<?php echo $content_width; ?> cm-pi-osc-banner">
    <div class="oscbanner">
   <?php echo tep_display_banner('dynamic', 'footer'); ?>
   </div>
</div>

tpl_cm_footer_text.php

<div class="col-sm-<?php echo $content_width; ?> cm-footer-text">
  <div class="footerbox generic-text">
    <h2 class="h3"><?php echo MODULE_CONTENT_FOOTER_TEXT_HEADING_TITLE; ?></h2>
    <?php     echo MODULE_CONTENT_FOOTER_TEXT_TEXT; ?>
  </div>
</div>

tpl_cm_footer_information_links.php

<div class="col-sm-<?php echo $content_width; ?> cm-footer-information-links">
  <div class="footerbox information">
    <h2 class="h3"><?php echo MODULE_CONTENT_FOOTER_INFORMATION_HEADING_TITLE; ?></h2>
    <ul class="nav nav-pills nav-stacked">
      <li><a href="<?php echo tep_href_link('shipping.php'); ?>"><?php echo MODULE_CONTENT_FOOTER_INFORMATION_SHIPPING; ?></a></li>
      <li><a href="<?php echo tep_href_link('privacy.php'); ?>"><?php echo MODULE_CONTENT_FOOTER_INFORMATION_PRIVACY; ?></a></li>
      <li><a href="<?php echo tep_href_link('conditions.php'); ?>"><?php echo MODULE_CONTENT_FOOTER_INFORMATION_CONDITIONS; ?></a></li>
      <li><a href="<?php echo tep_href_link('contact_us.php'); ?>"><?php echo MODULE_CONTENT_FOOTER_INFORMATION_CONTACT; ?></a></li>
    </ul>  
  </div>
</div>

tpl_cm_footer_contact_us.php

<div class="col-sm-<?php echo $content_width; ?> cm-footer-contact-us">
  <div class="footerbox contact">
    <h2 class="h3"><?php echo MODULE_CONTENT_FOOTER_CONTACT_US_HEADING_TITLE; ?></h2>
    <address>
      <strong><?php echo STORE_NAME; ?></strong><br>
      <?php echo nl2br(STORE_ADDRESS); ?><br>
      <abbr title="Phone">Phone:</abbr> <?php echo STORE_PHONE; ?><br>
      <abbr title="Email">E-mail:</abbr> <?php echo STORE_OWNER_EMAIL_ADDRESS; ?>
    </address>
    <ul class="list-unstyled">
      <li><a class="btn btn-success btn-sm btn-block" role="button" href="<?php echo tep_href_link('contact_us.php'); ?>"><i class="fas fa-paper-plane"></i> <?php echo MODULE_CONTENT_FOOTER_CONTACT_US_EMAIL_LINK; ?></a></li>
    </ul>
  </div>
</div>

tpl_cm_footer_account.php

<div class="col-sm-<?php echo $content_width; ?> cm-footer-account">
  <div class="footerbox account">
    <h2 class="h3"><?php echo MODULE_CONTENT_FOOTER_ACCOUNT_HEADING_TITLE; ?></h2>
    <ul class="list-unstyled">
      <?php
      echo $account_content;
      ?>
    </ul>
  </div>
</div>

If i enable any of the footer content, the "how to contact us" will show up, and make a whole footer area linkable to wrong "newsletter.php".
I guess must the the text "How to contact us" been modified (I had installed newsletter module but upon checking the instruction, there is no modification about it...)

My alternative solution now is to use information page to make about us page to show shop information, but it doesn't fix the error...so i still love to learn how to make the error go away.
 

Could you please advise which file can be related to the string?

Many thanks!  Lyn

 

 

 

Link to comment
Share on other sites

@ce7

Can you tell if either of these two files have been modified? And, if so, post their contents here ...

/includes/languages/english/modules/content/footer/cm_footer_account.php

/includes/languages/english/modules/content/footer/cm_footer_contact_us.php

M

 

Link to comment
Share on other sites

@ArtcoInc  hi ArtcoInc,

Thank you for reply.
cm_footer_contact_us.php (language file)

  define('MODULE_CONTENT_FOOTER_CONTACT_US_TITLE', 'Contact Us Details');
  define('MODULE_CONTENT_FOOTER_CONTACT_US_DESCRIPTION', 'Adds a Contact Us Block to the Footer Area of your site');
	  define('MODULE_CONTENT_FOOTER_CONTACT_US_HEADING_TITLE', 'How To Contact Us');
  define('MODULE_CONTENT_FOOTER_CONTACT_US_EMAIL_LINK', 'Contact Us');

cm_footer_account.php (language file)

  define('MODULE_CONTENT_FOOTER_ACCOUNT_TITLE', 'Account Block');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_DESCRIPTION', 'Adds an Account Block to the Footer Area of your site');
	  define('MODULE_CONTENT_FOOTER_ACCOUNT_HEADING_TITLE', 'Customer Services');
	  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_ACCOUNT', 'My Account');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_ADDRESS_BOOK', 'My Address Book');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_ORDER_HISTORY', 'My Order History');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_LOGOFF', 'Secure Log Off');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_CREATE_ACCOUNT', 'Create Account');
  define('MODULE_CONTENT_FOOTER_ACCOUNT_BOX_LOGIN', 'Existing Customer? Log In');


I did not modify any code related to the footer, the only addon related to footer is banner, but i did not use it, and even i remove it, the problem still there.....

not sure if there is an easier way to find which files causing the problem, my most time consuming way is just to check each single file.... before I did this dump😂 way, any advise really help... 😅

Many thanks!  Lyn

PS. Information Page Unlimited addon maybe related to contact us, but I check the module and template as well.

bm_information.php (languages file)

   define('MODULE_BOXES_INFORMATION_TITLE', 'Information');
  define('MODULE_BOXES_INFORMATION_DESCRIPTION', 'Show information page links');
  define('MODULE_BOXES_INFORMATION_BOX_TITLE', 'Information');
  define('MODULE_BOXES_INFORMATION_BOX_PRIVACY', 'Privacy Notice');
  define('MODULE_BOXES_INFORMATION_BOX_CONDITIONS', 'Conditions of Use');
  define('MODULE_BOXES_INFORMATION_BOX_SHIPPING', 'Shipping &amp; Returns');
  define('MODULE_BOXES_INFORMATION_BOX_CONTACT', 'Contact Us');
  define('MODULE_BOXES_INFORMATION_BOX_NEWS', 'View Newsletters');

bm_information.php (copy only the part of code that been modified)

	    function execute() {
      global $oscTemplate;
	      // BOF: Information Pages Unlimited
      //require_once(DIR_WS_FUNCTIONS . 'information.php');
      require_once('includes/functions/' . 'information.php');
      // EOF: Information Pages Unlimited
	      //ob_start();
      //include('includes/modules/boxes/templates/information.php');
      // BOF: Information Pages Unlimited
      $data = '  <div class="panel panel-default">' .
              '  <div class="panel-heading">' .
              MODULE_BOXES_INFORMATION_TITLE .
              '</div>' .
              '  <div class="panel-body">' .
                   tep_information_show_category(1) .
//              '    <a href="' . tep_href_link('shipping.php') . '">' . MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a><br />' .
                '    <a href="'
              //. tep_href_link(FILENAME_CONTACT_US)
              . tep_href_link('contact_us.php')
              . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' .
              '  </div>' .
              '</div>';
	      // EOF: Information Pages Unlimited      
      //$data = ob_get_clean();
	      $oscTemplate->addBlock($data, $this->group);
    }

information.php (template file)

<div class="panel panel-default">
  <div class="panel-heading">
  <?php echo MODULE_BOXES_INFORMATION_BOX_TITLE; ?>
  </div>
  <div class="panel-body">
    <ul class="list-unstyled">
      <li><a href="<?php echo tep_href_link('shipping.php'); ?>"><?php echo MODULE_BOXES_INFORMATION_BOX_SHIPPING; ?></a></li>
      <li><a href="<?php echo tep_href_link('privacy.php'); ?>"><?php echo MODULE_BOXES_INFORMATION_BOX_PRIVACY; ?></a></li>
      <li><a href="<?php echo tep_href_link('conditions.php'); ?>"><?php echo MODULE_BOXES_INFORMATION_BOX_CONDITIONS; ?></a></li>
      <li><a href="<?php echo tep_href_link('contact_us.php'); ?>"><?php echo MODULE_BOXES_INFORMATION_BOX_CONTACT; ?></a></li>
    </ul>
  </div>
</div>

 

Link to comment
Share on other sites

image.png.5cae269dfe7f5752ae0010ccabc1b744.png

This is not correct you should not have this text overlying the contact us button, when you inspect the how to contact us text use the inspect  to see which class is beeing used to display this then track that down in the addon used to show this text. It's just a silly mistake in the addon where the wrong link has been used.

will pm you

 

Link to comment
Share on other sites

@ce7

In bm_information.php, change this:
 

      $data = '  <div class="panel panel-default">' .
              '    <div class="panel-heading">' .
                     MODULE_BOXES_INFORMATION_TITLE .
              '    </div>' .
              '    <div class="panel-body">' .
                     tep_information_show_category(1) .
//            '    <a href="' . tep_href_link('shipping.php') . '">' .   MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a><br />' .
              '    <a href="'              
              //. tep_href_link(FILENAME_CONTACT_US)  
                . tep_href_link('contact_us.php')       
                . '">' . MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' .    
              '  </div>' .
              '</div>';

              // EOF: Information Pages Unlimited  

              //$data = ob_get_clean();

              $oscTemplate->addBlock($data, $this->group);

 

To this:
 

      $data = '  <div class="panel panel-default">' .
              '    <div class="panel-heading">' .
                     MODULE_BOXES_INFORMATION_TITLE .
              '    </div>' .
              '    <div class="panel-body">' .
                     tep_information_show_category(1) .
//              '    <a href="' . tep_href_link('shipping.php') . '">' .   MODULE_BOXES_INFORMATION_BOX_SHIPPING . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_PRIVACY . '</a><br />' .
//              '    <a href="' . tep_href_link('privacy.php') . '">' . MODULE_BOXES_INFORMATION_BOX_CONDITIONS . '</a><br />' .
//              '    <a href="' . tep_href_link('contact_us.php'). '">' .  MODULE_BOXES_INFORMATION_BOX_CONTACT . '</a>' .    

              '  </div>' .
              '</div>';

              // EOF: Information Pages Unlimited  

              //$data = ob_get_clean();

              $oscTemplate->addBlock($data, $this->group);

 

It looks like you should have completely commented out the 'contact us' link (which is included in the Information Page Unlimited module), resulting in the double link issue.

(I think)

M

Link to comment
Share on other sites

@ArtcoInc  Hi ArtcoIn,

It had the wrong link, so i have to set all the footer content as false, but i still need to have contact us and about us, so i use the information page unlimited to show up the contact us and make new about us page. It was original comment out as instructure, and I delete the comment for short term solution until find the error and the way to fix it.

I will pm you my website link and enable all the footer now.
 

Thank you so much for your help!   Lyn

Link to comment
Share on other sites

@JcMagpie  @ArtcoInc  Hi for both Zahid and ArtcoInc,

After ArtcoInc point out the problem is causing from Newsletter infobox, I went back to check again the newsletter template and found the code copy from 231 version, when i convert to BS version, typo and most importantly missing the <a href = ... </a> the closing tag, and causing the problem.

You guys are really helpful and thank you so much for your generous supports!
Once again many thanks!!!! Lyn

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...