Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default 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 stores and counting! Ive been zenned.

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    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: v1.5.5]
    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!

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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
    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: v1.5.5]
    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!

  4. #14
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default 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.
    Last edited by makenoiz; 3 Jan 2010 at 04:02 AM.
    22 stores and counting! Ive been zenned.

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?
    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: v1.5.5]
    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!

  6. #16
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default 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

    Code:
    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
    Code:
    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?ma...roducts_id=994)

    I have this:
    Code:
    					  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.
    22 stores and counting! Ive been zenned.

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute Pricing Changes with Sale Price-WRONG!

    Thanks for posting a solution that worked for on this ...
    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: v1.5.5]
    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!

  8. #18
    Join Date
    Jan 2010
    Posts
    10
    Plugin Contributions
    0

    Default 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.

  9. #19
    Join Date
    Jun 2009
    Posts
    4
    Plugin Contributions
    0

    Default 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


    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.)

  10. #20
    Join Date
    Aug 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Attribute Pricing Changes with Sale Price-WRONG!

    Quote Originally Posted by Ajeh View Post
    Mark the Attribute to not include the Special or the Sale:
    Is it possible to set this as default?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Pricing by word, with price changing upon attribute selection
    By parkerweb in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 11 Jun 2015, 08:21 PM
  2. v150 Sale Price changes when quantity is more than 1
    By In2Deep in forum Setting Up Specials and SaleMaker
    Replies: 7
    Last Post: 6 Feb 2013, 07:10 PM
  3. Show attribute sale price with regular price
    By pooka in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 16 Dec 2012, 05:22 PM
  4. Show Normal Price and Sale Price by Attribute
    By katrobb in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 4 Oct 2010, 01:28 AM
  5. Group Pricing per Item with Price by Attribute
    By RFree190 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Mar 2010, 08:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR