Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Attribute Pricing Changes with Sale Price-WRONG!

Attribute Pricing Changes with Sale Price-WRONG!

Locked

Views: 10,458

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
20 Jun 2008, 4:54 PM
#1
mdyblu avatar

mdyblu

New Zenner

Join Date:
Oct 2007
Posts:
1
Plugin Contributions:
0

Attribute Pricing Changes with Sale Price-WRONG!

I have searched the threads but can not seem to find what I am looking for. I carry products in my store that have different sizes. The larger the size, the more expensive it is. For instance, I have a product selling for $36.99 and I put it on sale for 20% off, making it a price of $29.99.

Now, the base price is for a Small. For a Medium size, the extra charge is $3.00, Large is $7.50 and X-Large is $10.50. When I went to check to see the product "on sale" I noticed that the attribute pricing went on sale as well!! The Medium is now only $2.84 extra, the large is $6.08 and the x-large is $8.51. That should not be. The pricing for the larger sizes must remain the same, whether the product is on sale or not. What am I doing incorrectly? Any help would be greatly appreciated!! Thank you!

MdyBlu

2 Oct 2008, 1:52 AM
#2
raijingo avatar

raijingo

New Zenner

Join Date:
Oct 2008
Posts:
2
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Has anyone figured out a solution for this problem? I am having the same problem. I create a 'special' price for a product but it also affects the price of an attribute related to the product which I don't want.

Other than just changing the price in the Categories/Catalog/Products area is there a way to create a special price for a product without it affecting the attributes separate special price?

Thanks in advance.

MdyBlu:

I have searched the threads but can not seem to find what I am looking for. I carry products in my store that have different sizes. The larger the size, the more expensive it is. For instance, I have a product selling for $36.99 and I put it on sale for 20% off, making it a price of $29.99.

Now, the base price is for a Small. For a Medium size, the extra charge is $3.00, Large is $7.50 and X-Large is $10.50. When I went to check to see the product "on sale" I noticed that the attribute pricing went on sale as well!! The Medium is now only $2.84 extra, the large is $6.08 and the x-large is $8.51. That should not be. The pricing for the larger sizes must remain the same, whether the product is on sale or not. What am I doing incorrectly? Any help would be greatly appreciated!! Thank you!

MdyBlu

2 Oct 2008, 5:29 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Mark the Attribute to not include the Special or the Sale:

Apply Discounts Used
by Product Special/Sale:
No Yes

2 Oct 2008, 6:05 AM
#4
raijingo avatar

raijingo

New Zenner

Join Date:
Oct 2008
Posts:
2
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Wow! Thanks for the quick response. Problem is fixed. :clap:

2 Oct 2008, 4:23 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Thanks for the update that the pricing options on the Attributes were able to help you control if Specials and Sales applied or not to the Attributes that were applied to the Product ... :smile:

8 Nov 2008, 6:50 AM
#6
tezla avatar

tezla

New Zenner

Join Date:
Nov 2008
Posts:
27
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Thanks, this was a good tip.

I noticed something else related ...

I setup a Special discount on an item (item was priced with an up-charge Attribute). When I added it to the Cart, it was still full price.

I found this thread and applied this fix because I didn't want the Attributes discounted, just the main item. But oddly, my item still wasn't being discounted.

What I had to do to make it work:
After I initially setup the special, go into the Price Manager, and be sure this is set:
Priced by Attributes: No

Then the Special discount started working. Works whether the selected attribute is $0 or $50. Your fix takes care of the rest. :smile:

25 Nov 2009, 8:32 PM
#7
choppervon avatar

choppervon

New Zenner

Join Date:
Sep 2009
Posts:
19
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

It's one year later and I found this post relating to my problem, but I have the opposite one. I want my attributes discounted, and have them checked as such in the attributes controller, but they are not discounted:

http://dogjake.com/store/index.php?main_page=product_info&cPath=9&products_id=32

Any other steps I can take?

25 Nov 2009, 11:34 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Are you using Specials or Sales for the discount?

Are your Products set with a Price?

Are your Products set with a Price of 0.00 and marked as Priced by Attribute?

What version of Zen Cart are your running?

Is this a Clean Install or an Upgrade?

22 Dec 2009, 2:27 AM
#9
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

I dont see that the original author responded so Linda Ill reply since Im having this problem too.

My item is priced at 0.00 and set to priced by attribute. I have tried both salemaker and special price. ZC version is v1.3.8 [2009-09-08 15:47:02] (Fresh Installation)

Atributes prices will not discount.

Thanks...

22 Dec 2009, 4:57 PM
#11
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

There is nothing there that pertains to my problem. (?) Unless I missed it. I looked through all the pages of bugs.....

22 Dec 2009, 5:37 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

I'd check anything to do with master_categories_id which is used on pricing ...

I cannot reproduce the problem on my current v1.3.8 with the fixes and would have to think this is related to your installation and add ons etc.

Is this an upgrade or clean v1.3.8 that you are using?

22 Dec 2009, 5:38 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Also check your SaleMaker settings ... usually you need to be sure that you are using:

Specials Condition: Apply SaleDeduction to Specials Price - Otherwise Apply to Price

3 Jan 2010, 2:57 AM
#14
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Sorry to keep pestering you about this. Should this work with Specials as well? I really dont want to put the entire master category on sale.

I have the item priced at 0 and the attributes are priced individually. When using SaleMaker I get this (prices at 0 on display page and BUT correct - deducted amount in the cart -yea!):

http://www.mendweb.com/images/salemaker.gif

Just need to display the correct deducted amounts under the attributes and show the correct starting amount.

BUT Id rather user SPECIALS so that I dont have to put an entire Master Cat on sale:
When using Specials, I get no visible changes on the product display page at all and the price is not changed when added to cart.

