Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

wish list 3.5d problems


sjbuzzz

Recommended Posts

I have installed all of the lines from the install instrucions but once installed I get the folloing error when I went to add an item to my wish list through a guest account

 

Warning: main(includes/languages/english/wishlist.php): failed to open stream: No such file or directory in /home/ycnco/public_html/wishlist.php on line 11

 

Warning: main(includes/languages/english/wishlist.php): failed to open stream: No such file or directory in /home/ycnco/public_html/wishlist.php on line 11

 

Fatal error: main(): Failed opening required 'includes/languages/english/wishlist.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ycnco/public_html/wishlist.php on line 11

 

 

now when I cheecked out wishlist.php which is a new file from the contribution it leads me to

 

  require('includes/application_top.php');
 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST);

 

and from the 2 added parts in application_top here is the code

 

From instructions

 

Find this code:

 

// include shopping cart class require(DIR_WS_CLASSES . 'shopping_cart.php');

Below that code ADD this:

 

// include wishlist class require(DIR_WS_CLASSES . 'wishlist.php');

 

here is the code

// include shopping cart class
 require(DIR_WS_CLASSES . 'shopping_cart.php');

// include wishlist class 
 require(DIR_WS_CLASSES . 'wishlist.php');

 

second instructions

 

Find this code:

 

 

Directly above that code ADD this:

 

// wishlist data

if(!tep_session_is_registered('wishList')) { tep_session_register('wishList'); $wishList = new wishlist; }

//Wishlist actions (must be before shopping cart actions) if(isset($HTTP_POST_VARS['wishlist_x'])) { if(isset($HTTP_POST_VARS['products_id'])) { if(isset($HTTP_POST_VARS['id'])) { $attributes_id = $HTTP_POST_VARS['id']; tep_session_register('attributes_id'); } $wishlist_id = $HTTP_POST_VARS['products_id']; tep_session_register('wishlist_id'); } tep_redirect(tep_href_link(FILENAME_WISHLIST)); }

 

and here is the code from my file

 

// wishlist data 
if(!tep_session_is_registered('wishList')) { tep_session_register('wishList'); $wishList = new wishlist; } 
//Wishlist actions (must be before shopping cart actions) 
if(isset($HTTP_POST_VARS['wishlist_x'])) { if(isset($HTTP_POST_VARS['products_id'])) { if(isset($HTTP_POST_VARS['id'])) { $attributes_id = $HTTP_POST_VARS['id']; tep_session_register('attributes_id'); } $wishlist_id = $HTTP_POST_VARS['products_id']; tep_session_register('wishlist_id'); } tep_redirect(tep_href_link(FILENAME_WISHLIST)); }

// Shopping cart actions

 

can anyone tell me where I am going wrong and sorry for the size of this post

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...