You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Abhishake Agarwal <ab...@gmail.com> on 2009/02/18 08:59:22 UTC

How to disable Product

Hi,

I want to disable some product. I tried with putting past date in
*supportDiscontinuationDate
*and it was not working.
 Please let me know the process.

Regards,
Abhishake

Re: How to disable Product

Posted by Ashish Vijaywargiya <as...@hotwaxmedia.com>.
FYI "supportDiscontinuationDate" field play important role while 
Returning an Order Item (aka product)

For reference take a look on the below code snippet taken from 
OrderReturnServices.java file:
Line # 327 - 333.

  // next check support discontinuation
        if (product != null && product.get("supportDiscontinuationDate") 
!= null &&
                
!UtilDateTime.nowTimestamp().before(product.getTimestamp("supportDiscontinuationDate"))) 
{
            // support discontinued either now or in the past
            returnable = false;
        }

Thanks !

--
Ashish

Abhishake Agarwal wrote:
> Hi,
>
> I want to disable some product. I tried with putting past date in
> *supportDiscontinuationDate
> *and it was not working.
>  Please let me know the process.
>
> Regards,
> Abhishake
>
>   

Re: How to disable Product

Posted by Ashish Vijaywargiya <as...@hotwaxmedia.com>.
Hello Abhishake,

ProductCategoryMember entity will be your friend in this case.
All the category and associated product data in ecommerce is fetched 
with the help of this entity.

GUI link for reference :- 
https://localhost:8443/catalog/control/EditCategoryProducts?productCategoryId=101

I hope you will find the way from above comment.

--
Ashish

Abhishake Agarwal wrote:
> Hi,
>
> I want to disable some product. I tried with putting past date in
> *supportDiscontinuationDate
> *and it was not working.
>  Please let me know the process.
>
> Regards,
> Abhishake
>
>   

Re: How to disable Product

Posted by Jacques Le Roux <ja...@les7arts.com>.
You could use the "View Allow" category concept 
http://docs.ofbiz.org/display/OFBENDUSER/Apache+OFBiz+Business+Setup+Guide#ApacheOFBizBusinessSetupGuide-CatalogSetup

Jacques

From: "Abhishake Agarwal" <ab...@gmail.com>
> Thanks Ashish, Kumaraswamy for quick reply.
> 
> I cannot disable category as there are many more other products inside
> categories. Also product I want to disable associated with many categories
> and one of the category is test category which contain all that product
> which I need to disable(easy for me to find the product need to be disbale).
> I have only option to disable the product so that they won't be visible on
> ecommerce site.
> 
> I used sales Discontinuation date but still the products are visible with
> sales Discontinuation message.
> 
> Regards,
> Abhishake
> 
> On Wed, Feb 18, 2009 at 1:43 PM, Kumaraswamy nandipati <
> kumaraswamy@ecomzera.com> wrote:
> 
>> Hi Abhishake,
>>
>> Use sales Discontinuation date in edit product page, so it wont visible.
>>
>>                                                 OR
>>
>> go to category tab, you can set thruDate to the categories which are not
>> required to display this product.
>>
>> On Wed, Feb 18, 2009 at 1:29 PM, Abhishake Agarwal <
>> abhishake.agarwal@gmail.com> wrote:
>>
>> > Hi,
>> >
>> > I want to disable some product. I tried with putting past date in
>> > *supportDiscontinuationDate
>> > *and it was not working.
>> >  Please let me know the process.
>> >
>> > Regards,
>> > Abhishake
>> >
>>
>>
>>
>> --
>> Thanks,
>> Kumaraswamy.N
>> 91-9866805250.
>>
>


Calendar - show future dates only

Posted by Rees Watkins <ga...@yahoo.co.uk>.
Hi

Is it possible for the ofbiz calendar to allow dates from 1 day in the future to be selected only? If so how do you do this?

Thanks
Rees



      

Re: How to disable Product

Posted by Kumaraswamy nandipati <ku...@ecomzera.com>.
Ok then apply first choice, given by me.

On Wed, Feb 18, 2009 at 2:10 PM, Kumaraswamy nandipati <
kumaraswamy@ecomzera.com> wrote:

> Uggr,
>
> don't disable the category. Just set thruDate to the category
>
> Open
> https://*yoursite.com*/catalog/control/EditProductCategories?productId=*
> your_product_id*
>
> change the *red* text according to you.
>
> Here, you can find the list of categories which are associated with this
> product. Just set *thruDate* as current time or past date, then that
> product won't visible in that category on front end.
>
>                                                      *OR*
>
>  set current date to *Sales discontinuation Thru Date* field at
> https://*yoursite.com*/catalog/control/EditProduct?productId=*
> your_product_id*
>
> will solve your problem.
>
>
>
>
>
> On Wed, Feb 18, 2009 at 1:52 PM, Abhishake Agarwal <
> abhishake.agarwal@gmail.com> wrote:
>
>> Thanks Ashish, Kumaraswamy for quick reply.
>>
>> I cannot disable category as there are many more other products inside
>> categories. Also product I want to disable associated with many categories
>> and one of the category is test category which contain all that product
>> which I need to disable(easy for me to find the product need to be
>> disbale).
>> I have only option to disable the product so that they won't be visible on
>> ecommerce site.
>>
>> I used sales Discontinuation date but still the products are visible with
>> sales Discontinuation message.
>>
>> Regards,
>> Abhishake
>>
>> On Wed, Feb 18, 2009 at 1:43 PM, Kumaraswamy nandipati <
>> kumaraswamy@ecomzera.com> wrote:
>>
>> > Hi Abhishake,
>> >
>> > Use sales Discontinuation date in edit product page, so it wont visible.
>> >
>> >                                                 OR
>> >
>> > go to category tab, you can set thruDate to the categories which are not
>> > required to display this product.
>> >
>> > On Wed, Feb 18, 2009 at 1:29 PM, Abhishake Agarwal <
>> > abhishake.agarwal@gmail.com> wrote:
>> >
>> > > Hi,
>> > >
>> > > I want to disable some product. I tried with putting past date in
>> > > *supportDiscontinuationDate
>> > > *and it was not working.
>> > >  Please let me know the process.
>> > >
>> > > Regards,
>> > > Abhishake
>> > >
>> >
>> >
>> >
>> > --
>> > Thanks,
>> > Kumaraswamy.N
>> > 91-9866805250.
>> >
>>
>
>
>
> --
> Thanks,
> Kumaraswamy.N
> 91-9866805250.
>



