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 161 to 180 of 546
2 Oct 2009, 2:10 AM
#161
divavocals avatar

divavocals

Totally Zenned

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

Product Attribute Grid

If you don't get any responses here, perhaps you could consider posting a request in the Commercial forum

mrgtih2:

Thanks to thomasharding's post and some PM his code inserted into the file absolute_products_with_attributes.php in the includes/extra_cart_actions/ folder we now have the uploads working but with a glitch. It doesn't add the attribute to the cart so it would be hard for the owner of the site to know that someone added an upload.

I am reaching out to the devs or anyone else for some help to get this to work.

Here is the code that was used ,

##########BEGIN UPLOAD HACK#############

      $real_ids = isset($_POST['id']) ? $_POST['id'] : "";
      if (isset($_GET['number_of_uploads']) && $_GET['number_of_uploads'] > 0) {
        /**
         * Need the upload class for attribute type that allows user uploads.
         *
         */
        include(DIR_WS_CLASSES . 'upload.php');
        for ($i = 1, $n = $_GET['number_of_uploads']; $i <= $n; $i++) {
          if (zen_not_null($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]]) and ($_FILES['id']['tmp_name'][TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] != 'none')) {
            $products_options_file = new upload('id');
            $products_options_file->set_destination(DIR_FS_UPLOADS);
            $products_options_file->set_output_messages('session');
            if ($products_options_file->parse(TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i])) {
              $products_image_extension = substr($products_options_file->filename, strrpos($products_options_file->filename, '.'));

//Arch 04/2007 - to add product name to uploaded file
$prod_image_name = substr($products_options_file->filename, 0,-4);
//eof
if ($_SESSION['customer_id']) {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, customers_id, files_uploaded_name) values('" . zen_session_id() . "', '" . $_SESSION['customer_id'] . "', '" . zen_db_input($products_options_file->filename) . "')");
} else {
$db->Execute("insert into " . TABLE_FILES_UPLOADED . " (sesskey, files_uploaded_name) values('" . zen_session_id() . "', '" . zen_db_input($products_options_file->filename) . "')");
}
$insert_id = $db->Insert_ID() . $prod_image_name ;
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $insert_id . ". " . $products_options_file->filename;
$products_options_file->set_filename("$insert_id" . $products_image_extension);
if (!($products_options_file->save())) {
break;
}
} else {
break;
}
} else { // No file uploaded -- use previous value
$real_ids[TEXT_PREFIX . $_POST[UPLOAD_PREFIX . $i]] = $_POST[TEXT_PREFIX . UPLOAD_PREFIX . $i];
}
}
//$this->add_cart($_POST['products_id'], $this->get_quantity(zen_get_uprid($_POST['products_id'], $real_ids))+($new_qty), $real_ids);
}
##########END UPLOAD HACK#############

If someone has any Ideas please let us know, Thanks!

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.

7 Oct 2009, 1:54 PM
#162
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

I've search the thread but don't see an answer for this. My apologies if it has been posted and I missed it.. I think I've found a bug with this mod.

See this product:
http://clients.overthehillweb.com/hairisle/Stock-Lace-Wigs/Indian-Remy-Soft-Fro-Partial-Lace-Perimeter-Large

This product has two option names: color & wig length. Color has two option values, and wig length has only one. Though BOTH attributes are set up with the grid type, when I add wig lenth to the product the attribute not only shows up as part of the grid, but also as a radiobutton too. I doubled checked that there is only have ONE option name called "Wig Length", and I double checked that there is only ONE 16" value added to this product.

This product had the same issue. To double check that this is indeed a bug, I added an additional option value to the wig length. Once I did that, the radiobutton disappeared.
http://clients.overthehillweb.com/hairisle/Stock-Lace-Wigs/Chinese-Remy-Brazilian-Curl-Full-Lace-Perimeter-Medium

Also I see that the issue is only a problem if there is one value on the right side of the grid. Products which have only one option value across the top of the grid do not display this behavior:
http://clients.overthehillweb.com/hairisle/Stock-Lace-Wigs/Indian-Remy-Vixen-Curl-Full-Lace-Perimeter-Medium

I could use some help as to HOW to fix this..:smile: Obviously the workaround is to add another option value to the right side of the grid, but I'd like to not HAVE to do this..

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.

18 Oct 2009, 11:43 AM
#163
cliffvt avatar

cliffvt

Zen Follower

Join Date:
Jul 2009
Posts:
100
Plugin Contributions:
0

Re: Product Attribute Grid

Hi There

Forgive me is this has been asked before, I can't find it though! How can I remove the "xxx in stock" beneath every attribute on the grid? Been trying everything but not winning.

Thanks

Cliff

18 Oct 2009, 3:55 PM
#164
cliffvt avatar

cliffvt

Zen Follower

Join Date:
Jul 2009
Posts:
100
Plugin Contributions:
0

Re: Product Attribute Grid

It took me a while but I found it!

cliffvt:

How can I remove the "xxx in stock" beneath every attribute on the grid?

