If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Stock by Attributes 5.0 Beta (for v1.5.0)

Stock by Attributes 5.0 Beta (for v1.5.0)

Started by creinold on 27 Oct 2010, 6:34 PM · Views: 69,996

Results 281 to 300 of 365
5 Jun 2013, 4:32 PM
#281
seattleannie avatar

seattleannie

Zen Follower

Join Date:
Oct 2005
Posts:
151
Plugin Contributions:
0

Post #281 by seattleannie

Thanks for all your help, mc12345678. At this time, since my client needs option attributes more than tracking stock quantities with SBA, I will uninstall SBA from her site.

5 Jun 2013, 4:35 PM
#282
athena avatar

athena

Totally Zenned

Join Date:
Jan 2006
Location:
NM
Posts:
740
Plugin Contributions:
0

Post #282 by athena

Just throwing this out there...don't have time to read through all this latest dialogue, but I've had just about every version of this mod installed and upgraded to 1.5.1 with the modified version of creinolds SBA as currently being worked on by zen member Robophung. (Search all his posts - Most problem free in my opinion)

The dropdowns in the link provided - which has changed sine this post - seem to indicate to me that a setting in Admin>Configuration>Stock > show out of stock attributes is set to false and perhaps you don't have any in stock? That's how my drop downs behave under those conditions.

16 Jun 2013, 10:12 AM
#283
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Post #283 by cefyn

I've found the Robophung version problem free-until now.Stock by Attributes is a must have I think,especially in competitive market sectors.But I do have a problem now.I have installed Dynamic Filter for 1.5 on a 1.5.1 site that already has Robophungs Stock by Attributes.Filtering can be a very effective navigation tool.The problem is that Dynamic Filter depends on options and option values.These can be added to suit.For instance,if I want to be able to filter a category by gender I add an option name Gender,and option values, men,women,and then assign one value or the other to the product.Works great,except of course every one of a 1000 plus products has to be assigned one value or the other.The attribute can be hidden on the product page with css,so far so good.But Stock by Attributes won't allow the product to show up in the filter results unless the new option is assigned stock.Thats going to get messy.This happens even if I make the option read only,and however I adjust stock settings.Could I add something somewhere to make Stock by Attributes ignore read only options?

19 Jun 2013, 6:41 PM
#284
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #284 by kevin205

Kevin205:

Is there a way to** mass populate** to SBA?

Bump..

How could this be done, one product at a time for 1000s of products with 2, 3, 4, 5 attributes for each product?

Any one with any ideas?

Using Zen Cart 1.5.1

19 Jun 2013, 8:44 PM
#285
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #285 by mc12345678

So, my answer may not be liked as it is not code, but if I understand the question you are wondering about a process that may actually assign the desired attributes to the desired product(s).

I would think that this would be an almost serious undertaking as a result of the following:

  1. Would need to address adding defined/existing attributes to an existing product without an attributes.
  2. Would need to address adding new attributes to an existing product without an attributes.
  3. Would need to address adding defined/existing attributes to a new product without an attributes.
  4. Would need to address adding new attributes to a new product without an attributes.
      1. Repeat the above 4 with consideration that each has one or more existing attributes.

Each of these may have some equivalency to the other (Ie., overall process of adding a new product and a new attribute); however, consideration would need to be given to each of the tables that make up the characteristic being added/modified.

Perhaps someone else may correct me, this question is along the lines of using an alternate plugin such as mass populate, but could also inspire a brand new plugin/modification to this one.

It would seem that once each of the above four/eight routines were addressed, that any combination of those routines could be run based on a query of the database when acting on the data. The next thing to consider is what would feed this mass populate utility, is it a file or a series of onscreen selection? Would one want to add one attribute to multiple products, combinations of attributes to multiple products, etc...

It may be that other mods closely approach (or perform) this action and can be expanded upon to incorporate feeding into stock by attributes (keeping in mind any differences between the various stock by attributes addins that are out there), or at least they may provide a template to do so.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Jun 2013, 9:01 PM
#286
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #286 by kevin205

mc12345678:

So, my answer may not be liked as it is not code, but if I understand the question you are wondering about a process that may actually assign the desired attributes to the desired product(s).

I would think that this would be an almost serious undertaking as a result of the following:

  1. Would need to address adding defined/existing attributes to an existing product without an attributes.
  2. Would need to address adding new attributes to an existing product without an attributes.
  3. Would need to address adding defined/existing attributes to a new product without an attributes.
  4. Would need to address adding new attributes to a new product without an attributes.
      1. Repeat the above 4 with consideration that each has one or more existing attributes.

Each of these may have some equivalency to the other (Ie., overall process of adding a new product and a new attribute); however, consideration would need to be given to each of the tables that make up the characteristic being added/modified.

Perhaps someone else may correct me, this question is along the lines of using an alternate plugin such as mass populate, but could also inspire a brand new plugin/modification to this one.

It would seem that once each of the above four/eight routines were addressed, that any combination of those routines could be run based on a query of the database when acting on the data. The next thing to consider is what would feed this mass populate utility, is it a file or a series of onscreen selection? Would one want to add one attribute to multiple products, combinations of attributes to multiple products, etc...

It may be that other mods closely approach (or perform) this action and can be expanded upon to incorporate feeding into stock by attributes (keeping in mind any differences between the various stock by attributes addins that are out there), or at least they may provide a template to do so.

Wow!

Product: Picture Frames
Sizes defined as attributes: 2"x3", 5"x7", 6"x9", 8"x10" and 10"x12", with different prices, and inventory levels for each size.

Multiply that by 125 different varieties of picture frames with the same size attributes. How long do you think it would take to manually input and or update, for new arrivals, discontinued items and etc?

I think it is a must have as a function for product that use attributes as such.

Using Zen Cart 1.5.1

19 Jun 2013, 9:35 PM
#287
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #287 by mc12345678

Kevin205:

Wow!

Product: Picture Frames
Sizes defined as attributes: 2"x3", 5"x7", 6"x9", 8"x10" and 10"x12", with different prices, and inventory levels for each size.

Multiply that by 125 different varieties of picture frames with the same size attributes. How long do you think it would take to manually input and or update, for new arrivals, discontinued items and etc?

I think it is a must have as a function for product that use attributes as such.

So, to answer the last question first, longer than I personally would want to take if by manually adding you mean through the use of the admin panel.

Now, it's interesting that today I happened to be looking at adding the mass populate plugin to our site. There is an option within that program to import "basic attributes" as it says in the first post (Version 4) (http://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread). So, could recommend using that to first import all of the attributes to all of the new products, then (and assuming that you have a version of stock by attributes that doesn't display attributes that are out-of-stock) could use applicable SQL statements within your database admin program or (worst case) from within the admin panel running the SQL statements in the admin area to populate the quantities for each of the attributes and or prices. (Also depends on how the prices vary).

I would agree that there is a benefit to having some similar store population utility. I also understand that it would/could be complex to do. One might ask how often such a utility would be used to the extent described. For some frequently (monthly, quarterly, annually etc.), for others maybe once on initial store setup.

Also would need to consider the method of input to the source that does the populating. (Ie is it faster to just enter that information as described above/before or to populate some file that would be uploaded?)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

19 Jun 2013, 9:56 PM
#288
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #288 by kevin205

I have been using EP4 for months now, and it is a dream come true!

It works perfectly for general product population, and adding and attaching attributes prices, size, color and etc to the products. But EP4 does and cannot handle, import and export attribute inventory levels; as Zen Cart core does not address and keep track of attribute inventory.

Using Zen Cart 1.5.1

19 Jun 2013, 11:54 PM
#289
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #289 by mc12345678

Kevin205:

Wow!

Product: Picture Frames
Sizes defined as attributes: 2"x3", 5"x7", 6"x9", 8"x10" and 10"x12", with different prices, and inventory levels for each size.

Multiply that by 125 different varieties of picture frames with the same size attributes. How long do you think it would take to manually input and or update, for new arrivals, discontinued items and etc?

I think it is a must have as a function for product that use attributes as such.

Kevin205:

