-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filelayout $$v_categories_name is not getting set #47
Comments
Please ignore the" isset($filelayout[$v_categories_name_var_code])" above. It's isset( |
Take a look at the current version of the import file beginning at line 805 committed Feb 8, 2016: $v_categories_name_var = 'v_categories_name_' . $lid; // ${$v_categories_name_var} >> $v_categories_name_1, $v_categories_name_2, etc.
$v_categories_name_var_code = 'v_categories_name_' . $lid_code; // ${$v_categories_name_var} >> $v_categories_name_1, $v_categories_name_2, etc.
if (isset(${$v_categories_name_var}) && isset($filelayout[${$v_categories_name_var}]) || isset(${$v_categories_name_var_code}) && isset($filelayout[${$v_categories_name_var_code}])) { // does column header exist?
|
Ok ! it's Working now. Thanks. |
I have been trying to keep the master branch populated with things that work, even if the version number hasn't been consistently updated with each little tweak made. Pretty much if the files haven't been downloaded following a dated commit, then something has changed that may be of value. So, all that said, does this issue need to remain open? |
Well, I've been working on other stuff, and now I got back to import stuff, and guess what ? Still doesn't work. I remenber that it did, when you post it. But I'll close it. I've made a lot of changes to this file. Maybe it's something that I did. Only works with But, since it's working for me this way, and I'm using some modifications on the file, I'll close this. |
Actually, upon further review, we both have something to consider/incorporate. The current condition of the file is as previously posted:
However, there is a problem in the right side of each anded group. The problem is that Then there is the proposed revision (partial shown):
The problem with this in conjunction with the code content that precedes it is that here the left side of the coupled evaluation is always true, because two lines before This will be corrected shortly in a new commit. |
This is still under review. |
Hi
|
And if I try to skip that sanitazer I run into
And yes, categories description is set as TEXT with no default value. |
So categories_description must be present, or change categories table to have a default value.
|
When generating a new category using EP4 while adding a new product, the category name is inserted; however, there has not been a description entered yet and therefore there was no data available to import. A default ZC install does not assign a default value for the categories_description field within the categories_description table. This adds a default value; however, the database should be first queried to identify the existence of a default value. If a default value is there, then either use the default value or don't include the categories_description when inserting that record. This relates to #47.
When generating a new category using EP4 while adding a new product, the category name is inserted; however, there has not been a description entered yet and therefore there was no data available to import, the previous correction assumed that the category name was not provided, this addresses the addition of a product that also has a category name identified. A default ZC install does not assign a default value for the categories_description field within the categories_description table. This adds a default value; however, yet to be done is to have the database first queried to identify the existence of a default value. If a default value is there, then either use the default value or don't include the categories_description when inserting that record. This relates to #47.
For some reason, I'm facing a little situation here at import ( with PHP Version 7.1.14) :
The script is checking:
if (isset($filelayout[${$v_categories_name_var}]) || isset($filelayout[$v_categories_name_var_code])) {
However this is what I'm getting:
I can only go in the IF without the $$v_categories_name_var
Do we really need that variable variables here ?
Thanks
The text was updated successfully, but these errors were encountered: