Jump to content
burt

Responsive osCommerce - Bootstrap

Recommended Posts

@@burt do you know of an addon for BS that changes the buy button to an inactive sold out button (or something similar) when the product quantity is 0?

 

No one yet. There's at least one for 2.2 but it's a difficult one to make without changing code. You'll have to make some changes in product_listing, product_info and maybe on other pages like comments, search.

 

This is what I used in product_info.php:

        if ( tep_get_products_stock($listing['products_id']) <1 && STOCK_ALLOW_CHECKOUT == 'false') {
          $prod_list_contents .= '       <div class="col-xs-8 text-right">' . tep_draw_button(IMAGE_BUTTON_OUT_OF_STOCK, "fa fa-frown-o", null, null, array('params' => 'disabled="disabled"'), 'btn-danger btn-sm'). '</div>'; 

        } else {
          $prod_list_contents .= '       <div class="col-xs-8 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>';
        }
Edited by piernas

Share this post


Link to post
Share on other sites

@@burt

 

Gary, I am sure I have read somewhere about removing the gap above the 'Welcome to' message on the index page and all other pages so the page header aligns with the top of the info boxes but can not seem to find it or remember how to do it.

 

Please will you point me in the right direction.

 

Thanks

 

Mark

post-256780-0-90153000-1476210153_thumb.png


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

@@burt

 

Hi G

 

I was just updating one of the addons to by EDGE compatible and I saw that the TABLE_ definitions are still present in the latest EDGE version.

Weren't those TABLE_ definitions replaced once? Or was it just my imagination?

I was always replacing all FILENAME_ and TABLE_ definition in the files I am updating since....the past few months I think hope that was not the wrong thing to do.

Edited by Tsimi

Share this post


Link to post
Share on other sites

@@PupStar

 

h1.page-header { margin-top: 0px; }

 

Have a play around with that.

 

@@Tsimi

 

https://www.youtube.com/watch?v=TqLatol52rA&start=49&end=55&autoplay=1

 

I'll get around to getting rid of the TABLE_* at some point soon.


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

:thumbsup: 

 

Thanks for confirming. :)

 

Depends on what you believe;

 

Seven blessings to you my friend.

 

or

 

May the Lord of Light be with you for the night is dark and full of terrors.

 

:D

Share this post


Link to post
Share on other sites

@@PupStar

h1.page-header { margin-top: 0px; }

Have a play around with that.

@@burt,

 

that did not work but a slight change did

.page-header, h1 {margin-top: 0px;}

Thanks

 

M


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

There seems to be another dude that has problems with the shopping cart page functions. What's going on? Is this some latest server security upgrade issue? Or bad server configuration? Cheap server thing?

First it was just 1 guy now there are 2 if this becomes more and more then.... well not good.

I'm sure there are more of us out there.

Some of us try to find the answers on our own or make a work around.

The redirect to index seems to be a page not found redirect as: -p-38%7B83%7D798%7B101%7D869%7B84%7D803%7B76%7D756%7B106%7D908%7B79%7D757%7B108%7D925%7B2%7D789%7B80%7D765%7B93%7D838%7B94%7D838%7B82%7D790%7B52%7D15%7Btxt_117%7D%7Btxt_119%7D.html or the shorter previous {938}805 are not valid links

Somehow need to truncate the product link in the cart.

Thanks to ShaGGy I was able to put the remove button back in. It didn't work in 2.3.3.4 either

Share this post


Link to post
Share on other sites

I'm sure there are more of us out there.

Some of us try to find the answers on our own or make a work around.

The redirect to index seems to be a page not found redirect as: -p-38%7B83%7D798%7B101%7D869%7B84%7D803%7B76%7D756%7B106%7D908%7B79%7D757%7B108%7D925%7B2%7D789%7B80%7D765%7B93%7D838%7B94%7D838%7B82%7D790%7B52%7D15%7Btxt_117%7D%7Btxt_119%7D.html or the shorter previous {938}805 are not valid links

Somehow need to truncate the product link in the cart.

Thanks to ShaGGy I was able to put the remove button back in. It didn't work in 2.3.3.4 either

 

@@Big Bear That looks much too long, you should be applying Harald's fix from here:

http://forums.oscommerce.com/topic/396152-bootstrap-3-in-234-responsive-from-the-get-go/?p=1746915

 

or the equivalent if that code is replaced for your url rewirting

Edited by BrockleyJohn

For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

@@BrockleyJohn

I haven't tried to adopt HPDL's fix into the Ult SEO mod yet.

The first example was a cut and paste from a product with a lot of options, the 2nd I just typed a quick example.

More important is I find how column boxes get "anchored" (using the term loosely for BS) in product_info

Share this post


Link to post
Share on other sites

More important is I find how column boxes get "anchored" (using the term loosely for BS) in product_info

@@Big Bear

What do you want to achieve?


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Paypal App is Core Code.

 

Thank you to @@BrockleyJohn for the extra pieces of the coding puzzle.

Thank you to @@altoid and @@piernas and @@BrockleyJohn for testing it while it was in the PR stage.


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

@@BrockleyJohn

 

I lose any boxes that are in column left, boxes in column right move to under the product description.

The column stays.

Only on product_info page. It is something I did added/deleted no doubt. I haven't spotted it yet.

Share this post


Link to post
Share on other sites

@@BrockleyJohn

 

I lose any boxes that are in column left, boxes in column right move to under the product description.

The column stays.

Only on product_info page. It is something I did added/deleted no doubt. I haven't spotted it yet.

 

@@Big Bear It sounds like you've lost the end of the div for the middle bit; two div closures before the end of the form (starting line 224):

 

