Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Use Bootstrap 3 in 2.3.4 as catalogue only


Recommended Posts

Posted

Need some help? Using the latest version of Bootstrap 2.3.4 and have installed it all as needed and is up and running. I plan to use it only as a catalogue that is usable on any device pc tablet or phone. So no need for shopping cart and that stuff so have turned it off.

I still however need to make some more changes to get rid of all the buy buttons and carts shown in the navigation bar! Also need to get rid of all the prices being displayed as 0.00 and all references cost.

Can anyone help with a full list of files that need to be changed to do this? The only one I have found so far is in the product_info.php in which just commented out the relevant code. However buttons are still showing on home page and new product page? Also somehow managed to remove social bookmarks from all pages? Not sure how! Guess that’s the problem with poking around in the dark.

Have moved this to new topic as requested by John, who has already offered some help,

“If you don't need people to be able to create accounts either, you may not need any buttons on the site at all, and could simply change the css to hide them globally.

If not, the contents of the navbar is laid out in

catalog/includes/modules/content/navigation/templates/navbar.php

or you may have meant the button bar:

catalog/includes/modules/content/header/templates/buttons.php

and you should go through the files in catalog/includes/modules that have 'product' in the name - these produce the lists of products on the various pages

 or just search for the string 'button' ”

 

I would welcome any further help to get a full list of files that need to be modified.

Thank

Zahid

 

Posted

Need some help? Using the latest version of Bootstrap 2.3.4 and have installed it all as needed and is up and running. I plan to use it only as a catalogue that is usable on any device pc tablet or phone. So no need for shopping cart and that stuff so have turned it off.

I still however need to make some more changes to get rid of all the buy buttons and carts shown in the navigation bar! Also need to get rid of all the prices being displayed as 0.00 and all references cost.

Can anyone help with a full list of files that need to be changed to do this? The only one I have found so far is in the product_info.php in which just commented out the relevant code. However buttons are still showing on home page and new product page? Also somehow managed to remove social bookmarks from all pages? Not sure how! Guess that’s the problem with poking around in the dark.

Have moved this to new topic as requested by John, who has already offered some help,

“If you don't need people to be able to create accounts either, you may not need any buttons on the site at all, and could simply change the css to hide them globally.

If not, the contents of the navbar is laid out in

catalog/includes/modules/content/navigation/templates/navbar.php

or you may have meant the button bar:

catalog/includes/modules/content/header/templates/buttons.php

and you should go through the files in catalog/includes/modules that have 'product' in the name - these produce the lists of products on the various pages

 or just search for the string 'button' ”

 

I would welcome any further help to get a full list of files that need to be modified.

Thank

Zahid

Ok have managed to make it work sort of!

These are the files I commented out the button and cost code.

public_html\includes\modules\content\navigation\templates\navbar.php

public_html\includes\modules\boxes\templates\specials.php

public_html\includes\modules\new_products.php

public_html\includes\modules\ product_listing.php

public_html\includes\languages\english\index.php

public_html\includes\languages\english\ products_new.php

public_html\includes\languages\english.php

public_html\includes\header.php

public_html\admin8262\includes\header.php

public_html\index.php

public_html\product_info.php

public_html\product_reviews.php

public_html\ shopping_cart.php

 

Must have made a mistake somewhere as have lost the review button as well and social bookmarks have disappeared! Still its a start. Must be a better way of doing this than having to // code on all these pages?

 

Posted

Just wanted to say thanks for the script,

Line 79. <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php //echo sprintf(HEADER_CART_CONTENTS, $cart->count_contents()); ?></a>

Line 90. //echo '<li><a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . HEADER_CART_CHECKOUT . '</a></li>';

Line 93. //echo '<li class="nav navbar-text">' . HEADER_CART_NO_CONTENTS . '</li>';

         

 

public_html\includes\modules\new_products.php

 

line 32. //$new_prods_content .= '      <p class="text-center">' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</p>';

Line 36. //$new_prods_content .= '          <a href="' . tep_href_link($PHP_SELF, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '" class="btn btn-success" role="button">' . SMALL_IMAGE_BUTTON_BUY . '</a>';

 

public_html\includes\modules\ product_listing.php

Line 153. //$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>';

    } else {

      Line 155. //$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>';

    }

   Line 157. //$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', 'sort', 'cPath')) . 'action=buy_now&products_id=' . $listing['products_id']), NULL, NULL, 'btn-success btn-sm') . '</div>';

   

public_html\includes\languages\english\index.php

 

change text to your own!

 

Line 17. define('HEADING_TITLE', 'Welcome to ' . STORE_NAME);

 

public_html\includes\languages\english.php

 

Text change on lines 210,218,220

 

 

public_html\admin8262\specials.php

 

Line 230. //$contents[] = array('text' => '' . TEXT_INFO_PERCENTAGE . ' ' . number_format(100 - (($sInfo->specials_new_products_price / $sInfo->products_price) * 100)) . '%');

 

 

public_html\product_info.php

 

Line 74. <h1 class="pull-right" itemprop="offers" itemscope itemtype="http://schema.org/Offer''>http://schema.org/Offer'>http://schema.org/Offer"><?php//echo $products_price; ?></h1>

Line 201. <div class="col-xs-6 text-right"><?php //echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'fa fa-shopping-cart', null, 'primary', null, 'btn-success'); ?></div>

  </div>

 

public_html\product_reviews.php

 

Line 57. <h1 class="pull-right"><?php //echo $products_price; ?></h1>

Line 76. <p><?php //echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'fa fa-shopping-cart', tep_href_link($PHP_SELF, tep_get_all_get_params(array('action')) . 'action=buy_now')); ?></p>

  </div>

public_html\ shopping_cart.php

 

No change if shopping cart turned off

 

Sorting out information box and remove unwanted shipping and stuff.

This got rid of shipping info.

 

public_html Cat working\includes\modules\boxes\templates\ information.php

 

line 5. <li><a href="<?php //echo tep_href_link('shipping.php'); ?>"><?php //echo MODULE_BOXES_INFORMATION_BOX_SHIPPING; ?></a></li>

 

Posted

Some aditional changes required.

 

public_html\includes\modules\content\navigation\templates\navbar.php

Made the following changes.

 

Line 56. <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php //echo (tep_session_is_registered('customer_id')) ? sprintf(HEADER_ACCOUNT_LOGGED_IN, $customer_first_name) : HEADER_ACCOUNT_LOGGED_OUT; ?></a>

 

Line 60. //echo '<li><a href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '">' . HEADER_ACCOUNT_LOGOFF . '</a>';

 

public_html\index.php

 

Line 276. <?php //echo tep_customer_greeting(); ?>

 

  • 3 weeks later...
Posted

I'm planning to buy a Bootstrap based WP theme from well known template vendor and create an ebook selling affiliate website. By selling I mean promoting, as I also want to create product catalog on my website using Bootstrap without any shopping cart or payment processing features. It's intended to be more of an informational platform without the option to purchase items, but having affiliate links to Kobo or Amazon. Do you think using Bootstrap is the best way to get this done, or should I consider buying a trusted ecommerce solution and disabling all the options I don't need?

Posted

@@muchad

You better not buy an template because its garbage.

If you want to use an addon you will have problems to put it in.

You can built it better yourself with bootstrap 2.3.4

Archived

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

×
×
  • Create New...