Forums / Setting Up Categories, Products, Attributes / Product Price breakdown issues

Product Price breakdown issues

Started by maverick3n1 on 28 Aug 2012, 3:02 AM · Views: 2,611

Results 1 to 20 of 33
28 Aug 2012, 3:02 AM
#1
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Product Price breakdown issues

I'm trying to setup attributes so when you select an item, you have a pull down option of qty 5, 10, 25, or 50. Buying a qty of 1 won't be an option. Each group has a different price. For example, Qty 5 = $4, Qty 10 = $6, up to the 50 pack which would be a full case. I still want the qty box there however, so if you want 150, you can select a case of 50, and then select a qty of 3.

So I setup my attributes, set prices on it, set my product default price to 0, and what I got instead of a pull down menu was little bullets you can select, and all 4 are selected and I don't have the option to deselect them. I made sure "Default Attribute
to be Marked Selected:" was set to no, and under option values, default order was set to 0.

My goal is to be able to choose from 1 of the 4 options, select qty of that price point, and also have the stock properly subtract the correct number of inventory items, as all 4 options will be under the same part number, and I'm listing my stock in singles.

Any help would be great!

29 Aug 2012, 8:58 PM
#2
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

What I meant by bullets was Radio Buttons. They all show up as radio buttons instead of pull downs, and they are all selected and I can't deselect any of them. Under Option Name, I have them listed as pulldowns however, so I have no clue why they are radio buttons, nor why they are all stuck as selected and can't be deselected.

29 Aug 2012, 9:21 PM
#3
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

Alright, I figured out why everything was coming up as Radio Buttons.. now I just need to figure out how to make it so whatever option the user selects subtracts the proper quantity from my inventory. If they select to buy 10, I need it to subtract 10 from my inventory, rather than thinking it's a custom option for the same inventory and only subtracting 1.

29 Aug 2012, 9:30 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

Why use attributes at all, when you can use the Products Pricing Manager to set up quantity-discount-levels directly?

  1. Admin->Catalog->Products Price Manager
  2. choose a product from pulldown
  3. Click the Edit button in the middle of the screen
  4. Click the "add 5 blank discounts" so you have some fields to enter values into
  5. Save

Repeat as necessary, either from step 4 for same product, or from step 2 with another product.

And then remove the clashing attributes.

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

29 Aug 2012, 9:41 PM
#5
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

The problem with that is it gives users the option to order 3, or 7, or some other number. I'm only selling in qty of 5, 10, 25, and 50. 50 are in a box, and 5 come on one sheet, so it's easier to sell them by multiples of 5 and so on, and it's fairly standard to be sold like that in the industry. The way you suggested would allow a user to select any quantity they wanted.

29 Aug 2012, 9:43 PM
#6
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

From doing more research it looks like I need the ability to do stock by attribute? Only ones I see though are for version 1.3.9 and lower, and I'm on 1.5.0

29 Aug 2012, 10:02 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

Remember, in Zen Cart's product-edit screen in your admin, you can require customers to order in multiples, such as 5.

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

29 Aug 2012, 10:40 PM
#8
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

I'd rather just have the pull down with the 4 options. It's the standard in the industry, and I'd like to kind of keep it the same, as when people price compare, they sometimes get confused with simple math.. ;) So how do I make the 4 different attributes pull the proper amount of stock?

30 Aug 2012, 11:17 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

I was simply showing you that there are built-in features that accommodate much of what you were describing.
Sorry that they appear to not work in the exact combination you were seeking. Perhaps maybe there's an addon that will meet your unique needs.

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

30 Aug 2012, 11:25 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

If you're looking to write custom code just to handle inventory adjustments of the product, and just using attributes to handle quantity (not variations such as color/size/etc), then adapting some of the code I shared here might help:
http://www.zen-cart.com/showthread.php?198936-quot-Subtract-stock-quot-individually

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

30 Aug 2012, 5:31 PM
#11
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

DrByte:

