Zen Cart Logo
Forums / All Other Contributions/Addons / Product Attribute Grid

Product Attribute Grid

Views: 139,331

Results 1 to 20 of 546
15 Jan 2008, 5:01 PM
#1
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Product Attribute Grid

The module is designed to set out attributes within a grid format, when 2 dropdown or radio options are available. For example, if an item has both colour and size. The grid is populated with quantity fields, so that a number of products can be added at any time.

This can be seen on our test store, located at http://www.absolute-solutions.co.uk/test/zen/138/index.php?main_page=product_info&products_id=36

Please feel free to contact me with suggestions or updates for the next release,

Absolute

15 Jan 2008, 9:21 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

The module can be downloaded HERE

Absolute

16 Jan 2008, 2:06 AM
#3
01011010 avatar

01011010

New Zenner

Join Date:
Aug 2007
Posts:
52
Plugin Contributions:
0

Re: Product Attribute Grid

Ok, I've had a few minutes to play with this long awaited module, and have a few questions. But first, I would like to thank you for finally delivering this incredibly useful tool unto us. There are many businesses out there that have not been able to participate in ecommerce, due to the unavailability of such a module.

I could (and will) poke around further when I've got more time, but I figure I should go ahead and post my most obvious questions here to (hopefully) save others time.

  1. Is there any way to track the stock of each product combination?
  2. Can we remove individual quantity boxes for unavailable combinations?
  3. Would it be possible for other attributes (a gift-wrapping check box, for example) to co-exist with a PAG product?

#3 is something that I would really like to see work, as without additional attributes, we are losing a great deal of product customization.

Thanks again,
01011010

16 Jan 2008, 2:33 AM
#4
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Product Attribute Grid

Wow,thank you thank you. I have installed, looks great and I agree with 01011010 that the below are very important requirements for the module to work on our store too! > 01011010:

  1. Is there any way to track the stock of each product combination?
  1. Can we remove individual quantity boxes for unavailable combinations

Don't get me wrong we will put in onto our store straight away, but I am concerned about the unavailable combos and also the stock levels for warehousing. On our Retail store we have stock by attributes which works great but I am not sure how this would work on the current site with this module. But stock by attributes module still doesn't get around the problem of unavailable combos.

But thank you again, it was very easy to install.

16 Jan 2008, 2:52 AM
#5
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Product Attribute Grid

Just one more thing, I have minimum for each of my products. At the moment only the products without attributes are displaying the min requirements.

Mind you when I have tried to add less than the required minimum that I have set for the product, everything works as expected. It just would be nice to show the min at the time of adding the item to cart rather than giving an error after they have tried to add less than the min.

Thanks again

16 Jan 2008, 6:37 AM
#6
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

Stock levels for attributes is something that will be introduced in the next couple of Zen releases, according to the roadmap of Zen. In the meantime, there is a module in the downloads section which can be installed to accomplish this task.

These two packages can be installed together, and a little piece of code then used to hide or show the attribute boxes, depending on stock levels.

With the minimum order values, this is all handled through the tpl_product_info_display.php alteration. You would need to change the code on this page as follows:
Line 108 - 112

/****************************************************/
	if (zen_not_null($attrib_grid)) {
	  $the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    }
/****************************************************

Change to

/****************************************************/
	if (zen_not_null($attrib_grid)) {
	  $the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    }
    if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
        $the_button = zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />'.$the_button;
    }
/****************************************************

This will then add the minimum qty above the add to cart button.

Absolute

16 Jan 2008, 7:34 PM
#7
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

Stock levels for attributes is something that will be introduced in the next couple of Zen releases, according to the roadmap of Zen. In the meantime, there is a module in the downloads section which can be installed to accomplish this task.

These two packages can be installed together, and a little piece of code then used to hide or show the attribute boxes, depending on stock levels.

With the minimum order values, this is all handled through the tpl_product_info_display.php alteration. You would need to change the code on this page as follows:
Line 108 - 112

//
if (zen_not_null($attrib_grid)) {
$the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
/

> ```
/****************************************************/
    if (zen_not_null($attrib_grid)) {
      $the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    }
    if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
        $the_button = zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />'.$the_button;
    }
