Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart 4.1.0 released

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #71  
Old 04-25-2006, 10:00 PM
 
svowl svowl is offline
 

X-Cart team
  
Join Date: Jan 2003
Posts: 937
 

Default

Quote:
Originally Posted by moneysaver67
Upgradaded the beginning of a 4.0.18 site to 4.1 (of course all the .18 stuff is fully backed up )

Began with a fresh, full install then tried doing a product import via CSV 4.0.18 export. BAM, got an error in modules/Import_3x_4x/import.php (Line 1569)

Code:
Undefined function: func_recalc_subcat_count ...

This error prevented me from importing products/categories.

Thank you for the report.
Try to apply the attached patch, please (4.1.0)
Attached Files
File Type: diff patch_135.diff (997 Bytes, 58 views)
__________________
Vladimir Semyonov
Lead Software Engineer
Reply With Quote
  #72  
Old 04-25-2006, 10:12 PM
 
svowl svowl is offline
 

X-Cart team
  
Join Date: Jan 2003
Posts: 937
 

Default

Quote:
Originally Posted by TL408
Here is another bug. For the FedEx shipping module, during the checkout process, the shipping methods are showing the variable "shipping_time" instead the actual number of days for those shipping methods.

Quote:
Originally Posted by frank678
I am having the same problem but I dont think it's just FedEx. Im getting it on USPS.

Try to apply the attached patch, please (4.1.0). Thank you for the report.
Attached Files
File Type: diff patch_171.diff (1.5 KB, 40 views)
__________________
Vladimir Semyonov
Lead Software Engineer
Reply With Quote
  #73  
Old 04-25-2006, 10:30 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default

Quote:
Originally Posted by svowl
Try to apply the attached patch, please (4.1.0). Thank you for the report.
Thank you for being so quick to respond with patches. Will there be a cumulative patch (4.1.1?) soon?
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #74  
Old 04-25-2006, 11:57 PM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

When do you think the SQL database upgrade patch will be released. As I need to test my new layout (on v4.1) with my current product list.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #75  
Old 04-26-2006, 12:40 AM
 
svowl svowl is offline
 

X-Cart team
  
Join Date: Jan 2003
Posts: 937
 

Default

Quote:
Originally Posted by darrenkierman
When do you think the SQL database upgrade patch will be released. As I need to test my new layout (on v4.1) with my current product list.

It is under development at the moment. We are planning to complete the patch and upload to the File area on Friday. However, you can use the '3x-4x import' link in the 'Import/Export data' section to import a CSV file generated by your older version of X-Cart. Please, make sure you have applied patch provided in this post: http://forum.x-cart.com/viewtopic.php?p=134869#134869 before importing.
__________________
Vladimir Semyonov
Lead Software Engineer
Reply With Quote
  #76  
Old 04-26-2006, 02:34 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

X-cart, I'm not sure if this is a bug or a designed change to the categories Array in V4.1.0.

I have a menu that automatically generates the categories and any subcategories down to 3 subcategories levels, using Smarty SECTION LOOPS and JavaScript. It works perfectly in V4.18.

I was testing the same menu code in V4.1.0, and could only generate the 'Books' and 'Games and Toys' ROOT category. No subcategories were produced.

I noticed in V4.1.0 ' categories.tpl ', xcart have replaced Smarty SECTION loops with FOREACH loops to produce the categories. This change is not a problem as my code can be modified to use foreach loops if required.

The problem is when I loop through ALLCATEGORIES, CATEGORIES and SUBCATEGORIES array variables, they all contain the ROOT categories ONLY; (no sub categories).

I checked the file ' include/categories.php ' and made the following changes to correct the problem with the missing subcategories from the ALLCATEGORIES array variable.

ORIGINAL file from xcart V4.1 include/categories.php

Quote:
SECTION
#
# Gather the array of categories and extract into separated arrays:
# $all_categories, $categories and $subcategories
#

if (($current_area == "C" && defined("GET_ALL_CATEGORIES")) || defined('MANAGE_CATEGORIES')) {
$_categories = func_get_categories_list($cat);
} elseif($current_area == "C") {
$_categories = func_get_categories_list($cat, true, "current");

} else {
$_categories = func_get_categories_list($cat, true, "all");
}

CHANGED TO ( Reversed line 4 and 6 to correct problem with accessing SUBCATEGORIES)
Quote:
SECTION
#
# Gather the array of categories and extract into separated arrays:
# $all_categories, $categories and $subcategories
#

if (($current_area == "C" && defined("GET_ALL_CATEGORIES")) || defined('MANAGE_CATEGORIES')) {
$_categories = func_get_categories_list($cat);
} elseif($current_area == "C") {
$_categories = func_get_categories_list($cat, true, "all");

} else {
$_categories = func_get_categories_list($cat, true, "current");
}

Can you please confirm if the code in the ORIGINAL is an error/bug or a V4.1.0 design change?

Regards,
Syddos.
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
  #77  
Old 04-26-2006, 03:41 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

Quote:
Originally Posted by svowl
Quote:
Originally Posted by darrenkierman
When do you think the SQL database upgrade patch will be released. As I need to test my new layout (on v4.1) with my current product list.

It is under development at the moment. We are planning to complete the patch and upload to the File area on Friday. However, you can use the '3x-4x import' link in the 'Import/Export data' section to import a CSV file generated by your older version of X-Cart. Please, make sure you have applied patch provided in this post: http://forum.x-cart.com/viewtopic.php?p=134869#134869 before importing.

Just tried that and got the following error message:
'The file you are trying to import does not contain any sections.'

also noticed that they is no link at all to a Import 3.x-4.x section in the 'Import/Export data' section and the module is enabled !
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #78  
Old 04-26-2006, 04:41 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

Fixed it :

Had to remove the AREA_TYPE bit from import_tools.php

Code:
if (!empty($active_modules['Import_3x_4x']) && AREA_TYPE == 'P') { $dialog_tools_data["right"][] = array("link" => $xcart_web_dir.DIR_PROVIDER."/import_3x_4x.php", "title" => func_get_langvar_by_name("lbl_3x_4x_import")); }
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #79  
Old 04-26-2006, 05:35 AM
 
svowl svowl is offline
 

X-Cart team
  
Join Date: Jan 2003
Posts: 937
 

Default

Quote:
Originally Posted by syddos
Can you please confirm if the code in the ORIGINAL is an error/bug or a V4.1.0 design change?

That is not a bug. The procedure of generating categories was optimized to increase performance and decrease memory requirements, and, as a result, the format of some arrays was modified.
__________________
Vladimir Semyonov
Lead Software Engineer
Reply With Quote
  #80  
Old 04-26-2006, 07:11 AM
 
syddos syddos is offline
 

eXpert
  
Join Date: Sep 2002
Location: London, England, UK
Posts: 259
 

Default

Quote:
Originally Posted by svowl
That is not a bug. The procedure of generating categories was optimized to increase performance and decrease memory requirements, and, as a result, the format of some arrays was modified.

Thanks for confirming that, I thought it was a design change.

I have decided to use the change I made to file ' include/categories.php ', to allow my nested Smarty Section Loops to produce a printed lists of each Root category and its sub level categories (I have 3 sub levels). I will use this list to hard code the menu category data into the template file. This will save even more memory and time when the page is reloaded, however the include/categories.php file will still be doing is job.

Regards,
Syddos
__________________
Syddos

Nothing is impossible, We just don't know how to do it ........Yet!

Xcart 4.1.X PRO (Testing Platform: winXP Pro)
Perl 5.8.7 (win32)
WINAMP 1.6.3 (win32 server package. Includes the following)
- phpMyAdmin v2.8.03
- MySql 5.0.21
- Apache 2.0.55 (win32)
- php 5.1.4
- SQLitemanager 1.2.0
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:20 AM.

   

 
X-Cart forums © 2001-2020