Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / All Other Contributions/Addons / Product Attribute Grid

Product Attribute Grid

Started by absolute on 15 Jan 2008, 5:01 PM · Views: 139,578

Results 241 to 260 of 546
15 Oct 2010, 1:47 AM
#241
akincer avatar

akincer

New Zenner

Join Date:
Jun 2010
Posts:
15
Plugin Contributions:
0

Product Attribute Grid

Zen Cart version: v1.3.9f

I have a problem where I'm using the SBA module and this one together and the out of stock isn't working properly when one of the attributes is out of stock.

I have products that come in various sizes. If I add stock to one of the sizes, ALL size options become available in the grid. Even if I specifically set the quantities of the other options to zero, they still show up on the product page.

Surely this isn't how it is supposed to work.

Any ideas?

15 Oct 2010, 2:15 AM
#242
akincer avatar

akincer

New Zenner

Join Date:
Jun 2010
Posts:
15
Plugin Contributions:
0

Re: Product Attribute Grid

OK, I solved it. Hopefully others will find this useful.

Here is how:

Replace this line:

$attribute_stock = zen_get_products_stock($_GET['products_id'], $stock_check_array);

With this:

$attribute_stock = zen_get_products_stock($stock_check_array[0]);

NOTE: This was with only one vertical line and variable number of horizontal lines. I have not tested nor do I plan on testing any other variations.

10 Nov 2010, 3:29 PM
#243
funkypapa avatar

funkypapa

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Product Attribute Grid

jacdesigner:

For those of you trying to style the table to look a bit more attractive, you can locate this line in the /modules/yourtemplatename/attributes.php:

$attrib_grid = '<table id="attrib-grid-table" cellpadding="3" border="1">'."\n" .

Personally I changed the border to 0.

You can also append your stylesheet by adding the following classes and ids (style however you wish)...

.attrib-grid-cell {text-align:center;border:0;vertical-align: top;}
.attrib-grid-vHeader {border: 0;}
.attrib-grid-opt-nameH {border: 0;}
#attrib-grid-hHeader { }
#attrib-grid-opt-nameH {}
#productAttributes {}

I followed these directions and it works perfectly. I have one (I hope minor) question...how would I center the entire table inside the outer border seen here:
http://funkymunkys.ca/index.php?main_page=product_info&cPath=36_39_40&products_id=15

The please choose at the top appears to be in the center, it doesn't matter to me if it stayes there or moves over with the 'size' section...I would just like to know how to get equal amounts of space on the left and the right.

<edit> I just noticed also, is there a way to get the 'size' radio button to not appear? </edit>

10 Nov 2010, 11:47 PM
#244
fransdo avatar

fransdo

New Zenner

Join Date:
Nov 2010
Posts:
6
Plugin Contributions:
0

Re: Product Attribute Grid

I have ZC 1.3.9c fresh install with SBA Ajax and Product Attribute Grid (latest version). Both mods are working very well.
There is only one problem with the Grid and discounted prices (I use price by attribute):
On the product page the attribute price shows undiscounted, however in the shopping cart the correct discounted price shows.
Doe anyone know how I can make the mod to display the discounted attribute prices on the product page?

11 Nov 2010, 9:51 AM
#245
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 site?

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

11 Nov 2010, 11:47 AM
#246
fransdo avatar

fransdo

New Zenner

Join Date:
Nov 2010
Posts:
6
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

Can you post a link to your site?

Absolute

The site is still epiremental, but you can see what happens on this product page:

The DISCOUNTED item is priced at 229 but displays at 299, adding it to the card gives correct price 229.
Thanks for looking into my problem.

13 Nov 2010, 1:38 AM
#249
authentic01 avatar

authentic01

New Zenner

Join Date:
Aug 2010
Posts:
22
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

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
The link isn't working. Is there any other site that can provide a sample? I was wondering how do you change the way the attribute layout is when you have a lot of things for a particular item?

13 Nov 2010, 10:20 AM
#250
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

@varnerific - this is a fairly complex module, and there are a number of reasons why it could possibly be failing to work on your store. In the main, if you follow the README instructions to the letter, you'll find it works without exception. Most member of the community who have used this module and had problems have gone back to the readme file, re-read it, and found they have missed out a vital step.

If this isn't the case, then unfortuantely, I'm going to need more to go on than it simply doesn't work....

@authentic01 - our test site is currently offline due to a major rebuild we are undertaking for a future module. If you want to see this module in action, please take a look at FunkyPapa's link towards the top of this page. That is a particularly good example.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

15 Nov 2010, 12:33 AM
#251
tabascoman avatar

tabascoman

New Zenner

Join Date:
Oct 2010
Location:
Arizona
Posts:
10
Plugin Contributions:
0

Re: Product Attribute Grid

Okay I feel so stupid - I've read most of this very long post and have seen the instructions repeated over the two versions and I still just don't get it. Yes, I have read instruction for the 1.1.1 and 0. I tried a couple different possibilities for a missed interpretation on my part.

I'm using a fresh install of zen cart v1.3.9g no added templates - nothing.

I have two products loaded so when I get this right it will load as the directions indicated.

My assumption or interpretation of the instructions

  1. Back up
  2. place unzipped files into the zen cart main directory. I am just dragging the includes folder into the main directory. (files are there)
    3)Move the 2 php files from the newly created YOUR_TEMPLATE folder to the classic folder that is under the templates folder
    4)Go to the store side of the site and click into a product.
    5)log into the admin side and check to see if "Grid" is in the Options Type drop down.

I don't understand this comment all: "The attributes appear in SORT_ORDER, so the lowest of the two sort orders will be the attribute to the LEFT of the grid, and the last will be the TOP of the grid."

I'm very sorry to ask such a basic question, I've also searched for other tutorials to help me understand but not finding anything. I just fried after a week of trying on my own.

any direction is appreciated.

Regards,

John

15 Nov 2010, 11:51 AM
#252
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

"The attributes appear in SORT_ORDER, so the lowest of the two sort orders will be the attribute to the LEFT of the grid, and the last will be the TOP of the grid."

What more is there to say? If you have two attributes, one with a sort order of 10 and one with a sort order of 50, the one with the value 10 will appear to the left (rows), and the one with the value of 50 will appear across the top (columns).

If you have vlaues of 1 and -100, the 1 will appear at the top (columns) and the -100 will appear to the side (rows).

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

15 Nov 2010, 1:18 PM
#253
tabascoman avatar

tabascoman

New Zenner

Join Date:
Oct 2010
Location:
Arizona
Posts:
10
Plugin Contributions:
0

Re: Product Attribute Grid

Thanks Absolute - Okay - I get it, that was pretty basic, thought there was something more to it. But this was not really my issue. I do appreciate the added explanation.

More importantly, if my steps are correct in my post, what the heck and I doing wrong?

My assumption or interpretation of the instructions

  1. Back up
  2. place unzipped files into the zen cart main directory. I am just dragging the includes folder into the main directory. (files are there)
    3)Move the 2 php files from the newly created YOUR_TEMPLATE folder to the classic folder that is under the templates folder
    4)Go to the store side of the site and click into a product.
    5)log into the admin side and check to see if "Grid" is in the Options Type drop down.

I am familiar to ftp and mods, some basic coding and.... I've been making mods before the old DBman product successfully. But, I'm just having a killer of a time getting this module to work. I swear I will make a donation if I can get this going and create a visual step-step instruction set for the next person having issues. I know I'm just missing something basic.

16 Nov 2010, 3:17 PM
#254
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

Remember, if you find this module useful, we do welcome donations so that we can invest more of our own time in improving this module. Details of how you can donate towards this module can be found in the README file attached to the install. Donating towards development of any of the communities modules is not done through the same channels as donating towards the Zen Cart project however.

@Tabacoman - firsly, what is the URL for your site? What is the name of your current template directory? Have you put the files in step 3 above in the CLASSIC folder, or have you put them into your own active template directory, in the relevant subfolders? Do you get the GRID option within the admin?