I have been using EP4 for months now, and it is a dream come true!

It works perfectly for general product population, and adding and attaching attributes prices, size, color and etc to the products. But EP4 does and cannot handle, import and export attribute inventory levels; as Zen Cart core does not address and keep track of attribute inventory.

So really, you're in the position that you just need to address the inventory part of the attributes. That solution I think is easier than what I originally perceived. I would think that with even the combination of that program and stock by attributes, could quickly formulate the sql statements that would do the work (for the in the bind situation). Basically would need to identify what tables and data to incorporate the needed keys to make it work.

So basic concept, if easypopulate can provide or takes the productid and the attribute information (whether a number or description), then using something like excel (because that is what I know can create strings of text in a spreadsheet) can make generic sql functions that would populate the database with the desired stock. I understand that excel is possibly not the preferred application to do such spreadsheet work, but the company has gotten their hooks in me. :P

Any rate, that would be a solution to get you where you need to based on current demand, but still some work that "may" be better/easier with a populating application.

I would have to look at the inputs and outputs of that application and compare to the data to what is needed for stock by attributes to give a more detailed answer as this is pseudocode at the moment

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jun 2013, 1:18 AM
#290
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #290 by kevin205

EP4's Attrib-Basic-EP exports and can re-import the following fields:
v_products_model
v_products_options_type
v_products_options_name_1
v_products_options_values_name_1

I thought it might help!

Using Zen Cart 1.5.1

20 Jun 2013, 2:57 PM
#291
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #291 by mc12345678

Kevin205:

EP4's Attrib-Basic-EP exports and can re-import the following fields:
v_products_model
v_products_options_type
v_products_options_name_1
v_products_options_values_name_1

I thought it might help!

Okay, so I don't know which version you have installed, but Version 4.0.22 - Beta 6-10-2012 includes Detailed Products Attributes (detailed multi-line) option which downloads the data I was referring to: v_products_attributes_id, v_products_id, v_options_id, v_options_values_price

