Post by Pix » Wed Dec 24, 2008 10:57 pm

I'm using the last-featured-special module on 0.7.9 rc5 and is working great but i've noticed one thing: when you mark a product as "featured" in its admin section, it correctly appears into feautured box. But if you come back to make some changing to that product (let say changing its stock) the status from able become disable and if you dont set it back it obviously disappear from the featured box.
So basically every time you have to change something in a product marked as Featured or Special you have to set his status again.
Shouldn't this thing be remembered?

edit
from a quick look to controller and template it seems like should be remebered...

beside that i'd like to whis a merry christmas to everyone here and i hope you guys are not working like me in this holidays :)
Last edited by Pix on Wed Dec 24, 2008 11:13 pm, edited 1 time in total.

Pix
Newbie

Posts

Joined
Tue Oct 28, 2008 12:29 am

Post by Qphoria » Wed Dec 24, 2008 11:27 pm

ill take a look

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by fido-x » Sat Dec 27, 2008 7:39 am

Insert the following into "admin/controller/product.php" (at around line 610):-

Code: Select all

if ($request->has('featured', 'post')) {
   $view->set('featured', $request->gethtml('featured', 'post'));
} else {
   $view->set('featured', @$product_info['featured']);
}

if ($request->has('special_offer', 'post')) {
   $view->set('special_offer', $request->gethtml('special_offer', 'post'));
} else {
   $view->set('special_offer', @$product_info['special_offer']);
}
This should resolve the issue.

Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by Qphoria » Sun Dec 28, 2008 6:17 pm

I've updated the contrib with this fix:
http://forum.opencart.com/index.php/top ... w.html#new

Thanks!

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Pix » Sat Jan 03, 2009 12:42 am

wonderful fix
thanks!

Pix
Newbie

Posts

Joined
Tue Oct 28, 2008 12:29 am
Who is online

Users browsing this forum: No registered users and 1 guest