Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Discounted flag affects shipping

Discounted flag affects shipping

Locked

Views: 3,402

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
6 Jun 2006, 10:41 AM
#1
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Discounted flag affects shipping

Can someone just clarify the function of the discounted flag in attributes please?

I assumed this would only affect prices if a sale was set up but it appears not to be the case. I'm using price based zone rates and if the attribute pushes the order total into the next shipping range the attribute value is ignored in the shipping calculation if the flag isn't changed from its default value.

For example: zone rates are set as 50:10,150:7

Product 1 £48
Attribute gift wrap +£4.00

With the discounted flag set (ie default) on the attribute the shipping cost shows as £10 even if gift wrap is selected. If the flag is switched off then shipping calculates correctly.

It's not a problem now I know this is what happens but I'd just like to understand it better. :smile: v 1.2.6

14 Jun 2006, 10:15 AM
#2
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Discounted flag affects shipping

Is anyone able to shed any light on this please?

14 Jun 2006, 3:55 PM
#3
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,602
Plugin Contributions:
0

Re: Discounted flag affects shipping

Generally- if you do not recieve a response to a question, it is because you have not given enough information to make a diagnosis. Perhaps you could give us the URL and step by step what is happening or not happening?

14 Jun 2006, 3:59 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

Do you have an example of this Product?

How are you configuring the actual Attribute?

14 Jun 2006, 5:05 PM
#5
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Discounted flag affects shipping

Thanks for the replies. Set up is as follows:

I have set up a product with a price of £48. Product is priced by attributes.

Product has an attribute 'gift wrap' with a price of £4.00

Shipping (zones) up to £50 is £10.00. Over £50 is £12.00. Therefore if the product is selected without gift wrap the shipping cost should be £10.00 and if gift wrap is selected then shipping should be £12.00

The gift wrap option name is set as a checkbox. I have one option value to go with it.

In the Attributes Controller if I leave the the discount flag at its default ie Yes then when I go to checkout and select gift wrap, although the price is shown correctly it has no affect on the shipping. If I change the attribute so that the discount flag is set to no then all is well.

My question therefore is whether this functionality is correct. My assumption was that the discount flag should have no effect unless a sale was set up. Is this assumption wrong?

14 Jun 2006, 5:45 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

I have not been able to repeat this error ...

Do you have an URL with this product?

What version of Zen Cart are you using?

14 Jun 2006, 6:44 PM
#7
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Discounted flag affects shipping

That's a pity!! Tried it on 1.2.6 and 1.3 and is the same. Can I pm you url and login details?

14 Jun 2006, 7:04 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

You may PM me the details and link to this thread ... and when I have time I will look into it for you ...

14 Jun 2006, 7:39 PM
#9
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Discounted flag affects shipping

Thanks Linda I have done. I appreciate your help.

15 Jun 2006, 8:23 AM
#10
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Discounted flag affects shipping

Thanks Linda for taking a look. I've looked at 1.3 again and was wrong - it does work there (working too late - sorry!) so just an issue in 1.2.6. However, setting the discount flag to No has worked so I'll leave it at that.

Thanks for your help.

4 Dec 2006, 11:32 PM
#11
mikecrane avatar

mikecrane

New Zenner

Join Date:
Sep 2006
Posts:
25
Plugin Contributions:
0

Re: Discounted flag affects shipping

This is going to be a huge problem with my client. We are running 1.2.7 because the template was designed for this version. Now, We are running a store-wide sale and the Table-Rate shipping is not working. Is there a way around this issue?

5 Dec 2006, 3:06 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

Could you be a bit more specific about what is not working on the Table Shipping Module?

How do you have it set up?

What does it appear to be doing wrong?

Has it ever worked?

What has changed on your site?

5 Dec 2006, 3:23 AM
#13
mikecrane avatar

mikecrane

New Zenner

Join Date:
Sep 2006
Posts:
25
Plugin Contributions:
0

Re: Discounted flag affects shipping

Here is my Table Rate

25:8.99,50:10.99,75:12.99,100:14.99,150:16.99,200:18.99,300:19.99,10000:20.99

I have US Flags and State Flags that are priced by their size (priced by attributes). I am running a store-wide sale so I need the

Apply Discounts Used
by Product Special/Sale

Selected as "Yes" in the attributes.

What is happening is that the only shipping charges that are showing up is $8.99. When I turn off the Apply Discounts.... It works fine.

I am running 1.2.7. After reading the Forums, I learned that this is not a problem with 1.3.6. I am very very hesitant to upgrading due to the many horror stories that I have read on this forum. I don't even believe that my template would be compatible.

This is a pretty new site, so I don't think it ever worked correctly.

What can I do to solve this issue? It is a very big problem for my client. Any help you can provide would be greatly appreciated.

Mike

5 Dec 2006, 3:31 AM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

Have you an URL to a Product that you are experiencing this problem with?

NOTE: upgrading to v1.3.6 is a good idea ... :smile:

5 Dec 2006, 3:48 AM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

That looks like a template monster template ...you are doomed ... :eek:

It will take quite a bit of work to re-do your template ... and from what we have seen even their v1.3.x templates are not very compatible ...

Be careful on that ...

On the Table rates ... you do have that marked for Price and not Weight correct?

5 Dec 2006, 3:55 AM
#17
mikecrane avatar

mikecrane

New Zenner

Join Date:
Sep 2006
Posts:
25
Plugin Contributions:
0

Re: Discounted flag affects shipping

Yep, it is a Template Monster template. Yes, these are price attributes, not weight. Again, by turning off that setting, it works just fine. I already started to change them. However, there are hundreds to change. I need to get that to work for my client.

5 Dec 2006, 4:13 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Discounted flag affects shipping

Providing Template monster did not touch the core code ...

Switch to Classic Template ... does it work?

You could try this ...

Next, download v1.3.6 ...

rename your file:
/includes/modules/shipping/table.php

/includes/modules/shipping/table.php_HIDE

Edit the file from v1.3.6
/includes/modules/shipping/table.php

And change the line:

class table extends base {

To read:

class table {

Load that to your server ... does it work in both the Admin ... Modules ... Shipping ...

and on your checkout?

Does it fix this issue?

5 Dec 2006, 1:46 PM
#19
mikecrane avatar

mikecrane

New Zenner

Join Date:
Sep 2006
Posts:
25
Plugin Contributions:
0

Re: Discounted flag affects shipping

I received this error in the Admin...modules....shipping

Warning: main(/home/scouting/public_html/includes/languages/english/modules/shipping/table-original.php): failed to open stream: No such file or directory in /home/scouting/public_html/admin/modules.php on line 183

Warning: main(/home/scouting/public_html/includes/languages/english/modules/shipping/table-original.php): failed to open stream: No such file or directory in /home/scouting/public_html/admin/modules.php on line 183

Warning: main(): Failed opening '/home/scouting/public_html/includes/languages/english/modules/shipping/table-original.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/scouting/public_html/admin/modules.php on line 183

Fatal error: Cannot redeclare class table in /home/scouting/public_html/includes/modules/shipping/table.php on line 13

5 Dec 2006, 1:47 PM
#20
mikecrane avatar

mikecrane

New Zenner

Join Date:
Sep 2006
Posts:
25
Plugin Contributions:
0

Re: Discounted flag affects shipping

oops. I see what I did wrong...stay tuned