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

Page Title in 4.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 09-27-2009, 06:45 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

You have to have comma after each element of the array except for the last one. Put comma after
Code:
"override_child_meta" => $override_child_meta
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #22  
Old 09-27-2009, 06:51 PM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Page Title in 4.2

Thanks!

Now I have to go back and add commas to the rest of the .php files =(
But at least I know what's wrong and how to fix it. I was afraid I'd have to go back and undo all the changes I just made.

Again, thanks, both for your addressing my question and also for this modification.
__________________
version 4.4.2
Reply With Quote
  #23  
Old 09-27-2009, 07:40 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: Page Title in 4.2

Oops, sorry, never mind, I was responding to second page of thread not seeing it had already been answered on 3rd page.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #24  
Old 10-13-2009, 08:22 AM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Page Title in 4.2

Apparently I have messed up the import_categories.php file as well. I get the following error when trying to reach the import page:

Parse error
: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /public_html/*edit*.com/include/import_categories.php on line 78

Here is my code, hopefully I included enough of it for assistance.

Code:
if (!defined('IMPORT_CATEGORIES')) { # # Make default definitions (only on first inclusion!) # define('IMPORT_CATEGORIES', 1); $import_specification["CATEGORIES"] = array( "category_page_title" => array() #Added by CFL Systems for category page title "script" => "/include/import_categories.php", "tpls" => array( "main/import_option_default_category.tpl", "main/import_option_category_path_sep.tpl", "main/import_option_images_directory.tpl"), "export_tpls" => array( "main/export_option_export_images.tpl", "main/export_option_category_path_sep.tpl"), "permissions" => "A", # Only admin can import categories "need_provider" => 0, "finalize" => true, "export_sql" => "SELECT categoryid FROM $sql_tbl[categories] ORDER BY categoryid_path, order_by", "orderby" => 25,

Line 77, 78, and 79:

Code:
"category_page_title" => array() #Added by CFL Systems for category page title "script" => "/include/import_categories.php", "tpls" => array(

Thanks,
__________________
version 4.4.2
Reply With Quote
  #25  
Old 10-13-2009, 09:53 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

You need comma (,) after "category_page_title" => array()

When I wrote that mod "category_page_title" => array() was the last call in the array. It look like for 4.2.2 they have added more elements into the array. Remember - array elements are separated by comma (,), no comma after the last one
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #26  
Old 10-13-2009, 10:36 AM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Page Title in 4.2

Thank you. I have added a comma (see code below), but now get the same error for line 84. I guess I'm having trouble finding where to add/remove commas. I've added/removed them from a few different places now and each time gives me an error on a different line.

Code:
define('IMPORT_CATEGORIES', 1); $import_specification["CATEGORIES"] = array( "category_page_title" => array(), #Added by CFL Systems for category page title "script" => "/include/import_categories.php", "tpls" => array( "main/import_option_default_category.tpl", "main/import_option_category_path_sep.tpl", "main/import_option_images_directory.tpl"), "export_tpls" => array( "main/export_option_export_images.tpl", "main/export_option_category_path_sep.tpl"), "permissions" => "A", # Only admin can import categories "need_provider" => 0, "finalize" => true, "export_sql" => "SELECT categoryid FROM $sql_tbl[categories] ORDER BY categoryid_path, order_by", "orderby" => 25, "depending" => array("C","CI","CT"), "columns" => array( "categoryid" => array( "is_key" => true, "type" => "N", "required" => false, "default" => 0), "category" => array( "is_key" => true, "required" => true), "clean_url" => array( "type" => "U" ), "descr" => array( "eol_safe" => true), "meta_keywords" => array(), "meta_description" => array(), "override_child_meta" => array( "type" => "B", "default" => "N"), "avail" => array( "type" => "B", "default" => "Y"), "orderby" => array( "type" => "N", "default" => 0), "views_stats" => array( "type" => "N"), "product_count" => array( "type" => "N"), "membershipid" => array( "array" => true, "type" => "N"), "membership" => array( "array" => true), "icon" => array( "type" => "I", "itype" => "C") ) );

Line 83, 84, 85:
Code:
"export_tpls" => array( "main/export_option_export_images.tpl", "main/export_option_category_path_sep.tpl"),
__________________
version 4.4.2
Reply With Quote
  #27  
Old 10-13-2009, 10:57 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

I did not see this in when I answered before. It seems like my original instructions are not easy to follow, sorry. You are adding the code in the wrong place. It is not supposed to go right after
Code:
$import_specification["CATEGORIES"] = array(
Take it out of there and put it after
Code:
"icon" => array( "type" => "I", "itype" => "C")

so the code will look like this
Code:
....................... "membershipid" => array( "array" => true, "type" => "N"), "membership" => array( "array" => true), "icon" => array( "type" => "I", "itype" => "C"), "category_page_title" => array() #Added by CFL Systems for category page title ) );
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #28  
Old 10-13-2009, 11:14 AM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Page Title in 4.2

Still getting:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /public_html/*edit*.com/include/import_products.php on line 84

Code:
Code:
define('IMPORT_CATEGORIES', 1); $import_specification["CATEGORIES"] = array( "script" => "/include/import_categories.php", "tpls" => array( "main/import_option_default_category.tpl", "main/import_option_category_path_sep.tpl", "main/import_option_images_directory.tpl"), "export_tpls" => array( "main/export_option_export_images.tpl", (Line 84) "main/export_option_category_path_sep.tpl"), "permissions" => "A", # Only admin can import categories "need_provider" => 0, .... ... "membership" => array( "array" => true), "icon" => array( "type" => "I", "itype" => "C"), "category_page_title" => array() #Added by CFL Systems for category page title ) );
__________________
version 4.4.2
Reply With Quote
  #29  
Old 10-13-2009, 11:58 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

Attach the entire import_categories.php file here. You may need to rename it to .txt or something else
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #30  
Old 10-13-2009, 12:08 PM
 
digiemp digiemp is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 192
 

Default Re: Page Title in 4.2

Here it is. Thank you for looking into this.
Attached Files
File Type: php import_categories.php (15.1 KB, 410 views)
__________________
version 4.4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:19 PM.

   

 
X-Cart forums © 2001-2020