Zen Cart Logo
Forums / General Questions / Unique SKU for each attribute?

Unique SKU for each attribute?

Views: 11,370

Results 41 to 49 of 49
15 Feb 2008, 12:35 PM
#41
etrader avatar

etrader

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Unique SKU for each attribute?

The previous problem I had is now fixed. It seemed to be a caching issue.

Now I have the same problem as Rune.

The SKU is not showing up on the checkout confirmation page.

The problem is that the $products_attributes_ids variables are not being passed on from the shopping cart page.

I'll keep trying.

15 Feb 2008, 12:50 PM
#42
milojko avatar

milojko

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Unique SKU for each attribute?

Hi etrader,
Would you mind explaining how did you solve the problem?

15 Feb 2008, 2:17 PM
#43
etrader avatar

etrader

New Zenner

Join Date:
Dec 2005
Posts:
62
Plugin Contributions:
0

Re: Unique SKU for each attribute?

For some reason, the form action was trying to add a new attribute instead of adding the sku. It may seem strange but the only way I could fix it was to put any empty form tag before the sku form.

Around line 1635 in attributes_controller.php I added:

<form></form>

before:

<form name="sku_update" action=

If someone could explain how this works I'd like to know.

15 Feb 2008, 3:01 PM
#44
milojko avatar

milojko

New Zenner

Join Date:
Jan 2008
Posts:
11
Plugin Contributions:
0

Re: Unique SKU for each attribute?

Unfortunaltely this doesn`t work for me.
Still getting the same error ...
Attribute Option and Option Value Do NOT Match - Attribute was not added - : TEXT

27 Aug 2008, 2:28 PM
#45
graper avatar

graper

New Zenner

Join Date:
Jul 2006
Posts:
50
Plugin Contributions:
0

Re: Unique SKU for each attribute?

milojko:

Using this mod, when I try to asign an SKU to an already given attribute it keeps saying:
"Attribute Option and Option Value Do NOT Match - Attribute was not added - : TEXT"
I guess I dont need to mention that I didnt tried to add a TEXT attribute ...

Does anybody possibly know what could cause this problem?

I was searching for sku numbers on attributes and found that you didn't get an answer and if there is an answer to this in another thread there was no link to this answer.

If I'm correct the problem you are describing is because when you go into attributes controller, you have to choose an item in the left box(option name) and then find another item in the right box (option value).

If you choose an option name and chose an option value that wasn't assigned to that option name that error will occur. I use a module called "Improved attributes controller" that uses some javascript to dynamically change the right side based on what option name is chosen.

Hope this helps, even if it does come many months later

7 Aug 2010, 8:15 PM
#46
cropinstop avatar

cropinstop

New Zenner

Join Date:
Oct 2006
Location:
Surprise Arizona
Posts:
73
Plugin Contributions:
0

Re: Unique SKU for each attribute?

Tried to load the latest zip version and updates last night, but could not get adding skus to work from the attribute manager. It gave an error "Duplicate Attribute"

Three points.

  1. I was using dropdown lists, and it seemed to categorizing it as a text option
  2. The ADD button has a value in the form of ADD but there is no test for that value in the UPDATE ATTRIBUTE code.
  3. I was testing a product with two options. It offered add skus for the values of each option( a, b, c, 1, 2, 3), but not combinations of the two options (a1, a2, a3, b1, b2, b3, etc). This may be hard to do, but the Stock by Attributes feature seems to handle it.
8 Jan 2011, 11:36 PM
#47
echexxxxxxxx10 avatar

echexxxxxxxx10

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Unique SKU for each attribute?

someone has developed this change?
was a useful thing and almost made it!
I tested on zc1.3.9 but not working :(

25 Jun 2011, 12:53 AM
#48
kmcheng avatar

kmcheng

New Zenner

Join Date:
May 2011
Posts:
40
Plugin Contributions:
0

Re: Unique SKU for each attribute?

I want have an unique SKU for each attribute also for the furniture company I work for
but when you think about it, it is inherently very different to do, and it is the best to do with with dependent attributes

when you just have independent attributes, the page cannot really show the SKU out until you finished choosing all the options, since EACH combination of options will have a different SKU or may be also a different stock number

I am thinking a work around solution since we cannot want for zen cart 2, it would be like the SKU is only for internal use, just show the shared part of the number. Most customers don't really care about the SKU anyway unless they have a problem. Of course, stock can also be a problem.

Of course, you can freaking list each and every SKU as an independent product, but it is not really practical, plus it can easily overwhelm you AND the customers

30 Jun 2011, 1:03 AM
#49
kmcheng avatar

kmcheng

New Zenner

Join Date:
May 2011
Posts:
40
Plugin Contributions:
0

Re: Unique SKU for each attribute?

so anyone with any luck to get the SKU number display in the checkout process?