Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bootstrap 2.3.4 dont show stock


Lioelx

Recommended Posts

Hello Lionel @@Lioelx,

 

Please post this problem in the support forum for the add-on, if it exists. Otherwise tell us at least which add-on you refer to and exact version.

 

rgds

Rainer

Link to comment
Share on other sites

 

Hi, in list mode the addon show the stock quatity but on grid view no, how made for show stock quantity in grid view?

Regards

 

You have to go into Admin -> Configuration -> Product listing -> Display quantities and set to 1 (= yes).

Osc v2.3.4 BS "custom"
PHP 7.3 compatible (710 modified files => o_O')

Link to comment
Share on other sites

Hello Lionel @@Lioelx,

 

Sorry understood wrong. You shouldn't call it "add-on". It's part of the standard installation.

In: includes/modules/product_listing.php

search for this part:

	  if ( (PRODUCT_LIST_QUANTITY > 0) && (tep_get_products_stock($listing['products_id']) > 0) ) {
      $extra_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . '</dt>';
      $extra_list_contents .= '<dd>' . tep_get_products_stock($listing['products_id']) . '</dd>';
    }

and change "$extra_list_contents" to "$prod_list_contents".

 

Like this you get it to show in grid view.

Then you'll need to style it with <div>s or move the section to get ot to show where you like.

 

rgds

Rainer

Link to comment
Share on other sites

Hi, thanks for your replies, when making the change @@raiwa wrote, was below the amount and number. I've put well and is aligned

 

      $prod_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . ' '. tep_get_products_stock($listing['products_id']) . '</dt>';
      /*$prod_list_contents .= '<dd>' . tep_get_products_stock($listing['products_id']) . '</dd>';*/

to do the same in product_info?

Regards

No external links here, thank you

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...