Jump to content
burt

Responsive osCommerce - Bootstrap

Recommended Posts

Something like this for index.php filter list:

    if (PRODUCT_LIST_FILTER > 0) {
      if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
        $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' and p.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' order by cd.categories_name";
      } else {
        $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";
      }
      $filterlist_query = tep_db_query($filterlist_sql);
      if (tep_db_num_rows($filterlist_query) > 1) {
        $parameters = '';
        if (isset($_GET['manufacturers_id']) && !empty($_GET['manufacturers_id'])) {
          $parameters .= 'manufacturers_id=' . $_GET['manufacturers_id'] . '&sort=' . $_GET['sort'];
          $options = array(array('text' => TEXT_ALL_CATEGORIES, 
                                 'link' => tep_href_link(FILENAME_DEFAULT, $parameters)));
        } else {
          $parameters .= 'cPath=' . $cPath . '&sort=' . $_GET['sort'];
          $options = array(array('text' => TEXT_ALL_MANUFACTURERS,
                                 'link' => tep_href_link(FILENAME_DEFAULT, $parameters)));
        }
        while ($filterlist = tep_db_fetch_array($filterlist_query)) {
          $options[] = array('text' => $filterlist['name'],
                             'link' => tep_href_link(FILENAME_DEFAULT, $parameters . '&filter_id=' . $filterlist['id']));
        }
        echo '<div class="btn-group btn-group-justified">
                <div class="btn-group" role="group">' .
             '  <button type="button" class="btn btn-default dropdown btn-block" data-toggle="dropdown" aria-expanded="false">' .
                TEXT_SHOW . '<span class="caret"></span>' .
              '  </button>' .
              '  <ul class="dropdown-menu" role="menu">';
              for($i = 0; $i < count($options); $i++) {
                echo '    <li><a href="' . $options[$i]['link'] . '">' . $options[$i]['text'] . '</a></li>';
              }
        echo '  <ul>' .
             '</div>
             </div>';
      }
    }

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Share this post


Link to post
Share on other sites

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

This shouldn't be installed on a live shop just yet correct?

@@drillsar

 

You can use this version as a live shop if you wish and it work ok.

 

Just make sure you keep an eye on the updates on github and update as required.


Bootstrap 3 ROCKS!

(or it will if I ever get my head around it lol)

(and I think I have now (w00t) )

Share this post


Link to post
Share on other sites

 

They wont be.  The first link is the basis of v24


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

it's been awhile since I used github, time to read lol. When you download the master is that the update for the current version with bug fixes? sorry for all the questions.. I'm really starting to learn html, css and php again been a very long time since very rusty. That's why I love osCommerce the code is some what basic and the community is the best. I want to learn it all so I really should go html, css, than php? sorry if I took over the thread if this is inappropriate I apologize. Also the bug fixes would be the same or different from the original version? Thats what I am confused about

Edited by drillsar

Share this post


Link to post
Share on other sites

Another question did anyone integrate MVS contribution in this version? I am trying but getting no shipping error so I don't know what I did wrong.

Share this post


Link to post
Share on other sites

I like this a lot this version. However, I need to figure out how to box the shipping method to look nicer. Especially because I will be using MVS. That is upcoming. I wish to thank all the people for the hardwork to make this version possible. You guys never get enough credit. People take you guys for granted.

Share this post


Link to post
Share on other sites

The only trouble I have so far is the checkout_shipping page. It's working for MVS but not nice boxes.. I guess I will do a line at a time.

Share this post


Link to post
Share on other sites

This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

Can I make a suggestion? Instead of using refresh to update cart contents, why arent you using jquery to automatically refresh? Just asking

Share this post


Link to post
Share on other sites

installing for first time...  changed the admin folder name and received an error upon install...

 

Warning: fopen(/home/site/catalog/admin/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in/home/site/catalog/install/templates/pages/install_4.php on line 201

Warning: fputs() expects parameter 1 to be resource, boolean given in /home/site/catalog/install/templates/pages/install_4.phpon line 202

Warning: fclose() expects parameter 1 to be resource, boolean given in/home/site/catalog/install/templates/pages/install_4.php on line 203

The installation and configuration was successful!

 

looks like some things arent using the path coding and are hard coded for admin.

Edited by Jackdeth

Share this post


Link to post
Share on other sites

You changed the admin folder name before running the installation?

Or during the installation process?

 

You just upload all files. Then run the install and during the install process you can choose the name of your admin area, username and password.

Edited by Tsimi

Share this post


Link to post
Share on other sites

Thats good to know...  guess its my bad...  wouldnt hurt to add that info into the installer so people dont manually change the name of the folder like I did...

Share this post


Link to post
Share on other sites

make sure you add a htaccess file to the ext directory. Also not sure if you are aware that htpasswd file should be moved above root folder. Another security thing to add is you can just your ip to your admin htaccess.

Share this post


Link to post
Share on other sites

Hmmmmmmm, I feel we're at a crossroads...

 

Been busy for the last couple of weeks adding on to osC 2.3.4. Almost there where we want our stores to be as far as functionality goes (SEO URLs, Header Tags, Specifications, specific (Dutch) payment modules, Member approval, CCGV, previous_next, tva intracom, pricelist and so on. 

 

Now Google fills our e-mail boxes with warnings regarding our current 2.3.1. stores not being responsive, affecting our scores on (lets hope only) mobile rankings. And we're almost done with our new unresponsive stores...

 

Read about Bootstrapped osC. Saw only a few available add-ons. What to do...

 

Can't we put some money together, hire some experienced osC coders and get these basic add-ons all fresh and fruity, bootstrapped and all, standard available with a reponsive osC install, for the good of the communitity and our own stores.

 

V3 seems to take a lot of time, not sure where it's going, we need something to balance the advance of the Heavy Carts, cherishing the lightness of osC but with all modern functionality available on a good code base.

Share this post


Link to post
Share on other sites

Some of my clients want a responsive store, but they don't want to install a pre-release version of osCommerce. We need to get osC 2.4 released, then the money will come for upgrading addons.

 

Regards

Jim


See my profile for a list of my addons and ways to get support.

Share this post


Link to post
Share on other sites

If you want an addon converted and cannot do yourself, there is a commercial forum where you can post. 

 

However, I would ask that you first approach these ones who have made an effort

during the past 12 months to get osCommerce recoded: 

 

https://github.com/gburton/osCommerce-234-bootstrap/graphs/contributors

 

 

As for 2.4, it'll arrive when it arrives - I'm in no hurry - it's a spare time project.

The more that get involved in 2.3.x.bs, the quicker 2.4 comes to fruition.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

I think the bootstrap version is updated for bugs and minor fixes.

As long as you install the latest version from github, and don't alter core code, you can download any latest version and replace your existing files.

 

You would only need to make sure your template files(if you've made any) are backed up and then put back in after doing any update.

 

I installed the bootstrap version last month, so im due for an update via the github download. I have some template files, so I would need to back them up.

 

Might be best to write down and record which files or pages you've edited right from the beginning.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×