Re: Product Attribute Grid
sorry....
forgot to report back..
yes it was me being rubbish and not installing correctly..mind elsewhere of late...
will donate asap!
thank you
Re: Product Attribute Grid
Quote:
Originally Posted by
DivaVocals
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/ha...erimeter-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/ha...rimeter-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/ha...rimeter-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..
I'm having exactly the same issue here.
It looks like you've found a work around for this. Any chance you could point me in the right direction please?
Many thanks,
Alex
Re: Product Attribute Grid
Can you post a link to your site?
If the attributres are appearing as both a grid and a radio field, you need to check that you have set them to GRID types in the admin. You then need to check that the includes/modules/YOUR_TEMPLATE/attributes.php file is correctly loading.
Finally, check your tpl_products_info_default.php file. If you are using a template file here, I suggest renaming it, and seeing it the problem persists with the original Zen template file.
Absolute
Re: Product Attribute Grid
Quote:
Originally Posted by
Alex Clarke
I'm having exactly the same issue here.
It looks like you've found a work around for this. Any chance you could point me in the right direction please?
Many thanks,
Alex
I never got an answer, and if you look my problem description you'll see that I already describe the workaround..
Quote:
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..
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
Can you post a link to your site?
See my post that Alex quoted above.. (links included)
Quote:
Originally Posted by
Absolute
If the attributres are appearing as both a grid and a radio field, you need to check that you have set them to GRID types in the admin.
Check
You then need to check that the includes/modules/YOUR_TEMPLATE/attributes.php file is correctly loading.
Check
Finally, check your tpl_products_info_default.php file. If you are using a template file here, I suggest renaming it, and seeing it the problem persists with the original Zen template file.
If I recall correctly, my template did not have a modified version of this file so I used the one from this mod.. But I'll check this tonight..
Re: Product Attribute Grid
Which version of this module are you using? The latest version should not require 2 attributes in order to show the grid. As long as grid option types are used, then the grid should be automatic.
I'll check the code this week,
Absolute
Re: Product Attribute Grid
Quote:
Originally Posted by
Absolute
Which version of this module are you using? The latest version should not require 2 attributes in order to show the grid. As long as grid option types are used, then the grid should be automatic.
I'll check the code this week,
Absolute
I'll check as soon as I get home and report back, but it was the MOST recent version available in the downloads as of when I 1st reported the issue..
Product Attribute Grid - Quantity not adding to cart
Hey there
I'm quite a savvy Zenner and I'm using this add-on on some of my sites but I hit a snag on one of the new sites.
I've installed the add-on and it displays grids beautifully (even a grid for just one attribute) and the quantity boxes show ok. As soon as you select any quantity of the attribute and "Add to Cart" it displays a "no items in your cart message" so it's impossible to add anything to a cart.
If I reset the attributes option to anything but "grid" it works fine again.
I've checked all the usual but can't seem to find the cause - any ideas?
Thanks
Cliff
Re: Product Attribute Grid - Quantity not adding to cart
You want to check that the grid appears within a form within the page. You also want to ensure that the extra_cart_actions folder has been uploaded correctly.
If this module is failing, then there will be a file missing, or the grid is appearing incorrectly.
Absolute
Re: Product Attribute Grid
Was this ever finished?
Quote:
Originally Posted by
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!