Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Button.gif's locations


Ken_Shea

Recommended Posts

Would like to reference custom buttons to replace those as shown in the pic, where might the be located?

I've spent some time searching and while I find loads of them nothing matching these.

 

Thanks much

Ken

Buttons.JPG

Link to comment
Share on other sites

This is from /includes/languages/english/modules/navbar_modules/nb_shopping_cart.php ...
 

<?php
/*
  $Id$

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

  Copyright (c) 2016 osCommerce

  Released under the GNU General Public License
*/

  define('MODULE_NAVBAR_SHOPPING_CART_TITLE', 'Shopping Cart');
  define('MODULE_NAVBAR_SHOPPING_CART_DESCRIPTION', 'Show Shopping Cart in Navbar');
 
  define('MODULE_NAVBAR_SHOPPING_CART_CONTENTS', '<i class="fa fa-shopping-cart"></i> %s item(s) <span class="caret"></span>');
  define('MODULE_NAVBAR_SHOPPING_CART_NO_CONTENTS', '<i class="fa fa-shopping-cart"></i> 0 items');
  define('MODULE_NAVBAR_SHOPPING_CART_HAS_CONTENTS', '%s item(s), %s');
  define('MODULE_NAVBAR_SHOPPING_CART_VIEW_CART', 'View Cart');
  define('MODULE_NAVBAR_SHOPPING_CART_CHECKOUT', '<i class="fa fa-angle-right"></i> Checkout');
 
  define('MODULE_NAVBAR_SHOPPING_CART_PRODUCT', '<a href="' . tep_href_link('product_info.php', 'products_id=%s') . '">%s x %s</a>');

Notice the "fa fa-shopping-cart" and "fa fa-angle-right". That's where these 'fonts' (images) are called.

Malcolm

Link to comment
Share on other sites

Thanks for the further clarification,

I'll take a look at the old files from 2.3.3.4 which as I recall used images (hopefully) and see how they are applied in the same file.

It's all very easy ............. Once you know how LOL.

 

Link to comment
Share on other sites

Malcolm,

I have them yes but of course which ones to use depends on how they actually look in use.

I would like to change all the rectangular buttons as an end result, but first on the home page.

It's not a functional need, the stock buttons work fine but do not care for the look of the stock white rectangle buttons

Ken

Link to comment
Share on other sites

@Ken_Shea

The buttons are controlled by Bootstrap (the responsive framework on which Edge is built). Bootstrap has its 'standard' buttons.

https://www.w3schools.com/bootstrap/bootstrap_ref_css_buttons.asp

You can obviously change the style. A quick Google search for Bootstrap Button Generators came up with these (there are more):

http://blog.koalite.com/bbg/

https://www.tutorialrepublic.com/twitter-bootstrap-button-generator.php

https://bootsnipp.com/buttons

Do realize that the osC  calls the buttons by the Bootstrap name. If you want to turn a red button into a green button, you need to change the osC code that calls the button, and NOT just change the button color in CSS.

Now, none of this has anything to do with the icons / images / gifs / pictures / fonts that you include within your button(s).

HTH

Malcolm

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...