If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Specials and SaleMaker / Salemaker problems

Salemaker problems

Started by cheddars on 5 Aug 2011, 3:45 PM · Views: 1,803

Results 1 to 14 of 14
5 Aug 2011, 3:45 PM
#1
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Salemaker problems

Yesterday I setup a sale in salemaker.
I selected the start and end dates using spiffycalendar - date is shown in format dd/mm/Y. When I go to the summary screen the dates format has changed to mm/dd/Y and as a result the salemaker module considers the sale has finished ie instead of 1st Sept it translates as 9th January.

Even when the sale has been marked as live there are problems in the shop. In some cases products show the discounted cost but the shopping cart only shows the full cost. In other products the shopping cart correctly shoes the discounted cost.

I am using the current Zencart version 1.39h. What am I doing wrong please?

5 Aug 2011, 3:56 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

SaleMaker is designed to be setup with dates as: mm/dd/Y

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2011, 4:59 PM
#3
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

Thanks for your reply ajeh.
I actually select the date from the popup calendar. It is then shown as 01/09/2011, for example. When I press the update button the date is shown as 09/01/2011 on the summary screen and the sale status is red [disabled].

5 Aug 2011, 5:10 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

What setting do you have, on the server, in the file:

/your_admin_dir/includes/languages/english.php

Line #29 : define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2011, 5:14 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

Actually, if you could check all of these:

/your_admin_dir/includes/languages/english.php

Line #24 : define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

Line #25 : define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

Line #26 : define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

Line #28 : define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

Line #29 : define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2011, 5:27 PM
#6
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

The english.php settings in admin are:

setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

5 Aug 2011, 7:14 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

Try resetting those to the defaults and use the m/d/Y format ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2011, 10:00 PM
#8
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

Thank you Ajeh.
I have reset the date settings in english.php both in admin and the shop. I have also not used dates when setting up the sale so it is open-ended and the sale covers ALL products.
All products show the discount in the shop.
I still have the strange situation where some products pass the discounted cost to the shopping cart and others pass the full amount.

5 Aug 2011, 10:29 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Salemaker problems

cheddars:

I still have the strange situation where some products pass the discounted cost to the shopping cart and others pass the full amount.
Ajeh could clarify this better than I, but what's the master_categories_id on those products which do vs don't get the sale price applied properly?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Aug 2011, 10:56 PM
#10
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

On checking it seems that all products that are linked apply the discount correctly in the shopping cart. Other products do not

5 Aug 2011, 11:13 PM
#11
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

cheddars:

On checking it seems that all products that are linked apply the discount correctly in the shopping cart. Other products do not

Sorry, please disregard earlier comment. It seems that all products that are set as 'priced by attributes' are not showing the discounted cost in the shopping cart

5 Aug 2011, 11:18 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

Make sure that you have on the Attributes set ...

Apply Discounts Used
by Product Special/Sale: YES

Include in Base Price
When Priced by Attributes: YES

and that the Master Categories ID is set to the Category that is on Sale ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Aug 2011, 11:38 PM
#13
cheddars avatar

cheddars

New Zenner

Join Date:
May 2006
Posts:
39
Plugin Contributions:
0

Re: Salemaker problems

It looks as if the problem was caused by 'priced by attributes' tag and my misunderstanding of it as described in the following thread -
http://www.zen-cart.com/forum/showthread.php?t=138464

I need to change these products to 'not' priced by attributes.
Thanks guys for all your help

5 Aug 2011, 11:47 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Salemaker problems

Thanks for the update that all is working correctly for you now ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!