So - it looks like Im closer with SaleMaker, just need to display the correct prices. I want to use Specials though. To be honest, the very best would be to be able to discount on an attribute level but I have searched and dont see anything.

Any other ideas you may have or anything that you think I should check would be really appreciated.

Thanks for listening to my rambling.

Thank you in advance.

3 Jan 2010, 3:29 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Have you an URL that we could perhaps peek at on this?

And could you tell us what you have set the Prices as on the Attributes and what you think you should be seeing?

Also, on the Attributes what settings are you using for:
Apply Discounts Used
by Product Special/Sale:

Include in Base Price
When Priced by Attributes

For Sale Maker, what settings are you using?

5 Jan 2010, 7:02 AM
#16
makenoiz avatar

makenoiz

Zen Follower

Join Date:
Mar 2006
Posts:
284
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Well Ajeh, in the interest of time, I have just coded a way to make it happen. I usually try to work with the existing code to limit breakage later but ... not this time. I appreciate your efforts.

First off I discovered that to boolean for priced by attribute had not bee set correctly when the product was added to the DB (my error - I had tweaked the info collect php). That solved the issue of the $0.00 attribute price. Then to get the attribute pricing to show up like this:

http://www.mendweb.com/images/attributesale.gif

I added some code, a flag and some more code to attributes.php . My atttributes.php is highly modified so please be careful when trying to use this code. This is only for reference and cannot be directly plugged into your files!!

But essentially here is the logic.

1)Add a flag variable and set to false at the top of file. MIne is on line 19 $onSaleFlag = FALSE;
2) Around line 157 when showing sale discount I changed

if ($products_options->fields['options_values_price'] != '0' and ($products_options->fields['product_attribute_is_free'] != '1' and $product_info->fields['product_is_free'] != '1')) {
                      // show sale maker discount if a percentage
                      $products_options_display_price= ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] .
                      $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
```to be 

if ($products_options->fields['options_values_price'] != '0' and ($products_options->fields['product_attribute_is_free'] != '1' and $product_info->fields['product_is_free'] != '1')) {
// show sale maker discount if a percentage
$products_options_display_price= ' <!--attributes '.__LINE__.' --><br/><span class="productSalePrice">' . PRODUCT_PRICE_SALE . $products_options->fields['price_prefix'] .
$currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . '</span> ';
$onSaleFlag = TRUE;
} else {


****Notice I set the flag.

3)Then under RADIO BUTTONS case '6': - line 157 for me but probably closer to 147 on a virgin file??  (I have case six because I am using the MOD "Attribute Image Replaces Main Image" <http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=994>)

I have this: ```
					  case '6':
                
					 $tmp_attributes_image .= '<!-- attributes '.__LINE__.' --><div class="attribImg">' .zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"'.' '.$parameters5).'<br />'  . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image'],'attr' ,SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' border="1" onclick="document.getElementById(\'attrib-'. $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id .'\').checked = true;getattribimage('.'\'id[' . $products_options_names->fields['products_options_id'] . ']\''.','. MEDIUM_IMAGE_WIDTH.','. MEDIUM_IMAGE_HEIGHT.', '.$products_options->fields['products_options_values_id'].','.$_GET['products_id'].');"').  '<br /><!-- attributes '.__LINE__.' -->'. $products_options_details .'<br />'; 	
					if (($products_options->fields['options_values_price'] > '0') && ($onSaleFlag == TRUE)){					 
						 $tmp_attributes_image .= '<!-- attributes '.__LINE__.' --><s>$'. number_format($products_options->fields['options_values_price'],2).'</s>';				 					
					 }	
				 ';		  
					 $tmp_attributes_image .= '</div>' . "\n"; 	 
                      break;

You must make sure that your attributes name is set to Radio and option 6 or this code will never be triggered and another area of attributes.php will need the tweaks applied.

Well it worked for me... good luck and, Ajeh - again thanks for your attentiveness! You're one big reason this board is a great resource.

5 Jan 2010, 2:28 PM
#17
ajeh avatar

ajeh

Oba-san

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

Re: Attribute Pricing Changes with Sale Price-WRONG!

Thanks for posting a solution that worked for on this ... :smile:

20 Jan 2010, 5:19 PM
#18
pooka avatar

pooka

New Zenner

Join Date:
Jan 2010
Posts:
10
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

I started to use the code fix above but got lost on case'6' radio buttons. I'm not using an image for attributes - just radio selection. Problem is "sales or specials" will deduct the price - that's not the problem -- but we want customers to SEE the original price and the sale price, however this is only shown for the FIRST attribute.

I like the way you have code to show the original price and the sale price for ALL the attributes listed.

If we're only using radio buttons - what case "#" is that under attributes.php? And will it still work if we apply it there instead of case6?

Hope this all makes sense.

5 May 2010, 8:52 PM
#19
nessuno avatar

nessuno

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

I'm just writing to say that I had the same problem as OP and other posters on other threads, but no solution helped until I implemented the (vaguely described) sales/specials category bugfix from the thread Ajeh linked.
[
www.zen-cart.com/forum/showthread.php?t=82619](http://www.zen-cart.com/forum/showthread.php?t=82619)

Fixed instantly with no other changes needed. (I did follow the instruction of setting the master category id to the category I was selecting under SaleMaker prior to doing the bugfix, but that didn't work.)

11 Nov 2010, 4:08 PM
#20
justrimless avatar

justrimless

Zen Follower

Join Date:
Aug 2006
Posts:
127
Plugin Contributions:
0

Re: Attribute Pricing Changes with Sale Price-WRONG!

Ajeh:

Mark the Attribute to not include the Special or the Sale:
Is it possible to set this as default?