?>

</div>

</div>

</form>

<?php
  }
  require('includes/template_bottom.php');
  require('includes/application_bottom.php');
?>

 

I hope you know that if you want to add content to the product info page, you can do it with a content module... (see examples under includes / modules / content / product_info), you don't need to edit the page itself.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

@@BrockleyJohn

 

Thank you.

 

I have the double /divs.

 

I know about the modules, just had the need to hack the code.

Some day I will learn how to hook. I can return hello world but that doesn't help me.

Share this post


Link to post
Share on other sites

i need a simple file that outputs the list of categories in a csv file.

i wonder if you can help me

thanks

 

in phpmyadmin run the query

SELECT categories_name FROM `categories_description` 

and choose Export at the bottom of the page, select CSV as the format


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

@@hungryfrank,

 

try Easy Populate.

There are several version out there.Try the latest package easy populate 2.9 if you are using 2.3.4 BS:

EasyPopulate 2.76i for v2.3.1

Share this post


Link to post
Share on other sites

I've been trying my test shop under the main browsers for windows, and I found a problem with the navbar in Chrome (Version 54.0.2840.71 m 64-bit): I can't use "My account" link on the mobile navbar. The dropdown menu doesn't show up, and clicking has no effect at all.

 

At first I was thinking it was something I changed on my shop because it was working some weeks ago, but it also happens in the demo site http://template.me.uk/234bs3/

Works fine on firefox and edge here, but not in Chrome. I've tested with two other pc (windows 32 bits) and works fine, so I uninstalled and reinstalled Chrome; same thing.

 

Anyone with latest Chrome 64 bits can confirm me if it works fine or not? I'm not sure if it's a bug on that chrome version or it's something on my own pc.

Share this post


Link to post
Share on other sites

I've been trying my test shop under the main browsers for windows, and I found a problem with the navbar in Chrome (Version 54.0.2840.71 m 64-bit): I can't use "My account" link on the mobile navbar. The dropdown menu doesn't show up, and clicking has no effect at all.

 

At first I was thinking it was something I changed on my shop because it was working some weeks ago, but it also happens in the demo site http://template.me.uk/234bs3/

Works fine on firefox and edge here, but not in Chrome. I've tested with two other pc (windows 32 bits) and works fine, so I uninstalled and reinstalled Chrome; same thing.

 

Anyone with latest Chrome 64 bits can confirm me if it works fine or not? I'm not sure if it's a bug on that chrome version or it's something on my own pc.

 

Hi Juanma,

 

The My Account link on navbar works fine on my 64-bit Windows 10 Pro PC in 64-bit Chrome version 54.0.2840.71 m.

 

Cheers, Eddy

Share this post


Link to post
Share on other sites

@@piernas - it's you :P 

 

demo site works for me too on 54.0.2840.71 m

 

My guess is that jquery isn't loading before bootstrap for you for some reason - maybe your browser thinks it's cached but it's not complete. Try a hard refresh or clearing the cache


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Hi all! I'm trying to get my Shop running with 2.3.4 Edge. I translated most of the files into german and what i tested so far, seems to run. Only the SEO Url makes me a headacke...in the Admin i get the following errer. i have no idea how i could solve this.

 

any ideas and help are very appreciated!

 

: call_user_func() expects parameter 1 to be a valid callback, function 'tep_reset_cache_data_usu5' not found or invalid function name in /home/httpd/vhosts/sauces.ch/xxx-smoke.ch/admin/includes/functions/general.php on line 1272

 

Many thanks in Advance,

Patrik

Share this post


Link to post
Share on other sites

jQuery updated to 3.1.1

Font Awesome updated to 4.7


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

Greetings,

 

I'm in the process of customizing osC BS Gold and I just noticed that the product names are no longer showing on the specials.php or products_new.php pages, yet they show on the advanced_search_result.php page (so the problem is not in /includes/modules/product_listing.php). If I inspect the link where the product name should be I find that the <a ...></a> is empty.

 

The product image and description show up fine.

 

I have replaced my specials.php, /includes/languages/english/specials.php, and /includes/modules/product_listing.php with freshly downloaded stock file but that does not solve my problem.

 

Since it's not a CSS problem, and the SQL query is stock, I'm at a loss for a solution... where else should I look? What could cause this?

 

Thanks!

Edited by cinolas

Share this post


Link to post
Share on other sites

Greetings,

 

I'm in the process of customizing osC BS Gold and I just noticed that the product names are no longer showing on the specials.php or products_new.php pages, yet they show on the advanced_search_result.php page (so the problem is not in /includes/modules/product_listing.php). If I inspect the link where the product name should be I find that the <a ...></a> is empty.

 

The product image and description show up fine.

 

I have replaced my specials.php, /includes/languages/english/specials.php, and /includes/modules/product_listing.php with freshly downloaded stock file but that does not solve my problem.

 

Since it's not a CSS problem, and the SQL query is stock, I'm at a loss for a solution... where else should I look? What could cause this?

 

Thanks!

 

First thought is you could have corrupt data.

Do you have more than one language configured in the store? You might have empty name set for a language for some products.

 

What do you get on the category and manufacturer views in index.php? They use the same module.

 

Have you checked if you get the same thing in all screen sizes, and in both list and grid views?

 

If there's nothing between the anchor tags in the page source, it doesn't necessarily imply that nothing came out of the php; it's possible that some javascript has manipulated the page on loading, and if this isn't working as intended you may be losing the names... though I can't think of a reason to manipulate the names offhand! This might not be straightforward to track down but you could try turning off header tags modules and any content modules that insert javascript.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


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

×