Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

welcome guest beneath featured products


Recommended Posts

Posted

I have installed featured products.

Now the text welcome guest is beneath the featured products.

How can I get the welcome guest (above) on top.

 

also I want to write an welcome text in the index page.

Now I've seen the the following in (includes/languages/english/index.php)

define('TEXT_MAIN', '');

can I put the welcome text in here??????

or should I write to welcome guest.

 

and can I put an h2 or h3 in define('TEXT_MAIN', '<h2>welcome to our website</h2>');????

or is that bad coding??????

 

Posted

@@dinopacha

 

Hi Will

 

inside the index.php

 

find and change this code

  <div class="row">
    <?php echo $oscTemplate->getContent('index'); ?>
  </div>  
 
<div class="contentContainer">
  <div class="alert alert-info">
    <?php echo tep_customer_greeting(); ?>
  </div>

<?php
    if (tep_not_null(TEXT_MAIN)) {
?>

  <div class="contentText">
    <?php echo TEXT_MAIN; ?>
  </div>


<?php
    }
    include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);
    include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>
to this

<div class="contentContainer">
  <div class="alert alert-info">
    <?php echo tep_customer_greeting(); ?>
  </div>

<?php
    if (tep_not_null(TEXT_MAIN)) {
?>

  <div class="contentText">
    <?php echo TEXT_MAIN; ?>
  </div>


<?php
    }
?>
  <div class="row">
    <?php echo $oscTemplate->getContent('index'); ?>
  </div>  
<?php
    include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);
    include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS);
?>

</div>
And yes you can use h2 tags inside the language file.
Posted

@@Tsimi

 

Ok. but can I write the welcome text in place of the(welcome guest.)

 

or do I have to do it in:

define('TEXT_MAIN', 'welcome to my webshop bla,bla,bla');
Posted

You can change what ever you like. :)

You can change the TEXT_GREETING_GUEST and TEXT_GREETING_PERSONAL inside the english.php or you can change the TEXT_MAIN inside the ../languages/english/index.php or HEADING_TITLE inside the ../languages/english/index.php

Archived

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

×
×
  • Create New...