Post by FlyOutlet » Mon Nov 23, 2015 7:29 am

Hi,
How can I show Stock Status and Quantity at Availability in Product Page?
Meaning, If I have 5 pcs of the product, at the availability to show In Stock - 5 pcs.
I am using OC 2.0.3.1.

Thanks,

Newbie

Posts

Joined
Mon Nov 23, 2015 7:21 am

Post by imdevlper18 » Tue Nov 24, 2015 7:34 pm

You must check this extensions:
http://www.opencart.com/index.php?route ... n_id=24043

it will help you do:

1) Allow quantity add from all pages of opencart.
2) Add to cart disabled when product quantity is zero.
3) Add to cart disabled based on product stock status.
4) Show out of stock status instead of add to cart button when product is no longer available in stock.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by IWillNeverGrowUp » Tue Nov 24, 2015 10:20 pm

FlyOutlet wrote:Hi,
How can I show Stock Status and Quantity at Availability in Product Page?
Meaning, If I have 5 pcs of the product, at the availability to show In Stock - 5 pcs.
I am using OC 2.0.3.1.

Thanks,
Under System->Settings->Your Store->Option you should find settings for STOCK that includes this.


Posts

Joined
Thu Sep 24, 2015 4:27 pm

Post by opencartboost » Wed Nov 25, 2015 1:27 pm

Try guide below :
1. Go to admin -> system -> settings. Click store where you want set display stock status.
2. Go to tab option, and select No for option Display Stock, and click save.
http://awesomescreenshot.com/0ac5fkcicc
3. Open file product.php at catalog/controller/product/product.php
4. Find :

Code: Select all

$data['stock'] = $this->language->get('text_instock');
5. Replace with :

Code: Select all

$data['stock'] = $this->language->get('text_instock') .' ' .'-' .' '. $product_info['quantity'] .' ' .'pcs';
The result should like:
http://awesomescreenshot.com/0775fkcja8

Active Member

Posts

Joined
Thu Jul 09, 2015 5:59 am
Who is online

Users browsing this forum: No registered users and 43 guests