Post by moxet » Sat Jun 30, 2012 10:43 pm

Greetings :)

Is there any fix/extension through which we can hide/show products availability for individual products.

Thank You

OpenCart Community On Facebook:
https://www.facebook.com/groups/113681025443143/


Newbie

Posts

Joined
Sat Jun 30, 2012 10:40 pm

Post by voca » Sat Jun 30, 2012 10:57 pm

Hi
You would need to add another field in product entry in admin say $show availability and in the product database table.
Then when the product is displayed you'll need to check that variable in the controller file and then wrap the availability portion in the template file with an if($show_availability) { availability code }
Its doable!
Cheers
Kym

Active Member

Posts

Joined
Mon Aug 23, 2010 9:52 pm

Post by moxet » Sun Jul 01, 2012 9:41 pm

i know the logic it is only 1 check, or switching 0/1
but i don't know MVC or the structure of PHP in OC.
Can you please elaborate a bit more.

I will be thankfull..

OpenCart Community On Facebook:
https://www.facebook.com/groups/113681025443143/


Newbie

Posts

Joined
Sat Jun 30, 2012 10:40 pm

Post by straightlight » Mon Jul 02, 2012 2:19 am

Isn't what the product status already does in the admin products page already ? By either setting the enable / disable option, it already defines whether the product should be seen or not for each products on the store-front end.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by moxet » Mon Jul 02, 2012 3:10 pm

No dear, the option you are talking about is used to disable the product, i want to show the product but if i want to show/hide the quantity for a specific product how can i do this.

I am agree with Voca, but need a bit explanation

OpenCart Community On Facebook:
https://www.facebook.com/groups/113681025443143/


Newbie

Posts

Joined
Sat Jun 30, 2012 10:40 pm

Post by straightlight » Mon Jul 02, 2012 6:22 pm

It may be ideal but what about the quantity added to the cart if the quantity from the box can't be filled out (empty) and also the unfilled out quantity versus the minimum quantity that may be required for x products ? ;)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by voca » Wed Jul 04, 2012 8:36 pm

Hi Moxet
We can guide you through this mod but straightlight is spot on in that the mod has lots of implications that will also need to be considered. Do you really need this level of modification??
Cheers
Kym
PS, As a mtter of interest, why would you want to hide/show availability on a product by product basis??

Active Member

Posts

Joined
Mon Aug 23, 2010 9:52 pm
Who is online

Users browsing this forum: No registered users and 2 guests