Jump to content

sunshynecraftsbeads

Members
  • Content count

    232
  • Joined

  • Last visited

Posts posted by sunshynecraftsbeads


  1. 4 minutes ago, MrPhil said:

    In your store admin, go to Locations/Taxes > Countries, scroll down to Canada and select it. It will probably show you "address format 1". Click "Edit", change to format 2, and Save.

    You are awesome Phil. Thank you so much for your help. One less thing off my list.  Thank you Thank you Thank you  🤩


  2. 29 minutes ago, MrPhil said:

    You could go into the database and change the address_format value for the country in question from 1 to 2. For example, USA is 2 (state, zip) and Canada is 1 (postal code, province). I don't know why Canada was set up that way, but you should be able to change it. You might look in the admin area first, to see if you can change it there.

    Hi Phil,

    I went to my database (php my admin) and found the address_format you mentioned but I didn't see a breakdown by country to change it so both Canada & USA are the same. ( #2 ). Is it under the structure tab ? or am I way off ? lol

    I also checked the admin and there wasn't anything I could see. I know way back you could change two php files and all was good but that was a very long time ago. Now I am a newby with the new and better stuff available today.

     


  3. Hi Everyone,

    I would like to change the (flip the two in red) address format

    From;    Street Address,   Suburb,    City,     Postal or Zip Code,    State/Province,    Country

    To;         Street Address,   Suburb,    City,     State/Province,    Postal or Zip Code,    Country

    I am working v.2.3.4.1  CE.   Can someone please let me know how to do this please.

    Thank you in advance :D

     

     

     


  4. 2 hours ago, ArtcoInc said:

    @sunshynecraftsbeads

    A couple of things ...

    1) Which version of osCommerce are you running? All recent versions of the Community Edition (up through Frozen) are running Bootstrap v3. Only the newest experimental 'Edge' version(s) are running Bootstrap v4.

    2) I tried to look up the Spacelab theme you say you are/were using. Is it the one offered by Bootswatch? If so, did you make sure that you downloaded the correct version for the version of Bootstrap you are running on your shop? According to their site, their theme is tuned for Bootstrap v4, with versions available for Bootstrap v2 and v3.

    3) As others have pointed out, if you want to be able to use your user.css file to make adjustments to your site, it needs to be the LAST .css file called. So, if the instruction to install the Spacelab theme said to do this:
     

    
    <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- font awesome -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
    
    <link href="custom.css" rel="stylesheet">
    <link href="user.css" rel="stylesheet">
    
    <script src="ext/jquery/jquery-3.3.1.min.js"></script>
    
    <link href="ext/bootstrap/spacelab/bootstrap.min.css" rel="stylesheet">

    you will have the problem that others here have described. The user.css file MUST be called last. To resolve that, you need to move calling the Spacelab .css file to BEFORE your user.css file:

    
    <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    
    <!-- font awesome -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
    
    <link href="custom.css" rel="stylesheet">
    <link href="ext/bootstrap/spacelab/bootstrap.min.css" rel="stylesheet">
    <link href="user.css" rel="stylesheet">
    
    <script src="ext/jquery/jquery-3.3.1.min.js"></script>

    Or, as you have already done, you can drop the Spacelab theme all together.

    HTH

    M

    Hi,

    1. I am currently working with version  2.3.4.1 CE.

    2. The Spacelab theme is one of the theme included with the theme switcher 1.5.4 addon with about 8 other themes. Yes, updated the Bootstrap version to work with the latest Edge release. This should still work with any previous version of Edge, but I haven't tested them all.

    3. I have removed the theme switch addon as previously noted because this seemed to be the css problem as pointed out to me.

    JcMagpie  provided me with a link so I am going to look into that and see what I can do with my site.

     

    Thank you for responding and thank you for your advise & imput.


  5. 7 minutes ago, JcMagpie said:

    Try this,

    
    <link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- font awesome -->
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
    <link href="ext/bootstrap/spacelab/bootstrap.min.css" rel="stylesheet">
    <link href="custom.css" rel="stylesheet">
    <link href="user.css" rel="stylesheet">
    
    <script src="ext/jquery/jquery-3.3.1.min.js"></script>

    but why you have 2 ext/bootstrap/css/bootstrap.min.css  is odd!

    Nothing has worked so I have removed the theme switcher and the button colors are now blue. Now I will make the appearance of my website manually versus using themes.

    Thank you for your help. It is greatly appreciated.


  6. 10 minutes ago, multimixer said:

    Look at my edit on previous post please

     

    Sorry you are much quicker than I. I am sorry you had to send the message twice. The code that you mentioned must be from when I added the theme switcher add on to my website. I am using the "spacelab" theme. I just upgraded to the 2.3.4.1 CE version a while back and have very few add ons on it to date so this must be the problem. Should I remove the theme switcher add on then?

    <link href="ext/bootstrap/spacelab/bootstrap.min.css" rel="stylesheet">

  7. 9 minutes ago, multimixer said:

    Try to add following additional to the rules you added

    
    .btn-success,
    .btn-success:hover{
      background-image:none;
    }

     

    Hi George,

    This is what it looks like now in my user.css. Unfortunately that did not work either though but thank you for your time. Maybe I just need to change my website to green lol.

    .btn-success {
     background-color: #395c82;
    border-color: #395c82;
    }

    .btn-success,
    .btn-success:hover{
      background-image:none;
    }

    .btn-success,
    .btn-success:hover{
      background-image:none;
    }

     


  8. 27 minutes ago, JcMagpie said:

    best to post or pm link to allow check.

    just made change to you buy button and it worked fine.

    image.png.bcd3cb728cc5a143ddfb0f2517eb2db3.png

    check the css you are using for errors also you may need to add

     

     

     

    27 minutes ago, JcMagpie said:

    best to post or pm link to allow check.

    just made change to you buy button and it worked fine.

    image.png.bcd3cb728cc5a143ddfb0f2517eb2db3.png

    check the css you are using for errors also you may need to add

     

     

    Hi Zahid,

    I am using a the user.css that was recommended for making changes. It was blank prior to me adding the code mentioned above so I thought it would work. If I go to my website www.sunshynecraftsbeads.com ,   I can right click and change the colors buttons in the Inspect Element to see what the new color looks like but that does not work when I am trying to change the button codes as a whole.

    You said "  check the css you are using for errors also you may need to add "

    Is there another css I should me making the changes to &/or is there something I need to add ?

     

    Thanks again.


  9. On 8/27/2018 at 1:07 AM, JcMagpie said:

    Some people are still finding it hard to find what part needs to be changed.I was answering in PM but it's better discussed on the forum as it may help others.

    Questioner was struggling to find how to change the hover colour on elements.

    The hover is just another layer that need to be changed. So if you have a button say, success (your buy button) that is green #2B642B , it will have another color a bit diferent when you hover over it say light green #63ba63.

    so lets say we have that button, this sets or changes its main color. (The color: #fff; is for the text on the button.)

    .btn-success {
        color: #fff;
        background-color: #2B642B;
        border-color: #00b3db;
    } 

    Now this sets or changes the hover color.

    .btn-success:hover {
        color: #fff;
        background-color:#63BA63;       
        border-color: #285e8e; 

    Thats it, it's the same for any elament that changes when you hover over it with your mouse.

     

     

     

    Hi,

    I am currently working with version  2.3.4.1 CE.

    I attempted changing the color of my "view" & "buy" buttons. In my user.css I did it exactly how it was posted here but for some reason it did not work. All I really did was change the color code (see below). I cleared my cache just in case that was the problem but I am still stuck with the grey & green buttons.

    .btn-success {
     background-color: #395c82;
    border-color: #395c82;
    }


    .btn-success:hover {
        background-color:#3399f3;       
        border-color: #3399f3;
    }

     

    Did I miss something ? Any advise would be greatly appreciated and thank you for your post.


  10. Hi Jim,

    Thank you for coming to my rescue so quickly.  Darn it. Yes I did.

    I just looked and there are 2 theme.css    jquery-ui.theme.css  and jquery-ui.theme.min.css

    Based on your message it sounds that my theme will not be compatible with the new version.

    I do like one of the existing themes but there are some colors that I need to change and when I used my last version it was recommended using the theme switcher. Having red, blues, greens and oranges popping up everywhere isn't what I was looking for. Just something simple theme.

    Is there a way that I can make changes to the box colors i the new version ?

    Thanks again Jim.


  11. Hi Everyone,

    I currently have the new 2.3.4.1 CE version and I have successfully installed the current theme switcher and had no problems thanks to all the hard work by everyone involved.

    Today I made a new theme using the theme roller website and would like to add to my existing theme switcher.  I unzipped the file and was going to use the ftp program to install it but noticed that the file content is much different that the theme folders that came with the theme switcher.

    I go to Bootstrap > catalog > ext > bootstrap - then click on a theme folder and inside there is the     bootstrap.min.css

    But when I downloaded the new folder and read the manual on how to install a theme I get a bit confused.

    I get a folder with a jquery-ui-1.21.custom folder. Open that and there are several .css and a index.html . There is a image folder and the external folder which then has a jquery folder and once that is opened the only file there is the jquery.js

    There is no bootstrap.min.css anywhere.

    Do I just install as it is and create folders where needed ? Or did I do something wrong when I downloaded the new theme.

    Any help or advise would be greatly appreciated.


  12. 8 hours ago, BrockleyJohn said:

    I suspect your browser has cached the redirect. There is also a small chance your hosting is serving cached pages but I'd try clearing the browser cache for the site.

    Hi John,

    Thank you very much for your suggestion. I guess trying to installing over and over again trying to get the site up just made things worse. A simple fix. So thank you for your simple suggestion. It fixed my problem and now I can build my new website. Your the Best !!! Cheers.


  13. Hi Tsimi

     

    Yes, I have done this twice and still come up with the same problem. There is no install folder anywhere. The only install's are php . Everything in the admin is working perfectly but once I hit the online catalog a new tab opens and tells me to start the installation procedure.

    I am using the Responsive-osCommerce-master.zip  which says it is the CE. Should I use the other zip file ???


  14. Hi,

    I am looking to start a new website and would like to use the most current version .

    There seems to be two different zip files links for the 2.3.4.1 when I am reading the forum.  I would like to know which on is best or preferred or id these are even the same version at all. 

    1.   oscommerce-2.3.4.1.zip

    2.   Responsive-osCommerce-master.zip

    Thank you in advance.

     

     

     

     

     

     


  15. 1 hour ago, Omar_one said:

    @sunshynecraftsbeads You are using the responsive version the Gold one.
    For out of stock ribbons try this 
    find

    
    $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';

    replace  with

    
    if ( tep_get_products_stock($listing['products_id']) > 0 ) {  
        $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';
       } else {
        	$prod_list_contents .= '       <div class="ribbon red"><span> '. TABLE_HEADING_OUT_OF_STOCK . '</span></div>';
               }

    and for specials ribbon try
    find this

    
          $prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del></span>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';

    replace  with

    
    
    
          $prod_list_contents .= '      <div class="ribbon blue"><span> ' .TABLE_HEADING_SPECIAL_RIBBONS.'</span></div><div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del></span>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';

    Let me know if it will work please .

    BR
    Omar

    Omar_one

    Hi Omar,

    Thanks for the information. Sad to say that I am unable to add this to my website. I made the changes you requested and I went to review my product list to see how it looked with the out of stock products feature but all I got was a error page and none of my products were available anymore.

    The one thing I noticed when making the changes was the first one I changed. It was a different coding from the others. I would never assume that I know coding at all. I just noticed it was different than the others.

    FIND:

    $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';

    REPLACE:

    if ( tep_get_products_stock($listing['products_id']) > 0 ) {  
        $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';
       } else {
        	$prod_list_contents .= '       <div class="ribbon red"><span> '. TABLE_HEADING_OUT_OF_STOCK . '</span></div>';
               }

    Maybe there is something wrong with my .php. I don't know. I will have to try to find it or figure it out.

    But I will say this will make a huge difference to a lot of us so thank you for making this a option for us.

    Your Awesome !

     


  16. On 6/16/2017 at 10:00 AM, Omar_one said:

    @sunshynecraftsbeads are you using  the Responsive version?

    you can post the product_listing.php here or PM it to me
    BR
    Omar
     

    @Omar_one

    Hi Omar,

    I have coped & pasted the .php as per your request. Thank you kindly for taking the time to look. 

     

    <?php
    /*
      $Id$

      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com

      Copyright (c) 2010 osCommerce

      Released under the GNU General Public License
    */

      $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');
    ?>

    <?php
      if ($messageStack->size('product_action') > 0) {
        echo $messageStack->output('product_action');
      }
    ?>

      <div class="contentText">

    <?php
      if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
    ?>
    <div class="row">
      <div class="col-sm-6 pagenumber hidden-xs">
        <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>
      </div>
      <div class="col-sm-6">
        <div class="pull-right pagenav"><ul class="pagination"><?php echo $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></ul></div>
        <span class="pull-right"><?php echo TEXT_RESULT_PAGE; ?></span>
      </div>
    </div>
    <?php
      }

      if ($listing_split->number_of_rows > 0) { ?>
        <div class="well well-sm">
          <div class="btn-group btn-group-sm pull-right">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
              <?php echo TEXT_SORT_BY; ?><span class="caret"></span>
            </button>

            <ul class="dropdown-menu text-left">
              <?php
              $lc_show_model = false;
              $lc_show_manu = false;
              $lc_show_qty = false;
              $lc_show_lbs = false;
              for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
                switch ($column_list[$col]) {
                  case 'PRODUCT_LIST_MODEL':
                  $lc_text = TABLE_HEADING_MODEL;
                      $lc_show_model = true;
                  break;
                  case 'PRODUCT_LIST_NAME':
                  $lc_text = TABLE_HEADING_PRODUCTS;
                  break;
                  case 'PRODUCT_LIST_MANUFACTURER':
                  $lc_text = TABLE_HEADING_MANUFACTURER;
                      $lc_show_manu = true;
                  break;
                  case 'PRODUCT_LIST_PRICE':
                  $lc_text = TABLE_HEADING_PRICE;
                  break;
                  case 'PRODUCT_LIST_QUANTITY':
                  $lc_text = TABLE_HEADING_QUANTITY;
                  $lc_show_qty = true;
                  break;
                  case 'PRODUCT_LIST_WEIGHT':
                  $lc_text = TABLE_HEADING_WEIGHT;
                  $lc_show_lbs = true;
                  break;
                  case 'PRODUCT_LIST_IMAGE':
                  $lc_text = TABLE_HEADING_IMAGE;
                  break;
                  case 'PRODUCT_LIST_BUY_NOW':
                  $lc_text = TABLE_HEADING_BUY_NOW;
                  break;
                  case 'PRODUCT_LIST_ID':
                  $lc_text = TABLE_HEADING_LATEST_ADDED;
                  break;
                }

                if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
                  $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
                    echo '        <li>' . $lc_text . '</li>';
                }
              }
                  ?>
            </ul>
          </div>

        <?php
        if ( (defined('MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS') && MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS == 'True') && (strpos(MODULE_HEADER_TAGS_GRID_LIST_VIEW_PAGES, basename($PHP_SELF)) !== false) ) {
          ?>
          <strong><?php echo TEXT_VIEW; ?></strong>
          <div class="btn-group">
            <a href="#" id="list" class="btn btn-default btn-sm"><span class="fa fa-th-list"></span><?php echo TEXT_VIEW_LIST; ?></a>
            <a href="#" id="grid" class="btn btn-default btn-sm"><span class="fa fa-th"></span><?php echo TEXT_VIEW_GRID; ?></a>
          </div>
          <?php
        }
        ?>
        <div class="clearfix"></div>
      </div>

      <?php
      $listing_query = tep_db_query($listing_split->sql_query);

      $prod_list_contents = NULL;
      
      while ($listing = tep_db_fetch_array($listing_query)) {
        $prod_list_contents .= '<div class="item list-group-item col-sm-4">';
          $prod_list_contents .= '  <div class="productHolder equal-height">';
        if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, NULL, NULL, 'img-responsive thumbnail group list-group-image') . '</a>';
        } else {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, (isset($sort) ? 'sort=' . $sort . '&' : '') . ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, NULL, NULL, 'img-responsive thumbnail group list-group-image') . '</a>';
        }
        $prod_list_contents .= '    <div class="caption">';
        $prod_list_contents .= '      <h2 class="group inner list-group-item-heading">';
        if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
        } else {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
        }
        $prod_list_contents .= '      </h2>';

        $prod_list_contents .= '      <p class="group inner list-group-item-text">' . strip_tags($listing['products_description'], '<br>') . '&hellip;</p><div class="clearfix"></div>';

        // here it goes the extras, yuck
        $extra_list_contents = NULL;
        // manufacturer
          if (($lc_show_manu == true) && ($listing['manufacturers_id'] !=  0)) $extra_list_contents .= '<dt>' . TABLE_HEADING_MANUFACTURER . '</dt><dd><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a></dd>';
        // model
          if ( ($lc_show_model == true) && tep_not_null($listing['products_model'])) $extra_list_contents .= '<dt>' . TABLE_HEADING_MODEL . '</dt><dd>' . $listing['products_model'] . '</dd>';
        // stock
          if (($lc_show_qty == true) && (tep_get_products_stock($listing['products_id'])!= 0) ) $extra_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . '</dt><dd>' . tep_get_products_stock($listing['products_id']) . '</dd>';
        // weight
          if (($lc_show_lbs == true) && ($listing['products_weight'] != 0)) $extra_list_contents .= '<dt>' . TABLE_HEADING_WEIGHT . '</dt><dd>' . $listing['products_weight'] . '</dd>';

        if (tep_not_null($extra_list_contents)) {
           $prod_list_contents .= '    <dl class="dl-horizontal list-group-item-text">';
           $prod_list_contents .=  $extra_list_contents;
           $prod_list_contents .= '    </dl>';
        }

          $prod_list_contents .= '      <div class="row">';
        if (tep_not_null($listing['specials_new_products_price'])) {
          $prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del></span>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';
        } else {
          $prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';
        }
        $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';
        $prod_list_contents .= '      </div>';
        $prod_list_contents .= '    </div>';
        $prod_list_contents .= '  </div>';
        $prod_list_contents .= '</div>';

      }

      echo '<div id="products" class="row list-group">' . $prod_list_contents . '</div>';
    } else {
    ?>

      <div class="alert alert-info"><?php echo TEXT_NO_PRODUCTS; ?></div>

    <?php
    }

    if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
      ?>

    <div class="row">
      <div class="col-sm-6 pagenumber hidden-xs">
        <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>
      </div>
      <div class="col-sm-6">
        <div class="pull-right pagenav"><ul class="pagination"><?php echo $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></ul></div>
        <span class="pull-right"><?php echo TEXT_RESULT_PAGE; ?></span>
      </div>
    </div>
      <?php
      }
    ?>
    </div>

     


  17. 1 hour ago, sunshynecraftsbeads said:

    @Omar_one

    Hi Omar,            

    Here it is. I have copied & pasted it for you as is. Thank you for responding.

    <?php
    /*
      $Id$

      osCommerce, Open Source E-Commerce Solutions
      http://www.oscommerce.com

      Copyright (c) 2010 osCommerce

      Released under the GNU General Public License
    */

      $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');
    ?>

    <?php
      if ($messageStack->size('product_action') > 0) {
        echo $messageStack->output('product_action');
      }
    ?>

      <div class="contentText">

    <?php
      if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
    ?>
    <div class="row">
      <div class="col-sm-6 pagenumber hidden-xs">
        <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>
      </div>
      <div class="col-sm-6">
        <div class="pull-right pagenav"><ul class="pagination"><?php echo $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></ul></div>
        <span class="pull-right"><?php echo TEXT_RESULT_PAGE; ?></span>
      </div>
    </div>
    <?php
      }

      if ($listing_split->number_of_rows > 0) { ?>
        <div class="well well-sm">
          <div class="btn-group btn-group-sm pull-right">
            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
              <?php echo TEXT_SORT_BY; ?><span class="caret"></span>
            </button>

            <ul class="dropdown-menu text-left">
              <?php
              $lc_show_model = false;
              $lc_show_manu = false;
              $lc_show_qty = false;
              $lc_show_lbs = false;
              for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
                switch ($column_list[$col]) {
                  case 'PRODUCT_LIST_MODEL':
                  $lc_text = TABLE_HEADING_MODEL;
                      $lc_show_model = true;
                  break;
                  case 'PRODUCT_LIST_NAME':
                  $lc_text = TABLE_HEADING_PRODUCTS;
                  break;
                  case 'PRODUCT_LIST_MANUFACTURER':
                  $lc_text = TABLE_HEADING_MANUFACTURER;
                      $lc_show_manu = true;
                  break;
                  case 'PRODUCT_LIST_PRICE':
                  $lc_text = TABLE_HEADING_PRICE;
                  break;
                  case 'PRODUCT_LIST_QUANTITY':
                  $lc_text = TABLE_HEADING_QUANTITY;
                  $lc_show_qty = true;
                  break;
                  case 'PRODUCT_LIST_WEIGHT':
                  $lc_text = TABLE_HEADING_WEIGHT;
                  $lc_show_lbs = true;
                  break;
                  case 'PRODUCT_LIST_IMAGE':
                  $lc_text = TABLE_HEADING_IMAGE;
                  break;
                  case 'PRODUCT_LIST_BUY_NOW':
                  $lc_text = TABLE_HEADING_BUY_NOW;
                  break;
                  case 'PRODUCT_LIST_ID':
                  $lc_text = TABLE_HEADING_LATEST_ADDED;
                  break;
                }

                if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
                  $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
                    echo '        <li>' . $lc_text . '</li>';
                }
              }
                  ?>
            </ul>
          </div>

        <?php
        if ( (defined('MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS') && MODULE_HEADER_TAGS_GRID_LIST_VIEW_STATUS == 'True') && (strpos(MODULE_HEADER_TAGS_GRID_LIST_VIEW_PAGES, basename($PHP_SELF)) !== false) ) {
          ?>
          <strong><?php echo TEXT_VIEW; ?></strong>
          <div class="btn-group">
            <a href="#" id="list" class="btn btn-default btn-sm"><span class="fa fa-th-list"></span><?php echo TEXT_VIEW_LIST; ?></a>
            <a href="#" id="grid" class="btn btn-default btn-sm"><span class="fa fa-th"></span><?php echo TEXT_VIEW_GRID; ?></a>
          </div>
          <?php
        }
        ?>
        <div class="clearfix"></div>
      </div>

      <?php
      $listing_query = tep_db_query($listing_split->sql_query);

      $prod_list_contents = NULL;
              while ($listing = tep_db_fetch_array($listing_query)) {
        $prod_list_contents .= '<div class="item list-group-item col-sm-4">';
          $prod_list_contents .= '  <div class="productHolder equal-height">';
        if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, NULL, NULL, 'img-responsive thumbnail group list-group-image') . '</a>';
        } else {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, (isset($sort) ? 'sort=' . $sort . '&' : '') . ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, NULL, NULL, 'img-responsive thumbnail group list-group-image') . '</a>';
        }
        $prod_list_contents .= '    <div class="caption">';
        $prod_list_contents .= '      <h2 class="group inner list-group-item-heading">';
        if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
        } else {
          $prod_list_contents .= '    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
        }
        $prod_list_contents .= '      </h2>';

        $prod_list_contents .= '      <p class="group inner list-group-item-text">' . strip_tags($listing['products_description'], '<br>') . '&hellip;</p><div class="clearfix"></div>';

        // here it goes the extras, yuck
        $extra_list_contents = NULL;
        // manufacturer
          if (($lc_show_manu == true) && ($listing['manufacturers_id'] !=  0)) $extra_list_contents .= '<dt>' . TABLE_HEADING_MANUFACTURER . '</dt><dd><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a></dd>';
        // model
          if ( ($lc_show_model == true) && tep_not_null($listing['products_model'])) $extra_list_contents .= '<dt>' . TABLE_HEADING_MODEL . '</dt><dd>' . $listing['products_model'] . '</dd>';
        // stock
          if (($lc_show_qty == true) && (tep_get_products_stock($listing['products_id'])!= 0) ) $extra_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . '</dt><dd>' . tep_get_products_stock($listing['products_id']) . '</dd>';
        // weight
          if (($lc_show_lbs == true) && ($listing['products_weight'] != 0)) $extra_list_contents .= '<dt>' . TABLE_HEADING_WEIGHT . '</dt><dd>' . $listing['products_weight'] . '</dd>';

        if (tep_not_null($extra_list_contents)) {
           $prod_list_contents .= '    <dl class="dl-horizontal list-group-item-text">';
           $prod_list_contents .=  $extra_list_contents;
           $prod_list_contents .= '    </dl>';
        }

          $prod_list_contents .= '      <div class="row">';
        if (tep_not_null($listing['specials_new_products_price'])) {
          $prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del></span>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';
        } else {
          $prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</button></div></div>';
        }
        $prod_list_contents .= '       <div class="col-xs-6 text-right">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';
        $prod_list_contents .= '      </div>';
        $prod_list_contents .= '    </div>';
        $prod_list_contents .= '  </div>';
        $prod_list_contents .= '</div>';

      }

      echo '<div id="products" class="row list-group">' . $prod_list_contents . '</div>';
    } else {
    ?>

      <div class="alert alert-info"><?php echo TEXT_NO_PRODUCTS; ?></div>

    <?php
    }

    if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
      ?>

    <div class="row">
      <div class="col-sm-6 pagenumber hidden-xs">
        <?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?>
      </div>
      <div class="col-sm-6">
        <div class="pull-right pagenav"><ul class="pagination"><?php echo $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></ul></div>
        <span class="pull-right"><?php echo TEXT_RESULT_PAGE; ?></span>
      </div>
    </div>
      <?php
      }
    ?>
    </div>

     


  18. Out of stock Ribbon For OsCommerce 2.3.4/BS

    Hi Omar_one,

    First let me say thank you for the great addon. Been looking for something like this forever lol.

    I downloaded it this morning but found that it only has the picture and I can open or get the instructions on what files I need to change. I also downloadedd the origianl Special Ribbon overay but when I opened "Catalog/includes/modules/product_listing.php" to change the code I did not have the section that I am suppose to change. 

    Did I miss something ?

    Thanks again for this add on.

    Tracie


  19. Thanks @@frankl  for the feedback.

     

    New day. New Beginnings. And Fresh Eyes 

     

    Re Installed and works perfectly. :thumbsup:

     

    My next task, changing the box color from orange to match my site. I'll figure it out soon enough.  :D

     

    Again thank you Frank for taking the time to help me.

     

    Have a great day !


  20. Hello,

     

    Thank you Rene & Sam for providing me with information on what the problems may be. I spent a few hours on researching the standard Paypal module as well as make sure everything was set up properly with PayPal but I could not find the issue. I then uninstalled the PayPal Standard module and set up the PayPal Express Checkout module and it works like a charm.

     

    Again thank you again for taking the time to help me. It is greatly appreciated.

     

    Have a great day !


  21. Hi John,

     

    Thank you very much for this rewrite. I look forward to adding it to my store.

     

    I have come across a few error messages in my admin and I was wondering if you could help me correct the errors. I have using the 2.3.4 BS version.

     

    When I try to install the header tags I am unable to install it and the following warning messages is on the header tag page of my admin area.

     

    Warning: includes/languages/english/modules/header_tags/store_times.php): failed to open stream: No such file or directory in public_html/admin/modules.php on line 141

    Warning: include(): Failed opening 'public_html/includes/languages/english/modules/header_tags/store_times.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in public_html/admin/modules.php on line 141

    Fatal error: require(): Cannot redeclare class logger in public_html/admin/includes/application_top.php on line 78

     

     

    Any help or input would be greatly appreciated. Thank you in advance.

     

    Cheers.

×