Post by theace » Sat Jun 28, 2014 1:45 am

I did some digging and I managed to find a thread that spoke about hiding categories. However, I am uncertain whether the exact same process can be adapted for specific products. Here's what I want to do - I will be launching a promo, of sorts for a couple of new products we are rolling out. However, I want these products to be available ONLY to certain people who have coupon codes.

I will be using a vqmod to generate coupon codes and make sure that they call these products when the code is entered but I do not want these products to be displayed on the website. These products will be available EXCLUSIVELY as rewards for social sharing and through other contests and giveaways.

Basically, I want the product to be live but invisible. Any pointers?

New member

Posts

Joined
Sun Jun 17, 2012 2:17 am

Post by melbagnato » Sat Jun 28, 2014 11:08 am

Hi theace,

You can write a mod that will add an additional filter to the getCategories query. Then you can either name the category with a special prefix which will be filtered out, or if you are daring enough, you can add a field to the categories table that you use to filter the dataset with.

Just note, that for completeness, you should create the relevant Admin changes to allow you to manage these new features.

If you get stuck, PM me and we can work something out.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by labeshops » Sat Jun 28, 2014 8:13 pm

If you assign the product to the store but do NOT assign it to a category, it in effect will be "hidden" from the store. Then you could send the people you want the direct link to it. I did it a while back for a customer that wanted something I didn't normally carry but could special order for them.

You would also need to hide it from latest products if you use it, but this should in effect do what you want.

Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by Dhaupin » Sun Jun 29, 2014 2:43 am

Interesting thought. If you just dont assign it to a category will it still be visible in search, sitemap, feed and google? You would have to title/url it something people wont search for if so.

Looks like it would be a decent amount of tinkering, but adding a new product status "hidden" instead of just enabled or disabled seems like it would be cool. Could then tell functions like sitemap, feed, search, etc to ignore if status #2 for hidden.

https://creadev.org | support@creadev.org - Opencart Extensions, Integrations, & Development. Made in the USA.


User avatar
Active Member

Posts

Joined
Tue May 13, 2014 3:45 am
Location - PA

Post by theace » Sun Jun 29, 2014 1:28 pm

labeshops wrote:You would also need to hide it from latest products if you use it, but this should in effect do what you want.
Yes, I will need to hide it from the "Latest" box. That was one of the primary reasons for posting this thread. I know I can hid a product by not assigning it to a category, but it will still show up in the "latest" area.
Dhaupin wrote:Interesting thought. If you just dont assign it to a category will it still be visible in search, sitemap, feed and google? You would have to title/url it something people wont search for if so.

Looks like it would be a decent amount of tinkering, but adding a new product status "hidden" instead of just enabled or disabled seems like it would be cool. Could then tell functions like sitemap, feed, search, etc to ignore if status #2 for hidden.
True, if it can be done, I would like to have it hidden from there as well. Would you happen to know what kind of tinkering would be required?

New member

Posts

Joined
Sun Jun 17, 2012 2:17 am

Post by melbagnato » Mon Jul 21, 2014 12:33 pm

Hi all,

I had quite a few people ask for this feature to be built, so I've released this on my store here.

If you PM me, I'll send you a discount coupon.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne
Who is online

Users browsing this forum: No registered users and 356 guests