[Skip to main content](#vessel-content)

#   Start &amp; End Sale Date

##

- **[jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")**
- [![jjvelmar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4730-jjvelmar "View jjvelmar's Profile") Topic Author
- [ Offline](/forum/user/4730-jjvelmar)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 10 months ago [\#31934](#31934) by [jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")  *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#31934 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")* was created by *[jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")*

Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if someone tries to order them they just get a message that they can't be ordered now (if not within the sale dates).

Is there a way to make it so the items are hidden instead? So people won't see the items until they are on sale?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

14 years 10 months ago -  12 years 4 months ago [\#31953](#31953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#31953 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

There is no option for that. But you could do it by installing that small plugin

> file removed, please use the file in the post #128950

Last edit: 12 years 4 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")**
- [![jjvelmar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4730-jjvelmar "View jjvelmar's Profile") Topic Author
- [ Offline](/forum/user/4730-jjvelmar)

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 10 months ago [\#32111](#32111) by [jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")  Replied by *[jjvelmar](/forum/user/4730-jjvelmar "View jjvelmar's Profile")* on topic *[Re: Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#32111 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

hey, thanks so much for your efforts on this. I realize how helpful you are being on this.
Installed the plugin, I enabled it, it gives this error:

Fatal error: Call to undefined method JDatabaseMySQL::isAdmin() in /home/tfcmain/public_html/copy/plugins/hikashop/hide_products.php on line 10

Maybe this matters: we are on Joomla 1.5.23 and Hikashop Business 1.5.3

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

14 years 10 months ago [\#32145](#32145) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#32145 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

The line:
$app =&amp; Jfactory::getDBO();
should be :
$app =&amp; Jfactory::getApplication();

in that plugin and that will remove that error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")**
- [![kiweerouge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3764-kiweerouge "View kiweerouge's Profile")
- [ Offline](/forum/user/3764-kiweerouge)

Less More

- Posts: 101
- Thank you received: 4
-
-

13 years 7 months ago [\#92551](#92551) by [kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")  Replied by *[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92551 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

I know this topic is old, but I really need this plugin.

Maybe it is because of the hikashop version (I use the last one), but the plugin doesn't works fine : when I enable it, the product with an old end sale date disappears from the site (front and back). In front it is perfect, but not in backoffice.

If I disable the plugin, I can see the product. So, there are 'just' hidden when the plugin is enabled. But it would be much better if the plugin hide them in front, but not in backoffice. (it would be perfect if the plugin can unpublised these products...)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 7 months ago [\#92772](#92772) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92772 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

I don't understand your message.

The plugin is working fine for me. It hides the products only on the frontend if their start date is in the future of if their end date is in the past. That's it. It doesn't remove them from the backend at all.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")**
- [![kiweerouge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3764-kiweerouge "View kiweerouge's Profile")
- [ Offline](/forum/user/3764-kiweerouge)

Less More

- Posts: 101
- Thank you received: 4
-
-

13 years 7 months ago [\#92831](#92831) by [kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")  Replied by *[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92831 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

En front il n'y a pas de soucis, les produits plus en vente sont bien "cachés", mais ils sont cachés en backoffice aussi. Ce qui est assez ennuyant tout de même.
Ils ne sont pas supprimés, puisque si je désactive le plugin les produits réapparaissent, et en front et en back.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#92900](#92900) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92900 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Je viens de vérifier le contenu du plugin et si l'interface est backend alors, le plugin n'effectue aucune modification du listing de produits.
Toutefois vous pouvez l'éditer afin de changer son comportement, pour qu'il change le status des produits qui ne sont pas dans les dates de vente en désactivé.

Pouvez vous coller les lignes présentes dans la fonction "onBeforeProductListingLoad()" de ce plugin ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")**
- [![kiweerouge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3764-kiweerouge "View kiweerouge's Profile")
- [ Offline](/forum/user/3764-kiweerouge)

Less More

- Posts: 101
- Thank you received: 4
-
-

13 years 7 months ago [\#92904](#92904) by [kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")  Replied by *[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92904 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Voilà pour le code du plugin :
Code:

function onBeforeProductListingLoad(&amp;$filters){ $app =&amp; Jfactory::getDBO(); if($app-&gt;isAdmin()) return; $filters[]='b.product_sale_start&lt;'.time(); $filters[]='(b.product_sale_end=0 OR b.product_sale_end&gt;'.time().')'; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#92905](#92905) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92905 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Merci de remplacer "$app =&amp; Jfactory::getDBO();" par "$app =&amp; Jfactory::getApplication();".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")**
- [![kiweerouge's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/3764-kiweerouge "View kiweerouge's Profile")
- [ Offline](/forum/user/3764-kiweerouge)

Less More

- Posts: 101
- Thank you received: 4
-
-

13 years 7 months ago [\#92913](#92913) by [kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")  Replied by *[kiweerouge](/forum/user/3764-kiweerouge "View kiweerouge's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#92913 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Super, merci !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 4 days ago [\#128950](#128950) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#128950 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Note that the plugin I posted more than a year ago won't install on Joomla 3 as at the time it couldn't be compatible with it.
Here is a version which is compatible with Joomla 3.

*This attachment is hidden for guests.
Please log in or register to see it.*

The following user(s) said Thank You: [cb75ter](/forum/user/7364-cb75ter "View cb75ter's Profile"), [OA](/forum/user/49270-oa "View OA's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

12 years 6 months ago [\#153001](#153001) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#153001 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

You guys should make this a standard plugin that you ship. We have been using a hacky workaround for years.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

12 years 4 months ago -  12 years 4 months ago [\#157991](#157991) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#157991 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

So, we have been using this and it works pretty well. The problem is that it hides the product on both the front end and back end. So, when we set the start date to the future, the product disappears and we can't edit it again until after the start date. Can this be corrected?

I see in the code that it attempts to return if the use is admin

if($app-&gt;isAdmin()) return;

but this doesn't seem to work. We are still on hika 2.0

Thanks

Last edit: 12 years 4 months ago by [mtense](/forum/user/10417-mtense "View mtense's Profile"). Reason: added detail

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 4 months ago [\#158030](#158030) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#158030 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Hi,

I just checked the plugin code, and that should work fine. Are you sure that you don't have an old override or edition present in your code ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

12 years 4 months ago [\#158206](#158206) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#158206 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Yes, I am sure. To double-check, I setup a test installation

- latest version of joomla
- hika business 2.0
- hide products plug in

That is all. Then i added two products. One product I set start sale date to tomorrow. If I enable the hide product plugin, the product disappears from both front and back end. If I disable the plugin, the product comes back.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

12 years 4 months ago [\#158207](#158207) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#158207 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

The fix is pretty simple. In the version of the plugin I had the code looked like this

$app =&amp; Jfactory::getDBO();
if($app-&gt;isAdmin()) return;

I changed this to

$app = JFactory::getApplication();
if($app-&gt;isAdmin()) return;

And it started working correctly.

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#158231](#158231) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#158231 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Hi,

Thanks for the patch.
The weird thing is that, in my side (when I look at the source code of the plugin in our repository), the variable $app is right initialized with the application and not with the DBO.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mtense](/forum/user/10417-mtense "View mtense's Profile")**
- [![mtense's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/10417-mtense "View mtense's Profile")
- [ Offline](/forum/user/10417-mtense)

Less More

- Posts: 36
- Thank you received: 6
-
-

12 years 4 months ago [\#158236](#158236) by [mtense](/forum/user/10417-mtense "View mtense's Profile")  Replied by *[mtense](/forum/user/10417-mtense "View mtense's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#158236 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

There are two attachments on this thread. Somehow I ended up with the first. Kind of my mistake. I suggest deleting the first one and make renaming the second one to hide_product.zip. Maybe that is how I ended up with the bad code. The good code has a bad zip name ![;)](/media/kunena/emoticons/11.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[WoodyF4u](/forum/user/5509-woodyf4u "View WoodyF4u's Profile")**
- [![WoodyF4u's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5509.jpg)](/forum/user/5509-woodyf4u "View WoodyF4u's Profile")
- [ Offline](/forum/user/5509-woodyf4u)

Less More

- Posts: 20
- Thank you received: 0
-
-
-
-

2 years 11 months ago [\#356827](#356827) by [WoodyF4u](/forum/user/5509-woodyf4u "View WoodyF4u's Profile")  Replied by *[WoodyF4u](/forum/user/5509-woodyf4u "View WoodyF4u's Profile")* on topic *[Start &amp; End Sale Date](/forum/4-how-to/31934-start-end-sale-date#356827 "Start and End Sale Dates on each product seem like a very good way to manage these items in the system that we have. I read the documentation and it sounds like the products still show up but if...")*

Is the plugin file in this post also compatible / ready for Joomla 4 and 5?
[ www.hikashop.com/support/forum/4-how-to/...ale-date.html#128950](https://www.hikashop.com/support/forum/4-how-to/31934-start-end-sale-date.html#128950)

---

Best regards,
Wouter

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxOTM0LXN0YXJ0LWEtZW5kLXNhbGUtZGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.699 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
