Results 1 to 10 of 546

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: Product Attribute Grid

    Was this ever finished?


    Quote Originally Posted by mrgtih2 View Post
    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!

  2. #2
    Join Date
    Apr 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Product Attribute Grid

    attributes qty box show up but when i put number qty i want to add to cart it dosen't updates

    can u tell me why? how to fix that problem pls need badly..thanks

  3. #3
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Product Attribute Grid

    @xshaanx - have you followed the instructions to the letter? Have you installed the file found in includes/extra_actions/ folder?

    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

  4. #4
    Join Date
    Apr 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Product Attribute Grid

    yes i have done everything install everything as it say in intru file

  5. #5
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Product Attribute Grid

    Without further information, such as a link to your site, or seeing your actual code, I can't offer any further suggestions. If you have followed all the instructions as you state you have, this module will just work with a standard template.

    It's been downloaded over 4500 times, and so far, only a handful of people have the same problems over and over. It's normally down to the placement of code, or a template over-ride.

    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

  6. #6

    Default Re: Product Attribute Grid

    I have installed this addon and love it. I have one question about it though. Is it possible to have 3 sizes, and 1 color as shown here:

    http://funkymunkys.ca/index.php?main...&products_id=7

    and not have the sizes shifted one space to the left so that they are no longer lined up properly?

  7. #7

    Default Re: Product Attribute Grid

    Quote Originally Posted by FunkyPapa View Post
    I have installed this addon and love it. I have one question about it though. Is it possible to have 3 sizes, and 1 color as shown here:

    http://funkymunkys.ca/index.php?main...&products_id=7

    and not have the sizes shifted one space to the left so that they are no longer lined up properly?
    I changed a couple of things, the above link no longer works..
    Here is the right one:
    http://funkymunkys.ca/index.php?main...products_id=14

  8. #8
    Join Date
    Apr 2005
    Posts
    54
    Plugin Contributions
    0

    Default Re: Product Attribute Grid

    I'm having the problem of both a grid and radio button appearing for an attribute. I'm pretty sure it's an issue already discussed a number of pages back, but I'm confused as to what the fix is. I'm doing this on a local test server so no links. Hopefully the screen shots show up :)

    Fresh install of 139f, and downloaded this mod a couple of days ago. I also tried installing stock attributes and merged where appropriate, but no change. All of these attributes are set to the grid option type. Everything loads into the cart just fine though!

    Incorrect:


    Correct:


 

 

Similar Threads

  1. Product Attribute Grid Help - Willing to Pay
    By MM_Dude in forum General Questions
    Replies: 0
    Last Post: 26 Nov 2014, 08:19 PM
  2. Quick Order & Product Attribute Grid...Possible?
    By laurenjj in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 2 Jul 2010, 02:02 AM
  3. Product Attribute Grid!!!
    By runoka in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Apr 2010, 05:50 PM
  4. Product Attribute Grid Instructions Possible Paragraph Missing
    By printchic in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 8 Aug 2009, 05:54 AM
  5. Help Uninstalling Product Attribute Grid
    By Dr Tweak in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 20 May 2008, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg