Post by tienvijf » Thu Apr 21, 2011 6:55 pm

Hello Opencart,

I've been looking for a while on the forum and i cant seem to find any answer on how to make the specials module work.

Whatever i've been trying, no specials appear under any circumstances.

Am i the only one with this problem? Why is it so difficult? I add a special price under a product and expect it to appear in the specials module but it doesn't!

Please tell me whats going wrong!! ???

Thanks in advance!!

Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by Xsecrets » Thu Apr 21, 2011 7:50 pm

just make sure that you've added the specials price under the specials tab. Make sure that the price range includes today. You may need to backdate it a day. And that's all you should have to do. I can tell you that the default data does not have any specials that will show up as the date has expired on the sample one that was in there.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by mystifier » Thu Apr 21, 2011 8:11 pm

Specials relate to 'Customer Groups'. If Specials (or Discounts) are intended for a particular group, this is fine. However, if they are set to 'Default', it has the (in my opinion, wrong) effect that they disappear when someone logs in if they don't belong to the 'Default' group.

If this is your case, you need to modify getProductSpecials() and getTotalProductSpecials() in catalog/model/catalog/product.php

And basically, change occurences of:
customer_group_id = '" . (int)$customer_group_id . "'
to:
(customer_group_id = '" . (int)$customer_group_id . "' OR customer_group_id = '1')
(i.e. Show Specials if the Customer Group matches that set in the Special OR is set to 'Default').

I can remember saying this before so the full changes are on the forum somewhere; my file has several other mods now so not advised.

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by Qphoria » Thu Apr 21, 2011 9:44 pm

mystifier wrote: (customer_group_id = '" . (int)$customer_group_id . "' OR customer_group_id = '1')
By default "8" is the "Default" customer group

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mystifier » Thu Apr 21, 2011 9:52 pm

Sorry, use '8' in the query or change Default to a more sensible '1' ;D

I must have changed it to 1 because I use (customer_group_id > 1) in quite a few places to mean 'not a Default user'.

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by tienvijf » Tue Apr 26, 2011 8:30 pm

Allright,

So i have a clean opencart install (1.4.9.4),
i add a new product and under the specials tab i set the date to a month before and three months after the current date, i add a special price and that's all i should do.

Now it won't show up under specials!

Why should i modify any core files :-\ ??? I really dont get it. :choke:

Shouldn't this function just work out of the box or are all the Opencart users modifying core files to be able to make the specials module work? This is crazy and very bad i.m.h.o

So i have to tell a client that its simply NOT possible to show any specials.

Is there anyone else experiencing this problem aswell?

Pretty stuck here.

RJ

Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by fido-x » Tue Apr 26, 2011 8:39 pm

Why not use "$this->config->get('config_customer_group_id')". This will then "grab" the default customer group from the settings.

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 mystifier » Tue Apr 26, 2011 8:45 pm

Specials needs to be enabled in Admin->Extensions->Modules.

Customer Group needs to be set to Default to show when not logged in.

Price needs to be new price as positive number (eg. 5.99).

That's it!

Free v1.4.9 Extensions: Default Specials | Improved Search | Customer Activity Report | Customer Groups | Royal Mail With Handling | Improved Product Page | Random Products | Stock Report | All Products


User avatar
Active Member

Posts

Joined
Tue May 18, 2010 5:15 pm

Post by Xsecrets » Tue Apr 26, 2011 9:17 pm

tienvijf wrote:Allright,

So i have a clean opencart install (1.4.9.4),
i add a new product and under the specials tab i set the date to a month before and three months after the current date, i add a special price and that's all i should do.

Now it won't show up under specials!

Why should i modify any core files :-\ ??? I really dont get it. :choke:

Shouldn't this function just work out of the box or are all the Opencart users modifying core files to be able to make the specials module work? This is crazy and very bad i.m.h.o

So i have to tell a client that its simply NOT possible to show any specials.

Is there anyone else experiencing this problem aswell?

Pretty stuck here.

RJ
no it works perfectly fine out of the box for everyone else but you. The talk about code changes only has to do with people wanting things to work a special way. On a default install all you should have to do is setup a special with a price lower than the regular price and a valid date range. Of course make sure the module is installed and enabled, but by default I think it already is.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by fido-x » Tue Apr 26, 2011 9:23 pm

Xsecrets wrote:... Of course make sure the module is installed and enabled, but by default I think it already is.
Ah, no. By default, the specials module is neither installed or enabled.

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 tienvijf » Tue Apr 26, 2011 9:38 pm

Xsecrets wrote:
tienvijf wrote:Allright,

So i have a clean opencart install (1.4.9.4),
i add a new product and under the specials tab i set the date to a month before and three months after the current date, i add a special price and that's all i should do.

Now it won't show up under specials!

Why should i modify any core files :-\ ??? I really dont get it. :choke:

Shouldn't this function just work out of the box or are all the Opencart users modifying core files to be able to make the specials module work? This is crazy and very bad i.m.h.o

So i have to tell a client that its simply NOT possible to show any specials.

Is there anyone else experiencing this problem aswell?

Pretty stuck here.

RJ
no it works perfectly fine out of the box for everyone else but you. The talk about code changes only has to do with people wanting things to work a special way. On a default install all you should have to do is setup a special with a price lower than the regular price and a valid date range. Of course make sure the module is installed and enabled, but by default I think it already is.

Well, i can tell you it does NOT work out of the box. That's why im posting here on this forum.

I installed AND enabled the module, i set the price lower then the normal price and i set the right date range and it does NOT work.

Maybe you can send me your email adress and i can send you the username and login so you can see and try for yourself.

This is getting a bit annoying a must say, sorry. :-[

RJ

Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by fido-x » Tue Apr 26, 2011 9:47 pm

Which customer group did you apply the specials to? If you applied the specials to the "Wholesale" group, the specials will not display unless the customer is a member of that group AND logged in. If applied to the "Default" customer group, it will display for all unlogged customers and any logged in customer who is a member of the default group.

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 tienvijf » Tue Apr 26, 2011 10:00 pm

Hi Fido-x,

Thanks for the quick reply.

I added the special to the "Default" customer group, and under system>settings>option is set the Default customer group to "Default"

no succes so far.

Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by fido-x » Tue Apr 26, 2011 10:06 pm

What's happening on the product page for the special offer product? Is the regular price being "struck out" and the special price being displayed next to it?

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 tienvijf » Tue Apr 26, 2011 10:13 pm


Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by fido-x » Tue Apr 26, 2011 10:16 pm

In the specials module (under "Extensions->Modules"), did you set a limit?

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 tienvijf » Tue Apr 26, 2011 10:32 pm

Hi fido-x,

I guess that was it, i didn't set a limit..... funny nobody ever mentioned that. I probably thought that not setting a limit would mean no limit.

Thanks so much man!!!! If you ever need any wordpress help let me know. Or anything else i can help you with offcourse.

Finished my work for today. I'm off surfing now!!

Have a nice day :)

Newbie

Posts

Joined
Wed Apr 20, 2011 4:51 am

Post by fido-x » Tue Apr 26, 2011 10:35 pm

No worries.

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
Who is online

Users browsing this forum: No registered users and 4 guests