/****************************************************
```This will then add the minimum qty above the add to cart button.
> 
> Absolute

I tried the above code to show the min qty but it is still not showing up for the add to cart for the attribute grid. What am I doing wrong?

On the other note of the stock I have used the Stock by Attby Attributes by Kuroi but I am unsure what little piece of code is need to hide/show the attribute box depending on stock. Can you give me a hint!
16 Jan 2008, 11:40 PM
#8
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

Which module is it you have installed? Can you post a link, so I'm looking at the same one?

I'll install it this weekend, and post some code as soon as I have it.

Absolute

17 Jan 2008, 5:51 PM
#9
01011010 avatar

01011010

New Zenner

Join Date:
Aug 2007
Posts:
52
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

Which module is it you have installed? Can you post a link, so I'm looking at the same one?

I'll install it this weekend, and post some code as soon as I have it.

Absolute

Absolute,

The module in question is here.

I've been playing with it a bit, and apparently you have to add stock for every single combination, one at a time. This would be boatloads of fun on a product with 70 colors and 9 different sizes (630 combinations), especially if you have extra "customization" attributes like me. Multiplying that out by several hundred products puts us at about, oh, some incredibly-scary-won't-even-fit-on-your-average-handheld-calculator number of combinations... Great.

I've got to figure out some way to easily disable the quantity boxes for specific color/size matrices. If you have any advice, please share... I don't need to track stock, just disable the unavailable size/color combinations. Perhaps I can get the Stock by Attributes people to can reduce the aforementioned combinations by a few digits.

Also, what about PAG/other attribute coexistence? Even just having check boxes and text fields would be immensely useful.

Thanks,
01011010

17 Jan 2008, 6:18 PM
#10
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

Zach - no matter which way you look at it, if you have 2 attributes, with 9 of one and 70 of the other, you are going to have to turn on or off 630 combintations! Why not just set up stocks of 1000 or none?

Absolute

17 Jan 2008, 6:22 PM
#11
brian02138 avatar

brian02138

New Zenner

Join Date:
Nov 2007
Posts:
3
Plugin Contributions:
0

Re: Product Attribute Grid

Is there a way for this grid to FORCE a customer to enter in at LEAST 1 value?

(I just posted a new thread about regular Attributes needing a way to force a customer to select an option before hitting "buy").

  • Brian
17 Jan 2008, 6:57 PM
#12
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

Unfortunately, with attributes, there isn't a javascript alert if the customer doesn't enter a value. With standard attributes, if you don't enter a value, the form gets submitted, and the server side script then checks your selection, and if it is not made correctly, the customer gets returned to the page with the error message.

It would be possible with the grid format to include a quick java check to ensure that the total entered into all the boxes was more than 0. I'll include this in the next release.

Absolute

17 Jan 2008, 7:41 PM
#13
01011010 avatar

01011010

New Zenner

Join Date:
Aug 2007
Posts:
52
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

Zach - no matter which way you look at it, if you have 2 attributes, with 9 of one and 70 of the other, you are going to have to turn on or off 630 combintations! Why not just set up stocks of 1000 or none?

Absolute

Absolute,

Because I need some way for Zen to identify which combinations don't exist. Unfortunately I cannot set my master product stock to Inf and my few unavailable color/size combination's stock to 0, as SBA appears to completely override the master stock.

I may have to get creative and figure out how to treat each color as a separate product, thereby limiting the grid to sizes only. To accomplish this, the hard part is going to be streamlining everything so that the customer can easily navigate to and through the sub-products. Someone with PHP skills could probably pull it off, but this is another project entirely, so I'll save it for another thread.

Thanks,
01011010

18 Jan 2008, 3:57 AM
#14
craigs avatar

craigs

New Zenner

Join Date:
Oct 2007
Posts:
3
Plugin Contributions:
0

Re: Product Attribute Grid

I have installed this module on my zen cart but it does not seem to be working for me.

My zen cart version is 1.3.8.

For the products i am setting them to priced by attributes and making sure the price is $0.00.

Then creating a Quantity radio type attribute option name with a blank option value in title case and lower case, i have tried a Quantity option value as well. Then another radio field attribute, also tried a dropdown and added them to a product. I have tried with the sort of -9999 and a sort of 0 for the quantity without any luck.

I have copied the files from the module download into the correct directories a few times.

I have followed the instructions in the install readme over and over.

Is there a step i am missing?

18 Jan 2008, 8:44 AM
#15
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

Can you post a link to your store?

When you view the product, are you just given the standard attribute layout, with radio/dropdowns? Did you place the tpl_product_info_default.php file in your active tempalte directory, or is it currently in a directory called YOUR_TEMPALTE/tempates/?

Absolute

20 Jan 2008, 11:03 PM
#16
craigs avatar

craigs

New Zenner

Join Date:
Oct 2007
Posts:
3
Plugin Contributions:
0

Re: Product Attribute Grid

The shop is still in development so not up on the web yet.

I have placed the tpl_product_info_default.php in my active template directory.

21 Jan 2008, 7:51 AM
#17
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

You're not missing anything - all the steps to install are included in the readme, and all the files are included, in the correct locations.

Have you also checked that the attrributes.php file in the modules folder is within your active template director?

Absolute

21 Jan 2008, 10:03 PM
#18
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

Which module is it you have installed? Can you post a link, so I'm looking at the same one?

I'll install it this weekend, and post some code as soon as I have it.

Absolute

I noticed Zach replied to you with the module in question for the stock by attributes. Were you able to work out the code to exclude the qty box for the unavailable attribute combinations? Here is the link again if you need it
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=310

Also as in my previous post about the min require showing next to the add to cart; were you able to get that to show on the products with the attribute grid? Because I still can't.

21 Jan 2008, 10:34 PM
#19
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: Product Attribute Grid

I'll upload the new code tomorrow, and post the edit here.

Absolute

22 Jan 2008, 12:24 AM
#20
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

I'll upload the new code tomorrow, and post the edit here.

Absolute
Thanks.

On another note was there suppose to be a stylesheet within the module? as it looks like the grid has refernece to class attrib-grid-cell, attrib-grid-vHeader and attrib-grid-hHeader. Is it possible you could add that to you upload? Thanks.