Error in Grid Views – Stock Not Available

Hi Guys,
Using the Quick Search box at the top of the page on UB BookShop, or any of the Grid views, the results show up our products in the catalog, but every product is saying “Not Available”. However, the stock is showing as “In Stock” when you view the products under a category display.
https://elimbookshop.com
Please advise on why grid views display the products but describe them as being “Not Available” when they are?
Thanks
Paul.

11 answers

Profile photo of Ziven Staff 100280.00 $tone October 30, 2018
Public

Hi Paul,
This refers to a feature of the UB Bookshop theme. The code checks whether you set author for each book item or not. It will display the author name, otherwise it shows the ‘Not available’ text in case no author is defined. 
You can update the text via this file: app\design\frontend\Ubertheme\bookshop\Magento_Catalog\templates\product\list.phtml at around the line 251. 
Hope it helps. 

Best Regards,
Ziven.

#1
Profile photo of Webmaster SDARM 290.00 $tone November 2, 2018
Public

Thanks Ziven. 
I updated the text as per your instructions. It should display the words, “Author Not Listed”. This behaves as expected for all grid views except the front page, “New Products” block. 
Grid view for “New Products” still shows “Not available”. 
Also, where do I enter the “author” information for each product? I can’t see this under the Magento admin panel for Catalog-->Products and edit a product. 
Regards
Paul

#2
Profile photo of Ziven Staff 100280.00 $tone November 2, 2018
Public

Hi Paul,

I updated the text as per your instructions. It should display the words, “Author Not Listed”. This behaves as expected for all grid views except the front page, “New Products” block. 
Grid view for “New Products” still shows “Not available”. 

You can edit the file: app\design\frontend\Ubertheme\bookshop\Magento_Catalog\templates\product\widget\new\content\new_grid.phtml at the line 233 and change the text as you want. 
Best Regards,
Ziven.

#3
Profile photo of Webmaster SDARM 290.00 $tone November 2, 2018
Public

Ok, thanks.
But where do where do I enter the “author” information for each product? I can’t see this under the Magento admin panel for Catalog-->Products when I edit a product?

#4
Profile photo of Ziven Staff 100280.00 $tone November 2, 2018
Public

Hi Paul,

But where do where do I enter the “author” information for each product? I can’t see this under the Magento admin panel for Catalog-->Products when I edit a product?

We added an Atritbute named author (ub_author). When installation the theme Quickstart, you can see this attribute in: Admin -> Stores -> Product->Attribute->  author(ub_author).
Hope that helps. 

Best Regards,
Ziven.
 

#5
Profile photo of Webmaster SDARM 290.00 $tone November 4, 2018
Public

OK. Thanks.

For two products, I have added an author’s name to the Custom Attribute “Author”. 

How do I get the attribute of “Author” to display in a Product’s details when I view it from the store front?

For example, for “Reformation Hymnal -- Burgundy Hard Cover”, see the product view here https://www.elimbookshop.com/reformation-hymnal-hc-burgundy.html

See the grid view here: 
https://www.elimbookshop.com/church-ministry/church-resources/hymnals.html

The author of this product is “SDARM”. I have added this to the ub_author attribute under Magento Catalog Products. But the “Author” attribute does not display in the product details. Also, the Grid view does not update with the name of the “author”.

Can you please help.

Thanks
Regards,
Paul

#6
Profile photo of Ziven Staff 100280.00 $tone November 5, 2018
Public

Hi Paul

How do I get the attribute of “Author” to display in a Product’s details when I view it from the store front?

I tried to connect your server using the old credentials you provided. But it seems you have deactivated those accounts. 
Please help to provide me the following info again, I will check and help you out: 

  1. Admin URL and credentials of your M2 instance
  2. SSH credentials of your M2 instance
  3. Let me know the path to your M2 root folder

 
Best Regards,
Ziven.
 

#7
Profile photo of Ziven Staff 100280.00 $tone November 6, 2018
Public

Hi Paul,
Thanks for reactivating my access.

The author of this product is “SDARM”. I have added this to the ub_author attribute under Magento Catalog Products. But the “Author” attribute does not display in the product details. 

I got this fixed and it now shows as per our demo: https://www.dropbox.com/s/si1bfi0bxwe1pcr/2018-11-06_10-58-57.png?dl=0. You can check the update via: Admin -> Stores -> Product->Attribute->  author(ub_author).

Also, the Grid view does not update with the name of the “author”.

This has been fixed as well: https://www.dropbox.com/s/ox4adlxhccbschs/2018-11-06_10-57-50.png?dl=0
 
Best Regards,
Ziven.

#10

Please login or Register to Submit Answer

Written By

Comments