-- 
Thanks,
Kumaraswamy.N
91-9866805250.

Re: How to disable Product

Posted by Kumaraswamy nandipati <ku...@ecomzera.com>.
Uggr,

don't disable the category. Just set thruDate to the category

Open
https://*yoursite.com*/catalog/control/EditProductCategories?productId=*
your_product_id*

change the *red* text according to you.

Here, you can find the list of categories which are associated with this
product. Just set *thruDate* as current time or past date, then that product
won't visible in that category on front end.

                                                     *OR*

 set current date to *Sales discontinuation Thru Date* field at
https://*yoursite.com*/catalog/control/EditProduct?productId=*
your_product_id*

will solve your problem.




On Wed, Feb 18, 2009 at 1:52 PM, Abhishake Agarwal <
abhishake.agarwal@gmail.com> wrote:

> Thanks Ashish, Kumaraswamy for quick reply.
>
> I cannot disable category as there are many more other products inside
> categories. Also product I want to disable associated with many categories
> and one of the category is test category which contain all that product
> which I need to disable(easy for me to find the product need to be
> disbale).
> I have only option to disable the product so that they won't be visible on
> ecommerce site.
>
> I used sales Discontinuation date but still the products are visible with
> sales Discontinuation message.
>
> Regards,
> Abhishake
>
> On Wed, Feb 18, 2009 at 1:43 PM, Kumaraswamy nandipati <
> kumaraswamy@ecomzera.com> wrote:
>
> > Hi Abhishake,
> >
> > Use sales Discontinuation date in edit product page, so it wont visible.
> >
> >                                                 OR
> >
> > go to category tab, you can set thruDate to the categories which are not
> > required to display this product.
> >
> > On Wed, Feb 18, 2009 at 1:29 PM, Abhishake Agarwal <
> > abhishake.agarwal@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > I want to disable some product. I tried with putting past date in
> > > *supportDiscontinuationDate
> > > *and it was not working.
> > >  Please let me know the process.
> > >
> > > Regards,
> > > Abhishake
> > >
> >
> >
> >
> > --
> > Thanks,
> > Kumaraswamy.N
> > 91-9866805250.
> >
>



-- 
Thanks,
Kumaraswamy.N
91-9866805250.

Re: How to disable Product

Posted by Abhishake Agarwal <ab...@gmail.com>.
Thanks Ashish, Kumaraswamy for quick reply.

I cannot disable category as there are many more other products inside
categories. Also product I want to disable associated with many categories
and one of the category is test category which contain all that product
which I need to disable(easy for me to find the product need to be disbale).
I have only option to disable the product so that they won't be visible on
ecommerce site.

I used sales Discontinuation date but still the products are visible with
sales Discontinuation message.

Regards,
Abhishake

On Wed, Feb 18, 2009 at 1:43 PM, Kumaraswamy nandipati <
kumaraswamy@ecomzera.com> wrote:

> Hi Abhishake,
>
> Use sales Discontinuation date in edit product page, so it wont visible.
>
>                                                 OR
>
> go to category tab, you can set thruDate to the categories which are not
> required to display this product.
>
> On Wed, Feb 18, 2009 at 1:29 PM, Abhishake Agarwal <
> abhishake.agarwal@gmail.com> wrote:
>
> > Hi,
> >
> > I want to disable some product. I tried with putting past date in
> > *supportDiscontinuationDate
> > *and it was not working.
> >  Please let me know the process.
> >
> > Regards,
> > Abhishake
> >
>
>
>
> --
> Thanks,
> Kumaraswamy.N
> 91-9866805250.
>

Re: How to disable Product

Posted by Kumaraswamy nandipati <ku...@ecomzera.com>.
Hi Abhishake,

Use sales Discontinuation date in edit product page, so it wont visible.

                                                 OR

go to category tab, you can set thruDate to the categories which are not
required to display this product.

On Wed, Feb 18, 2009 at 1:29 PM, Abhishake Agarwal <
abhishake.agarwal@gmail.com> wrote:

> Hi,
>
> I want to disable some product. I tried with putting past date in
> *supportDiscontinuationDate
> *and it was not working.
>  Please let me know the process.
>
> Regards,
> Abhishake
>



-- 
Thanks,
Kumaraswamy.N
91-9866805250.