

Nocturnaloner
Members-
Content count
55 -
Joined
-
Last visited
Profile Information
-
Real Name
Greg R.
-
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;
-
Shazam! I hereby resurrect this thread, because not every case of the 1064 error is due to newer versions of MySQL or PHP.
-
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.
-
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?
-
Anyone at all?? Lonely... so lonely...
-
Option Type Feature v1.6 (for osc 2.2 MS2)
Nocturnaloner replied to Chandra's topic in General Add-Ons Support
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). -
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?
-
Option Type Feature v1.6 (for osc 2.2 MS2)
Nocturnaloner replied to Chandra's topic in General Add-Ons Support
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 -
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?
-
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.
-
How to upload EP file under ssl?
Nocturnaloner replied to Nocturnaloner's topic in General Add-Ons Support
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. -
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
-
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!
-
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?
-
Ok, I found it. It's actually not in this thread. It's here.