In the file /includes/languages/english/extra_definitions/absolute_attribute_grid.php

I changed the line:

define('TEXT_ATTRIBUTE_GRID_IN_STOCK',    '%s in stock'    );     //MUST CONTAIN %s AS THIS IS REPLACED WITH STOCK LEVEL  

to

define('TEXT_ATTRIBUTE_GRID_IN_STOCK',    'Qty/Amt?'    );

In this case it now displays the input box with the words "Qty/Amt?" underneath, which is acutally quite nifty!

Cheers

Cliff

19 Oct 2009, 6:54 PM
#165
salixia avatar

salixia

New Zenner

Join Date:
Oct 2009
Posts:
30
Plugin Contributions:
0

Re: Product Attribute Grid

I am creating a zen cart site for a coin selling company.
I am using the latest zencart/addon versions.

The addons I am having problems with are Product Attribute Grid and Stock by Attributes.

The problem is this:

They sell coins of different years in different conditions.
So, a products attributes might look like this...

------Good Fine
1857 ____ ____
1860 ____ ____

Now how do I price each attribute generated by the grid in a unique price? Pricing by the year and condition values, will not work because the prices are not consistent across the grid.

Thank you for your help.

19 Oct 2009, 8:29 PM
#166
salixia avatar

salixia

New Zenner

Join Date:
Oct 2009
Posts:
30
Plugin Contributions:
0

Re: Product Attribute Grid

Forgot to also ask:

Is it possible to have multiple attribute grids per product?
Example:

------Good Fine
1857 ____ ____
1860 ____ ____

------Cent Rolls
1857 ____
1860 ____

22 Oct 2009, 2:35 AM
#167
elkdog avatar

elkdog

New Zenner

Join Date:
May 2008
Posts:
2
Plugin Contributions:
0

Re: Product Attribute Grid

I've been using this mod for sometime and love it, I have a quick question, I sell shirts, I have the sizes on the top rows and the colors on the sides, some of my shirts have 27 colors, if you scroll to the bottom colors you have to scroll back up to find the row with your size.
my question is there a way to make the top header row repeat say every 10th row?
thank you again for your help.

7 Nov 2009, 7:36 PM
#168
nishikantkapoor avatar

nishikantkapoor

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Re: Product Attribute Grid

Sorry for a newbie question...I am trying to integrate the latest version of this mod (1.1.1) into my ZC (1.3.8a) as per 'INSTALL README.txt', but I still do not see the grid when I visit a product that has different colors and sizes as its attributes. Here is the list of files that I installed:

YOUR_TEMPLATE = arch_shoppe

includes/templates/arch_shoppe/templates/tpl_modules_attributes.php
includes/templates/arch_shoppe/templates/tpl_product_info_display.php
*** I did not have includes/modules/arch_shoppe dir, so created one ***
includes/modules/arch_shoppe/attributes.php
includes/templates/template_default/buttons/english/attribute_out_of_stock.gif
includes/languages/english/extra_definitions/absolute_attribute_grid.php
includes/extra_cart_actions/absolute_products_with_attributes.php

Would appreciate any help.

Thanks,
Nishi

30 Nov 2009, 4:17 AM
#169
damaweb avatar

damaweb

New Zenner

Join Date:
Nov 2009
Posts:
5
Plugin Contributions:
0

Re: Product Attribute Grid

Ok I am setting up Zen Cart for a Cafe and I have a problem with this mod. I installed it successfully and got the quantity boxes to appear. I am using it for a bagel by the dozen product. I have two attributes, a drop down to choose from 1/2 dozen and dozen with the price for each. The second attribute is the type and quantities for the bagels. In other words how many plain, raisin, and so on.

The problem is that when you put a number in the quantity box and then add to cart, it adds 2 1/2 dozen for example. Is there any way to work around this. I just want the customer to be able to choose how many of each bagel. Am I using the mod wrong?

Any help would be greatly appreciated.

2 Dec 2009, 11:06 AM
#170
poosk avatar

poosk

Totally Zenned

Join Date:
Mar 2005
Location:
Helsinki
Posts:
477
Plugin Contributions:
0

Re: Product Attribute Grid

IT WORKS! thanks!

7 Feb 2010, 5:35 PM
#172
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Product Attribute Grid

Just installed this on a test site,

a freash install of ZC
fully patched
Stock by Attributes (only add-on)

but nothing happens!...

please advise... any ideas..

12 Feb 2010, 5:03 AM
#173
soxophoneplayer avatar

soxophoneplayer

Totally Zenned

Join Date:
Feb 2008
Posts:
534
Plugin Contributions:
0

Re: Product Attribute Grid

I am using this mod 1.1 with ZC 1.3.8a. Also using Stock by Attributes 4.7 Kuroi. Both were working well for few years. I apologize for cross posting but I'm not sure which mod is in play with my prob.

New problem arose - stock level is adjusted on products WITHOUT attributes when transacted, but stock levels are not adjusted when it is a stock with attributes.

