mern-ecommerce icon indicating copy to clipboard operation
mern-ecommerce copied to clipboard

Products not shown in product page

Open kainatkiranrashid2 opened this issue 3 years ago • 8 comments

Hello , Mohammad Samara, I have added few products, but these are not shown when i click shop Pls check and help me get the solution,

Thanks image

image

kainatkiranrashid2 avatar Feb 23 '22 19:02 kainatkiranrashid2

@kainatkiranrashid2 make sure the product is active. From the sidebar products, click on any product to edit and change "is active" field to active so that it appears on the shop.

mohamedsamara avatar Feb 24 '22 19:02 mohamedsamara

It is active, but still does not show up

kainatkiranrashid2 avatar Feb 24 '22 19:02 kainatkiranrashid2

Try to add brand and assign the product to the brand and see if it shows up, make sure brand is active. There is a chance it is not pulling products with no brands.

mohamedsamara avatar Feb 24 '22 19:02 mohamedsamara

Brands products are shown in brands, but when i click shop , they do not show their as well

kainatkiranrashid2 avatar Feb 24 '22 19:02 kainatkiranrashid2

@kainatkiranrashid2 Seems like you have added a price of more than $500. Due to which filters are restricting it to show you. You can remove the hard-coded part from the code and assign the largest price of products in the filters.

smartupnish avatar Mar 11 '22 06:03 smartupnish

@kainatkiranrashid2 please make sure the product is assigned to a brand or they won't appear in the shop.

mohamedsamara avatar May 09 '22 02:05 mohamedsamara

@kainatkiranrashid2 Seems like you have added a price of more than $500. Due to which filters are restricting it to show you. You can remove the hard-coded part from the code and assign the largest price of products in the filters.

Perfect, Thanks for the fix, I was worried as well. Just look for the range slider component under client/app/components/common/RangeSlider and change the maximum value to cater for your needs.

Mugerwa-Joseph avatar May 18 '22 09:05 Mugerwa-Joseph

Products are not shown in SHOP ,all are assigned to brand and with in the the price range but cant see in brands or shop and every product is active as well

hamza4707 avatar May 25 '22 22:05 hamza4707

Closing this issue. If the products are shown or not, it depends on the filters passed along with the request like the price range for example. However the the API works as expected.

mohamedsamara avatar Dec 19 '22 03:12 mohamedsamara