How to disable Product

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

How to disable Product

Abhishake Agarwal
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
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Ashish Vijaywargiya-5
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
>
>  

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Kumaraswamy nandipati
In reply to this post by Abhishake Agarwal
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 <
[hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Ashish Vijaywargiya-5
In reply to this post by Abhishake Agarwal
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
>
>  

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Abhishake Agarwal
In reply to this post by Kumaraswamy nandipati
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 <
[hidden email]> 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 <
> [hidden email]> 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.
>
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Kumaraswamy nandipati
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 <
[hidden email]> 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 <
> [hidden email]> 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 <
> > [hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Kumaraswamy nandipati
Ok then apply first choice, given by me.

On Wed, Feb 18, 2009 at 2:10 PM, Kumaraswamy nandipati <
[hidden email]> 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 <
> [hidden email]> 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 <
>> [hidden email]> 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 <
>> > [hidden email]> 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.
Reply | Threaded
Open this post in threaded view
|

Re: How to disable Product

Jacques Le Roux
Administrator
In reply to this post by Abhishake Agarwal
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" <[hidden email]>

> 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 <
> [hidden email]> 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 <
>> [hidden email]> 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.
>>
>

Reply | Threaded
Open this post in threaded view
|

Calendar - show future dates only

Rees Watkins
In reply to this post by Kumaraswamy nandipati
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