I recently housecleaned my permissions at request of server....folders are 0755, files 0644, and config files 0444.

Does this mod require a different permission setting somewhere in order to process the stock change?

12 Feb 2010, 9:25 AM
#174
rickyk avatar

rickyk

New Zenner

Join Date:
Jan 2010
Posts:
4
Plugin Contributions:
0

Re: Product Attribute Grid

Great Mods I am well impressed at the amount of customisation available. I am using ZC1.3.8, with SBA and PAG both latest versions.

The grid works perfectly displaying the outofstock.gif when products aren't available. However when I add an additional radio button option, the outofstock.gif disappears and reverts back to the input box. This gives the impression that the item is in stock, even though if you go on to purchase it is tells you correctly that it isn't.

So the question is, has anybody managed to successfully get SBA and PAG to work with a grid and an additional separate option(s)???

Your help as ever is appreciated.:dontgetit

12 Feb 2010, 12:18 PM
#175
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

You won't be able to use an additional field with the out of stock indicator. After all, if the radio field was for "green" or "blue", and you have 1000 blue, and no green ones left, would the attribute grid box show up, or show a X? In this senario, you are looking for an AJAX dynamic type of attriubte, with stock look up capabilities, which isn't available as yet with Zen Cart.

As for the stock question and file permissions, the coding doesn't use affect the stock levels, as this is still handled via the standard Zen stock control coding, or the Stock by Attribute module.

Finally - mcshane78 - have you installed this module? Did you follow the instructions which are included with the module, and "fairly fool-proof"?

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

12 Feb 2010, 2:11 PM
#176
rickyk avatar

rickyk

New Zenner

Join Date:
Jan 2010
Posts:
4
Plugin Contributions:
0

Re: Product Attribute Grid

Thanks for yr quick response. I will have a rethink on my store now, but at least I don't have to search any more!:smile:

thanks again

15 Feb 2010, 9:17 AM
#177
shane78 avatar

shane78

Banned

Join Date:
Oct 2008
Location:
newcastle upon tyne (UK)
Posts:
876
Plugin Contributions:
0

Re: Product Attribute Grid

Absolute:

You won't be able to use an additional field with the out of stock indicator. After all, if the radio field was for "green" or "blue", and you have 1000 blue, and no green ones left, would the attribute grid box show up, or show a X? In this senario, you are looking for an AJAX dynamic type of attriubte, with stock look up capabilities, which isn't available as yet with Zen Cart.

As for the stock question and file permissions, the coding doesn't use affect the stock levels, as this is still handled via the standard Zen stock control coding, or the Stock by Attribute module.

Finally - mcshane78 - have you installed this module? Did you follow the instructions which are included with the module, and "fairly fool-proof"?

Absolute
Hi Absolute..

yup.. 3 times with 3 diff downloads incase it was currpt.
no error msgs, no strange things happen, all folders renamed properly... etc
on a test site with no other mods installed except stock by attributes

but nothing happens, lol.. and i dont know why

15 Feb 2010, 4:38 PM
#178
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

mcshane78:

Hi Absolute..

yup.. 3 times with 3 diff downloads incase it was currpt.
no error msgs, no strange things happen, all folders renamed properly... etc
on a test site with no other mods installed except stock by attributes

but nothing happens, lol.. and i dont know whyDon't shoot the messenger..:smile: But the first time I used this I forgot to use the new "grid" attribute type for my attributes.. Is it possible this is the issue for you??

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.

24 Feb 2010, 4:26 PM
#179
absolute avatar

absolute

Totally Zenned

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

Re: Product Attribute Grid

What are you expecting to happen? When you install it, you MUST follow the instructions to the letter.

  • BACKUP!
  • Install all files
  • Navigate to a PRODUCT PAGE within the store, to initiate the auto-install process.
  • Check in the admin, under Option Names to see if GRID is now an available option TYPE.
  • Create new option name, and values
  • Set up attributes for product
  • Go to the store side and admire your handy work

Once you have followed the instructions, you should see exactly what you are looking to achieve.

  • Finally, if you find this module an asset to your store, why not send a little something to our PayPal account, so that we can continue to develop this module? We aren't part of the Zen Cart team, and develop these modules at our own cost.

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

24 Feb 2010, 5:56 PM
#180
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

Absolute:

What are you expecting to happen? When you install it, you MUST follow the instructions to the letter.

  • BACKUP!
  • Install all files
  • Navigate to a PRODUCT PAGE within the store, to initiate the auto-install process.
  • Check in the admin, under Option Names to see if GRID is now an available option TYPE.
  • Create new option name, and values
  • Set up attributes for product
  • Go to the store side and admire your handy work

Once you have followed the instructions, you should see exactly what you are looking to achieve.

  • Finally, if you find this module an asset to your store, why not send a little something to our PayPal account, so that we can continue to develop this module? We aren't part of the Zen Cart team, and develop these modules at our own cost.

AbsoluteYou're ABSOLUTEly right.. Will do so this weekend!:smile:

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.