If you're looking to write custom code just to handle inventory adjustments of the product, and just using attributes to handle quantity (not variations such as color/size/etc), then adapting some of the code I shared here might help:
http://www.zen-cart.com/showthread.php?198936-quot-Subtract-stock-quot-individually

What exactly does that code do? Does it allow me to flag how much stock to withdraw based on what attribute was selected?

30 Aug 2012, 6:12 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

maverick3n1:

What exactly does that code do?It does exactly what the person asked for in their posts.
It's different from your requirements, almost in the reverse direction.

maverick3n1:

Does it allow me to flag how much stock to withdraw based on what attribute was selected?
No, but it could be adapted by rewriting the inner workings of that bit of code to look at the attributes, figure out what those attributes mean, and then do the appropriate stock reduction, and then tell it to skip doing the normal built-in stock reduction.

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

2 Sep 2012, 2:52 AM
#13
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

What would you charge me to make said changes? I'm not the l337 programmer you are ;) My last play time with PHP was ver 3.0, and I wasn't super knowledgeable in that, so a adaptations to the code would be quite a bit more complicated for me than someone such as yourself. Most of the programming languages I work with right now are proprietary languages (like Simpl for Crestron etc..), which is more like Visual C.

I sent you a PM, but not sure if you check your PM's or not :)

6 Sep 2012, 6:07 AM
#14
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

Is there anyone that can help me with this?

7 Sep 2012, 1:46 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

maverick3n1:

Does it allow me to flag how much stock to withdraw based on what attribute was selected?
How do you plan to define those details?
Have you built some sort of map which lays out all those required pieces of information?

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

7 Sep 2012, 7:29 PM
#16
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

I'd assume it would be an extra option when setting up your price by attribute that that you can flag as "bulk" and choose what qty this option would deduct from stock if the bulk option is checkmarked, and then the code that deducts stock would have something that says "if item has attribute & if attribute has bulk checkmarked = withdraw qty from stock based on user entered qty multiplied by bulk qty. If item has attribute & if attribute doesn't have bulk checkmarked = process like it normally would without bulk selected." This way when the bulk option is not checkmarked in the attribute, the qty withdrawn will be just whatever qty the user placed in the qty box. If the bulk option is checked, then it will multiple the qty placed in the qty box by the bulk amount. This way if a user decides to buy 2 cases of 50, it will withdraw 100 of said item from my inventory rather than 2.

7 Sep 2012, 9:45 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

maverick3n1:

My goal is to be able to choose from 1 of the 4 options, select qty of that price point, and also have the stock properly subtract the correct number of inventory items, as all 4 options will be under the same part number, and I'm listing my stock in singles.
Will these quantity numbers (ie: the 4 options) be the same for all your products?
Is there some universal list of "rules" that apply everywhere in your site?

ie: without having to control EACH attribute separately
(cuz if each attribute must be handled separately, then it will require a lot of coding and database work which may conflict with addons, and then you're gonna also be asking for mass-copy tools to update a whole bunch of them in various batches, and so on)

Or is this a case where no two products will be treated the same, and thus this truly requires custom/bespoke coding to handle your very unique requirements?

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

8 Sep 2012, 12:11 AM
#18
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

I only really have 1 product types that will be broken down in this manner, but there are approximately 80 different sizes of the product type (each with it's own unique part number). The breakdown will be 5,10,25, and 50 for every one of those 80 or so items. The rest of the items on the site will all be sold as singles.

8 Sep 2012, 12:20 AM
#19
drbyte avatar

drbyte

Sensei

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

Re: Product Price breakdown issues

So you're using the same attribute option name+value pairs on all of those 80 products?

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

8 Sep 2012, 8:25 PM
#20
maverick3n1 avatar

maverick3n1

New Zenner

Join Date:
Aug 2012
Posts:
20
Plugin Contributions:
0

Re: Product Price breakdown issues

The pricing is different depending on the product, but outside of that, everything else is the same. Same quantity break down, same labels.