Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Can I make attribute selection REPLACE product price, instead of adding to it?

    Is there a way to make an attribute selection REPLACE the product price, instead of being added in addition to it? And I cannot start with a base price of $0, this workaround is no good for my situation.

    I am pricing all of my products by attribute. I have the Dual pricing wholesale module installed, which displays a different price for every wholesale level. This is why I would like the price to be displayed, but not used in calculation when selecting attributes.

    example:
    Product A
    Price each: $5

    Quantity dropdown:
    5 units ($25)
    10 units ($50)

    Unfortunately, when the product is added to cart, the extra $5 is added as well. For ease of use, I don't want the quantity dropdown to say +$15. I want it to say exactly the price that it should be.

    Any ideas how to do this?

    Thanks!!!

  2. #2
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: How to make attribute selection REPLACE product price, instead of adding to it?

    Its not the best solution to use attributes for quantity discounts. Look in the module section for a module that addresses you problem. I know that is something from that software guy. Look at the website for a module that suits your needs.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to make attribute selection REPLACE product price, instead of adding to it?

    Unfortunately, when the product is added to cart, the extra $5 is added as well. For ease of use, I don't want the quantity dropdown to say +$15. I want it to say exactly the price that it should be.
    You need to use the offset and factor to not add to a base
    Best that can be done is to supress the +($?.??)

    You did state that you are pricing by attributes and if so you should not have a base price entered though
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: How to make attribute selection REPLACE product price, instead of adding to it?

    Thank you for your suggestions. My situation is complex, so this is the only way.

    • I've got Dual Pricing installed, so I enter the price for each group (Group A, Group B, etc) into the main product price. So I cannot set that to $0.
    • I know Quantity Discounts is the best way to offer discounts. However, because my client wants different levels of wholesale pricing, I cannot use this feature because it will apply globally to all wholesale customers.
    • I have the attribute setup as a "price factor" so if they select quantity of 4 units, it will multiply that customer's base price by 4. I cannot set the offset, becuase it would have to be a different offset for each customer, which is not a feature of the Dual Pricing add-on.



    I was hoping for a switch in the admin that might turn off the "adding" of the product price to an attribute, but since there is not, can you point me to a place in the shopping cart or attributes file where I can remove the product price from being added in the code? Or even subtract the original product price after it's all been calculated?

    Thanks again!

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: How to make attribute selection REPLACE product price, instead of adding to it?

    I have the attribute setup as a "price factor" so if they select quantity of 4 units, it will multiply that customer's base price by 4. I cannot set the offset, becuase it would have to be a different offset for each customer, which is not a feature of the Dual Pricing add-on.
    Offset is a percentage - it will take the base and whatever offset you have specified f
    So to remove 1 unit of price set it to 1.00
    I've got Dual Pricing installed, so I enter the price for each group (Group A, Group B, etc) into the main product price. So I cannot set that to $0.
    Dual - pricing... is this only 2 prices?
    group A & B can be set to a percentage in the group setup all groups can have a different perxentage....will calc upon viewing cart

    For most anything else you are gonna require some crafty custom coding
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Jun 2009
    Location
    Orange County, California
    Posts
    544
    Plugin Contributions
    18

    Default Re: How to make attribute selection REPLACE product price, instead of adding to it?

    Kobra, thanks for the response :)

    I did not know the offset was a percentage, i thought it was a solid price, thanks for letting me know that!

    Now, here's the thing... and I guess i should've said earlier, but i thought it was inconsequential til now...

    I also have the Hidden Wholesale module installed. Most products have a retail price of $0 so they'll be hidden. But some are showcased on the front end with a price of $1 (although price is hidden).

    Now, the products with a retail price of $0 are calculating fine into the cart. But it's the ones with a $1 price on the front end, that are getting the extra $ added. Only becuase the attributes are adding into this price, instead of ignoring/replacing it.

    Now, i could change the attribute offset i suppose. But then, every time my client wants to show or hide a product, they'll need to not only change the price of the product to $1, but they also need to go into the attributes and change the offset. which is just confusing.

    Anyhow, you can see that probably the easiest thing to do is simply change the cart code to ignore the base price when adding the attribute price. This will be a global fix for the whole site, and works for both the $1 and $0 products.

    I know some PHP, so custom coding is great for me! just point me in the right direction/ file location :)

    Thanks!

 

 

Similar Threads

  1. v155 Replace product images by attribute or by adding a selector in the description?
    By augiespanoramas in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Jul 2016, 01:38 PM
  2. Calculating price from attribute drop down selection
    By star171 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 23 Mar 2011, 02:58 AM
  3. How can I make an attribute calculate a by-the-inch price and show before checkout?
    By Z888999777T in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Feb 2011, 11:42 AM
  4. I Want to Make the Attribute Selection Box Larger
    By Metalbiscuits in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Nov 2010, 08:51 PM
  5. Product Listing layout - how can I make it 3 columns instead of rows?
    By jojo_cool in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Mar 2010, 03:25 AM

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