The version of Stock by Attributes that I ended up installing (still not sure if it was a Creinold version or more recent, has a data table called:
products_with_attributes_stock (of course need to consider any prefix when addressing table names).

This table has 5 columns to include data:
stock_id
products_id
stock_attributes
quantity , and
sort

stock_id is autogenerated and is the key for the data table. That means that if an item is not already tracked by products_with_attributes_stock then adding a new item to the list will give it a new stock_id. If the item and its intended attributes is already tracked than the stock_id would be needed to be able to revise the stock for that set of attributes. (I would suggest for your situation that the new stock of items not have any existing stock quantities assigned through products_with_attributes to simplify the following process.)

Now regarding the import of all of your items, here is how I would suggest the quickest (also dirtiest) method of populating it.

I believe you could use easy populate to add all possible/anticipated attributes to the items you are adding. (ie color and size if those are the two attributes in question), it also may be easiest when adding those attributes to incorporate the price associated with the different sizes, and if "color" (aluminum, wood, painted, etc...) have different prices, then when adding those attributes to include those costs as part of populating them.

Then, use easypopulate to export the Detailed Products Attributes. Take this data and place it into your preferred spreadsheet (essentially removing the delimiters throughout). Then to populate the products_with_attributes, you will need to pull out the attributes numbers (v_products_attributes_id) that when grouped together identify the attributes applicable to a single item and concatenate them with a comma. Place that information into a single row of data such that you have product_id and stock_attributes adjacent to each other, then the next column would be your stock (quantity), and if desired a sort order. (I'm not entirely sure that the sort order is respected, but I have made efforts to assign one as desired.

Then you can create a generic SQL statement that concatenates with the data to the left of it. This sql statement would be to populate the products_with_attributes_stock data table.

Next would be to either export just that column or copy the column to a new sheet and export it so that the delimiter is a return/carriage return/enter.

Then import/paste that file into either your mySQL admin panel or Zen-Cart's admin panel->Tools->Install SQL Patches and voila, your data table is populated.

A similar process could likely be used to plus up any quantity, with the appropriate SQL statement to add to instead of replace or create a new value. The only thing there, is that I think the stock_id would need to be known/obtained so that there is only one line item of stock by attributes for each set of attributes for the stock.

So, regarding the concatenation of the applicable attributes: if there were two products having two attribute types, each with two attributes:
(X,Y), (A, B) and (1, 2) respectively, then it would make sense to have stock in X-A1B1, X-A2B1, X-A1B2, X-A2B2, Y-A1B1, Y-A2B1, Y-A1B2, and Y-A2B2; however, not X-A1A2, X-B1B2, Y-A1A2, Y-B1B2, etc...

The attributes data dump shows each attribute type that is assigned to each product. So the data dump would contain something similar to:

X A 1
X A 2
X B 1
X B 2
Y A 1
Y A 2
Y B 1
Y B 2

By creating a new column that would associate the line to attribute 1, and attribute 2, it may be easier to identify the rows that contain attributes to be concatenated and then iterate through all products and combinations of ids that would identify a line item that would support import into the products_with_attributes table.

That's essentially what I was referring to before about building on other data.

In converse, if the products with attributes table is populated with all of the combinations of attributes after the attributes have been added to all of the products, then the products_with_attributes table could be exported, populated with the quantities, then reimported either by sql statement or straight table update with the new data (stock_id would be exported and therefore the quantities could be replaced.) That would address modification of quantities of items "in bulk".

Several ways to approach, depends on where you are at, how much work is involved to get you where you want to go, experience, etc...

Some things discussed above may be different depending on the implementation of stock by attributes that is used. For example, I seem to recall that the sequence of numbers associated with stock_attributes can be important in that the first attribute(s) are such that they are the ones that offer choices, while the remaining attributes may be just input blocks.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jun 2013, 3:29 PM
#292
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #292 by kevin205

mc12345678:

Okay, so I don't know which version you have installed, but Version 4.0.22 - Beta 6-10-2012 includes Detailed Products Attributes (detailed multi-line) option which downloads the data I was referring to: v_products_attributes_id, v_products_id, v_options_id, v_options_values_price

The version of Stock by Attributes that I ended up installing (still not sure if it was a Creinold version or more recent, has a data table called:
products_with_attributes_stock (of course need to consider any prefix when addressing table names).

FYI - I do use **Detailed Products Attributes (detailed multi-line)**from EasyPopulate 4.0, downloadable from Github https://github.com/chaddro/EasyPopulate-4.0. Support thread is http://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread. (BB LINK function does not work here)

mc12345678:

Then, use easypopulate to export the Detailed Products Attributes. Take this data and place it into your preferred spreadsheet (essentially removing the delimiters throughout). Then to populate the products_with_attributes, you will need to pull out the attributes numbers (v_products_attributes_id) that when grouped together identify the attributes applicable to a single item and concatenate them with a comma. Place that information into a single row of data such that you have product_id and stock_attributes adjacent to each other, then the next column would be your stock (quantity), and if desired a sort order. (I'm not entirely sure that the sort order is respected, but I have made efforts to assign one as desired.

Then you can create a generic SQL statement that concatenates with the data to the left of it. This sql statement would be to populate the products_with_attributes_stock data table.

Next would be to either export just that column or copy the column to a new sheet and export it so that the delimiter is a return/carriage return/enter.

Then import/paste that file into either your mySQL admin panel or Zen-Cart's admin panel->Tools->Install SQL Patches and voila, your data table is populated.
My problem is that, I do not know any thing about SQL statements!

mc12345678:

So, regarding the concatenation of the applicable attributes: if there were two products having two attribute types, each with two attributes:
(X,Y), (A, B) and (1, 2) respectively, then it would make sense to have stock in X-A1B1, X-A2B1, X-A1B2, X-A2B2, Y-A1B1, Y-A2B1, Y-A1B2, and Y-A2B2; however, not X-A1A2, X-B1B2, Y-A1A2, Y-B1B2, etc...
98% of time any given product have 2-6 size attribute values with different prices and quantities.

mc12345678:

Several ways to approach, depends on where you are at, how much work is involved to get you where you want to go, experience, etc...
I can get around code (an old programmer) with no knowledge SQL and SQL statements!

What you have stated makes sense, but I need a little more clear direction. Thank you.

Using Zen Cart 1.5.1

20 Jun 2013, 4:42 PM
#293
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #293 by mc12345678

Kevin205:

FYI - I do use **Detailed Products Attributes (detailed multi-line)**from EasyPopulate 4.0, downloadable from Github https://github.com/chaddro/EasyPopulate-4.0. Support thread is http://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread. (BB LINK function does not work here)

My problem is that, I do not know any thing about SQL statements!

98% of time any given product have 2-6 size attribute values with different prices and quantities.

I can get around code (an old programmer) with no knowledge SQL and SQL statements!

What you have stated makes sense, but I need a little more clear direction. Thank you.

So, was thinking about this some more... Based on having only a single attribute (size) for the product that has multiple selections within, the first question is, if you assigned three sizes to a product, and then populated the stock such that there was one that indicated a zero quantity, would the customer see the third option on your site, or would they only see two options available? If the answer is yes they only see two options, then the following will probably be the quickest easiest way to accomplish your add in.

Look at your total number of sizes available, regardless of to what product they are to be assigned.

Use EP to add that sized attribute to every product. (ultimately this should not be difficult/time consuming as if there are 7 sizes in the entire grouping, then every item will have 7 records to be created and through a spreadsheet program you can use relational equations to produce the results repetatively.)
Ideally all items that are of size 1 are the same price, all items of size 2 are the same price (but different than size 1), etc... If not, then would recommend populating that field in some methodic manner. Perhaps 80% of them are the same, so populate 100% with that price and then go fix the 20% that are different.

Download the attribute information as performed before focusing on just the items that are to be populated. Again, because you only have a single attribute to address, the remaining portion of this will be simpler than previously described.

Create a new column to populate the quantity for that item's attribute. (This part may take a while depending on what you have to do to populate it.) Again assuming that if an attribute has a zero quantity that the attribute will not be shown to the customer, then assign 0 for values you do not have, and assign positive numbers for those you do have.

Access your SQL database, open the products_with_attributes table, identify the exact name of that table (remembering there may be a prefix to that table name and all table names in your database) this will be needed for your SQL statement that is to be generated next. Also identify the fields that makeup your table, noting the entire name including any underscores etc...

If I am correct the general structure of the table has remained the same, it has been all about how it is populated and operated on that has changed throughout the various versions of stock by attribute. If they are different than I previously posted, may need to modify the following approach.

Assuming that no data exists in your products_with_attributes table that include the product numbers (product_id) for the items/attributes just added, then the following SQL statement can be generated concatenating the data that is in the sheet produced from the dump before.

Your SQL statement will be to Insert a new row of data to the (prefix_)products_with_attributes table assigning the row's column data equal to a value in the row of your spreadsheet. Future SQL statements using essentially this process would be Update or Replace statements to increase the quantities of the items in the (prefix_)products_with_attributes table.

INSERT INTO (prefix_)products_with_attributes (products_id, stock_attributes, quantity, sort) VALUES (column1, column2, column3, column4);

Note: (prefix_) would be replaced by whatever the prefix for the table is. column1 would be the value associated with products_id (v_products_id) which would be in your table, column2 would be the stock_attributes (v_products_attributes_id), column3 the quantity in the column created above, and column4 would be the sort order that possibly also should be added, but could be set as 10 for the first attribute, 20 for the second, etc..)

In Excel, if I had v_products_id in column A, v_products_attributes_id in column B, the quantity in column C, and a sort order in Column D, with the first row of data in row 2 (Titles in row 1), then in E2 I would put the following:

="INSERT INTO products_with_attributes (products_id, stock_attributes, quantity, sort) VALUES ("&A2&", "&B2&", "&C2&", "&D2&");"

Then I would copy this down to the end of the list of items/attributes to be added.

I would then copy and paste column E to a new worksheet and export the data to a CSV file (to support text capturing the data to feed back into the database). with the delimiter being an enter or carriage return or similar.

Then as said before either copy all of that into the applicable space to populate the tables (admin panel or mySQL admin area).

As a side note and depending on how you get your data together, it is possible to have a single SQL statement that adds multiple rows at once, the SQL statement could be:

="INSERT INTO products_with_attributes (products_id, stock_attributes, quantity, sort) VALUES ("&A2&", "&B2&", "&C2&", "&D2&"), ("&A3&", "&B3&", "&C3&", "&D3&");"

This statement would add two rows, each additional entry has to be separated by a comma and have the same sized groupings throughout.

There are alternate ways to formulate the statement as well if that doesn't work on your server. (Ie. do the above work for a row or two, try it out and then get into a groove of updating... :) )

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jun 2013, 5:44 PM
#294
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #294 by mc12345678

mc12345678:

I would then copy and paste column E to a new worksheet and export the data to a CSV file (to support text capturing the data to feed back into the database). with the delimiter being an enter or carriage return or similar.

Unfortunately the time had elapsed for me to modify the message again; however, the above statement was incorrect when performed by the majority of people using Excel. More correctly:

I would then copy column E and paste (paste special->values) in a new worksheet and then export the worksheet to a CSV file (to support text capturing the data to feed back into the database). (At least with Excel (again there is a more preferred/consistent application recommended for CSV export) this will place each row (SQL Statement) on its own line and the contents of the file can then be copied/imported into the SQL processor of choice.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

20 Jun 2013, 6:07 PM
#295
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #295 by mc12345678

Lastly, if the above is successful, the next issue would be managing the quantities of stock available. I do not recall where in this thread or perhaps it is in a similar thread related to stocking by attributes, but there have been ways posted about how to obtain stock data for existing quantities. If that data can be obtained with the stock_id, then a similar process could be used to populate the additional stock through a SQL statement.

UPDATE (prefix_)products_with_attributes SET quantity = quantity + (new quantity obtained from spreadsheet or other source) WHERE stock_id = (the stock_id value for the row in question);

Note: Above, the use of parantheses () is to indicate that the value is calculated/obtained from somewhere such as a spreadsheet. The parentheses are not to be included in the actual statement. Also the use of single quotes around a number is not mandatory, but seems to be recommended.

I would recommend also that if the above is successful that questions related to development of an export option of the products_with_attributes table be addressed on the easypopulate thread. A response may be to self develop which may be possible using the existing code/instruction to handle this situation, but that aspect is more about EP than it is about stock by attributes... It just happens that in this case EP became a tool to support stock by attributes.

Good luck!

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Jun 2013, 7:12 PM
#296
bubbadan avatar

bubbadan

New Zenner

Join Date:
Apr 2005
Location:
TN
Posts:
96
Plugin Contributions:
0

Post #296 by bubbadan

Is it just me? I haven't seen anything about making the actual input page collapsible for each product?
There just seems to behind having all the product open to one huge scrolling page.
Seems to make more sense if each product would be collapsible so that you click it to open it?

And why doesn't it sort by input?
This seems to be more trouble than it is worth!

Very difficult to enter all 24 attributes for one product when it doesn't display them in the input page with any semblance of order?
Right now it comes up (For example)

Stock ID Variant Quantity in Stock Edit Delete
20 Color: Black 30 Edit Quantity Delete Variant
Size:: Small
32 Color: Red 30 Edit Quantity Delete Variant
Size:: X- Small
21 Color: Black 30 Edit Quantity Delete Variant
Size:: Medium
36 Color: Red 30 Edit Quantity Delete Variant
Size:: X-Large
26 Color: Black 30 Edit Quantity Delete Variant
Size:: 2X-Large

I enter them in order - per size color etc.
What am I doing wrong? ...if I am that is.

Thanks

Using version v1.5.7b

23 Jun 2013, 4:43 AM
#297
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #297 by mc12345678

bubbadan:

Is it just me? I haven't seen anything about making the actual input page collapsible for each product?
There just seems to behind having all the product open to one huge scrolling page.
Seems to make more sense if each product would be collapsible so that you click it to open it?

And why doesn't it sort by input?
This seems to be more trouble than it is worth!

Very difficult to enter all 24 attributes for one product when it doesn't display them in the input page with any semblance of order?
Right now it comes up (For example)

Stock ID Variant Quantity in Stock Edit Delete
20 Color: Black 30 Edit Quantity Delete Variant
Size:: Small
32 Color: Red 30 Edit Quantity Delete Variant
Size:: X- Small
21 Color: Black 30 Edit Quantity Delete Variant
Size:: Medium
36 Color: Red 30 Edit Quantity Delete Variant
Size:: X-Large
26 Color: Black 30 Edit Quantity Delete Variant
Size:: 2X-Large

I enter them in order - per size color etc.
What am I doing wrong? ...if I am that is.

Thanks

Honestly, those are a few questions I've had myself, but if I had spent the time to investigate have forgotten the answers.

Knowing that there are a few versions of software that accomplish the same basic task, could you possibly identify which you have installed? Ie creinold's, the one developed/revamped/overhauled by robophung?

It seems the majority of the work on this project has been on the store front side of the house and the underlying data storage/manipulation. Good idea though to address collapsing the group of stock for an item. My guess is that just need to encompass that list with appropriate html and voila. As for the order of attributes when identifying quantities, I think (though not sure) that this is based on the order of option names being added to the database (not necessarily the sort order or the like). This also depends on which version of the software is used. It may be that the SQL statements that pull the data need to have a sort order applied to them. Again, I think most of the programmers here are trying to get something that produces cart results and will come back to make it better for the admins. Goal is to sell right?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

6 Jul 2013, 7:29 PM
#298
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Post #298 by kevin205

Where can I downloaded this plugin from?

Using Zen Cart 1.5.1

7 Jul 2013, 12:19 AM
#299
cefyn avatar

cefyn

New Zenner

Join Date:
May 2007
Posts:
87
Plugin Contributions:
1

Post #299 by cefyn

Kevin205:

Where can I downloaded this plugin from?

post #207 in this thread has the latest,I think.

15 Jul 2013, 2:42 AM
#300
wmestaff avatar

wmestaff

New Zenner

Join Date:
Jul 2013
Posts:
1
Plugin Contributions:
0

Post #300 by wmestaff

Has anyone found a solution as to why the attributes are not inputted in any particular order? Also, I am having a few other problems myself.

  1. I noticed that when you go to 'Add Quantity For Product Variant' on the 'Products with Attributes' page, the drop downs on that page (/products_with_attributes_stock.php?action=add&products_id=...) are what is reflected on the individual product listing in the store front, where customers view the product. I have changed the SQL (in file pad_base) to sort by products_options_values_sort_order and this is successful for single drop downs, but it does not seem to affect sequenced drop downs at all. Does anyone know where/how to change the SQL to sort the drop downs on the 'Add Quantity For Product Variant' page? I believe these are somehow connected and this may solve my issue in the store front. Here is an example of what I am attempting to describe: http://workingmans.com.previewdns.com/store/index.php?main_page=product_info&cPath=4_13&products_id=201

You can see that the attributes are loaded into the array and in the correct sort order (denoted by [order]), but when viewing the second sequenced drop down, the values are not by sort order (they are, instead, in the same order as on the 'Add Quantity For Product Variant' page).

  1. I also am having trouble loading the 2nd attribute box for sequenced drop downs, but for only some of my products. After some observation, I believe this is due to the Stock ID (seen on the Products with Attributes Stock page) being too large, possibly out of rage. It seems the values that are too large end up being somewhere around ID 10000 or greater. Does anyone else have this problem, or know how to fix it? Here is the issue that I am referring to: http://workingmans.com.previewdns.com/store/index.php?main_page=product_info&products_id=198

The 2nd sequenced array does not display, despite the attributes being loaded into the array. This product worked before (albeit the 2nd array values were out of order, as described in my previous issue), but when I deleted the attributes and re-added them (thus giving them a new stock ID in the 12000 range), the 2nd drop down no longer displayed.

Sorry for the long post, I hope this is in the correct place. I am using both Stock by Attributes and Dynamic Drop Downs.