Jump to content

Nocturnaloner

Members
  • Content count

    55
  • Joined

  • Last visited

Everything posted by Nocturnaloner

  1. Nocturnaloner

    Master Products - MS2

    This should be a simple one. I have Master Products installed with Option Type Feature. When I add items to the cart, I want to make sure that for slave items, the text attribute is not brought with it. All I need is a p.products_master_status check where it looks at the attribute type. Just need to get the syntax right. Here's the section from shopping_cart.php: //CLR 020606 check if input was from text box. If so, store additional attribute information //CLR 020708 check if text input is blank, if so do not add to attribute lists //CLR 030228 add htmlspecialchars processing. This handles quotes and other special chars in the user input. $attr_value = NULL; $blank_value = FALSE; if (strstr($option, TEXT_PREFIX)) { if (trim($value) == NULL) { $blank_value = TRUE; } else { $option = substr($option, strlen(TEXT_PREFIX)); $attr_value = htmlspecialchars(stripslashes($value), ENT_QUOTES); $value = PRODUCTS_OPTIONS_VALUE_TEXT_ID; $this->contents[$products_id]['attributes_values'][$option] = $attr_value; } } if (!$blank_value) { $this->contents[$products_id]['attributes'][$option] = $value;
  2. Nocturnaloner

    Quick Price Updates Error

    Shazam! I hereby resurrect this thread, because not every case of the 1064 error is due to newer versions of MySQL or PHP.
  3. Nocturnaloner

    BTSv1.2 Support

    Well, since no one can answer my question, I might as well help you with yours. By default, all of the tables on the main page template are auto-sized, meaning they stretch to fit the space available. You are trying to do a fixed layout, so you have to find those tables that are width="100%", and change them to a pixel value.
  4. Nocturnaloner

    BTSv1.2 Support

    I'm trying to use Dreamweaver pop up menus in my template. I know javascript is working, because the mouseovers work, but in my browser's status bar I see the error symbol next to the words 'Building Menu' When I look at the error it says: Error 'Menu1' is undefined Code: 0 Any idea why this is happening?
  5. Nocturnaloner

    Master Products - MS2

    Anyone at all?? Lonely... so lonely...
  6. When this happened to me, I went into my database with phpmyadmin and edited the product_options_type_select. Some of those values were incorrectly "0" (dropdown), when they should be "1" (text field).
  7. Nocturnaloner

    Master Products - MS2

    I'm getting empty quantity dropdowns next to text fields in this item. I'm sure it's happening in product_info.php, the question is, how to prevent it?
  8. Hi, I'm using Option Type with Master Products, and my text fields are showing up with empty dropdown lists next to them. Am I doing something wrong? Take a look at the item here, and let me know what you think: The Item
  9. Nocturnaloner

    EP errors

    Nevertheless, what does your $tempdir line look like in easypopulate.php? Are you sure you have a temp directory where that is pointing to? Are you sure that directory's permissions are set to 777?
  10. Nocturnaloner

    EP errors

    This looks identical to the problem I just had, and the solution is to first make sure that you have a temp directory where EP thinks it is, and make sure its chmod is 777. Is your temp directory this: (/home/dcgtest2/public_htmltemp/ or this: (/home/dcgtest2/public_html/temp/ because if it's the latter, you may have a typo.
  11. Nocturnaloner

    How to upload EP file under ssl?

    Okay, got it. It was a simple chmod problem. I moved my store to a different server, and had to re-chmod my catalog/temp to 777. Dumb mistake.
  12. When I try to update my catalog, I get this in easypopulate.php: Warning: move_uploaded_file(/home/mysite/public_html/catalog/temp/EP2004Jun30-1503.txt): failed to open stream: Permission denied in /home/mysite/public_html/catalog/admin/easypopulate_functions.php on line 32 Warning: move_uploaded_file(): Unable to move '/var/tmp/phpdYC8ni' to '/home/mysite/public_html/catalog/temp/EP2004Jun30-1503.txt' in /home/mysite/public_html/catalog/admin/easypopulate_functions.php on line 32 File uploaded. Temporary filename: /var/tmp/phpdYC8ni User filename: EP2004Jun30-1503.txt Size: 80820 Warning: file(/home/mysite/public_html/catalog/temp/EP2004Jun30-1503.txt): failed to open stream: No such file or directory in /home/mysite/public_html/catalog/admin/easypopulate.php on line 656 Warning: Invalid argument supplied for foreach() in /home/mysite/public_html/catalog/admin/easypopulate.php on line 680
  13. Nocturnaloner

    Easy Populate & Products Attributes

    Nope, this is: :) $query .= '" ,products_mediumimage="'.$v_products_mediumimage. '" ,products_largeimage="'.$v_products_largeimage; Ah, the semicolon. Such a little thing, to make such a big difference!
  14. Nocturnaloner

    Easy Populate & Products Attributes

    John. I'm getting SQL errors on my latest db upload: 1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '" ,products_mediumimage="video/impactSm.gif" ,products_largeima Here is the uncommented area of my easypopulate.php: $query .= '" ,products_mediumimage="'.$v_products_mediumimage. '" ,products_largeimage="'.$v_products_largeimage. Is this the correct syntax?
  15. Nocturnaloner

    Easy Populate & Products Attributes

    Ok, I found it. It's actually not in this thread. It's here.
  16. Nocturnaloner

    Easy Populate & Products Attributes

    Hey John, I'd love to see that modified easypopulate file, but I can't find it on page 12 or 13. You make references to it, but where's the file?
  17. Nocturnaloner

    Easy Populate & Products Attributes

    v_attribute_values_price_1_1 -250 -250 -250 Well, in the spreadsheet, there's not much to say, you have v_attribute_values_price_1_1, and a column of numbers underneath it, like so. Easypopulate gets that by combining price_1_1 with price_prefix, but doesn't give it back correctly, unfortunately. If I could set price_prefix myself in the spreadsheet, without ep interfering, my problem would be solved.
  18. Nocturnaloner

    Easy Populate & Products Attributes

    In fact, it seems to corrupt the data. I fixed all the price_prefixes in phpmyadmin, exported with easypop, then took the csv back in, and the errors returned. Is this the fist time anyone has mentioned this? Is there an easy way to export the price_prefix as an explicit field, instead of combining it with the number, as ep does now?
  19. Nocturnaloner

    Easy Populate & Products Attributes

    Nope, no dollar signs, those get put in automatically.
  20. Nocturnaloner

    Easy Populate & Products Attributes

    I'm having a problem with negative price_prefixes in easypopulate. If I enter a negative price for my attribute, it shows up in the ldropdown ist with an extra negative sign, (-$-250) but still acts as a positive in my cart. Is there a workaround for this? Sorry if its been done to death, but I couldn't find it with a search. G.
  21. Nocturnaloner

    Master Products - MS2

    i'm betting that's in includes/modules/master_listing.php i dind't search out that exact filed, but it's where i've changed my price and selection box to a buy now button as in here: http://cpanel2.betterbox.net/~abbey/produc...roducts_id=2542 hth -Who Dah? You are correct. It's under case MASTER_LIST_NAME, thanks!
  22. Nocturnaloner

    Master Products - MS2

    This is an easy one, which is why I can't find it: Where would I change the products_name to a link in the slave box? Which file, that is? I can't seem to find it in product_info.php.
  23. Nocturnaloner

    Master Products - MS2

    Hi again, I asked this a couple of pages back, but no one picked up on it, so I persist :). A small piece of MP code is breaking my buy it now and add to cart buttons. The problem is in product_listing.php and looks like this: //Master Products if ($listing['products_master_status'] != '1' && $listing['products_master'] == '0') { $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } elseif ($listing['products_master'] != '0') { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_master']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; } //Master Products EOF whereas the original part is just this line: $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; In my store, that modification to the product listing causes my buy it nows to not build their links properly. The links are there, but they cut off at "...products_id=", and I can only guess that something similar happens to my add to carts. I've gone through every MP file with Beyond Compare, and know I made all the necessary changes for the install. Why would this part be messing me up?
  24. Nocturnaloner

    Master Products - MS2

    Hello, I'm having a problem with some broken buttons that I suspect is Master Products related: My 'Buy Now' buttons do not carry the product id in their link, resulting in a 'product not found' when you click Buy Now. This happens ONLY on search results and 'list by manufacturer' results. Also, my Add to Cart buttons seem to be broken on everything, in the sense that the item is not added to the cart, but you will be taken to the cart when you click it. Please help, I have to go live with this thing soon! thanks, Greg.
×