It really is an easy module to install, due to the way we've applied the edits to specific files, but if any of the files are missing or in the wrong folders, you won't see the updates you need.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

16 Nov 2010, 6:59 PM
#255
tabascoman avatar

tabascoman

New Zenner

Join Date:
Oct 2010
Location:
Arizona
Posts:
10
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute -

Thanks for reminding me how easy the install is so many times. lol..
Seriously, thank you for taking time out of your day to help another bone-head.
I'm sure you are thinking "Oh God not another one"

Here's where I went wrong:

I read "Files included in this install are:" (thinking in the package) which they are, but missed that YOUR_TEMPLATE lands in two places.

So when I read "Where the folder is called YOUR_TEMPLATE, place the contents within your current template folder" I just put all three files into the Template Folder.

Approaching this a little more clear headed this time I thought let me just duplicate the structure listed DUH, that was it. I even noticed the php for gif days ago but could not get this.
I over read and over complicated the instructions. I think that's what happens to a person that's been dealing with VirtureMart for so long.

BTW - Your mod is why I've moved to ZC
I will honor my promises.

16 Nov 2010, 7:14 PM
#256
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Product Attribute Grid

Tabascoman:

I think that's what happens to a person that's been dealing with VirtureMart for so long.Welcome to the land of REAL e-commerce and REAL support.. Zen Cart and this forum are the reasons why I'll NEVER mess with Virtue Mart EVER again!!!!!

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

16 Nov 2010, 9:03 PM
#257
charagg avatar

charagg

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: Product Attribute Grid

Hi All,

First of all - great contribution! I've installed the Product Attributes Grid, Stock by Attributes, Dynamic Drop Downs, and Bulk Attribute Creator add-ons. In regards to this add-on (Product Attributes Grid), I'd like to achieve a grid similar to the one found at:

http://www.sks-science.com/lab-supply-p-4423.html

It shows, stock #, size, description, case/pk, price/cs, and qty.

The site I'm working on is:

http://www.altaonemedical.com/index.php?main_page=product_info&cPath=134_227&products_id=864&number_of_uploads=0

Can anyone help me or direct me in getting this setup?

Thanks,

AC

BenchmarkDesign.Net - Integrated Media Solutions

16 Nov 2010, 10:19 PM
#258
tabascoman avatar

tabascoman

New Zenner

Join Date:
Oct 2010
Location:
Arizona
Posts:
10
Plugin Contributions:
0

Re: Product Attribute Grid

Okay that celebration was short lived. Any updates concerning the Upload Hack posted in October 09?? The hack is working, just not
getting file name in confirmation as indicated.

@ DivaVocals LOL Thanks -

17 Nov 2010, 8:24 AM
#259
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

@charagg - the lauout you want to copy is achievable with this module, however, you will need to change some of the code, as the current module doesn't support model numbers, sizes etc. If you want to edit these details, you should take a look at the includes/modules/YOUR_TEMPLATE/attributes.php file. This is the file which builds the table structure as a string, ready for output.

You also want to change the sort order of your attributes, so that QTY becomes the heading of the rows.

@Tabascoman - so you now have the grid layout working? The hack for the upload was something added after this module was created, so I have to admit, I'm not that familiar with it. I'll try and set this up on our test site.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

17 Nov 2010, 5:15 PM
#260
tcjay avatar

tcjay

Zen Follower

Join Date:
Jul 2010
Location:
Boston
Posts:
139
Plugin Contributions:
0

Re: Product Attribute Grid

Fantastic module. It is just what I am looking for.

I am selling yarn where the various colors are displayed as an attribute.

I would like this format

attrib-grid-cell
text
image

I would like six colors to a line but when the grid is specified, all ten colors appear on the same line.

How would I go about formatting it so only six appear on a line?

I have specified six per line in the product options.

TIA Tom
http://www.stitchboutiqueboston.com/yarn/mega-skeins-p-144/