TomatoCart - New Generation Open Source eCommerce

22393 Downloads
48 users online
Home Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share
Go to bottomPage: 1
TOPIC: 2-3 bugs
#2138
2-3 bugs 1 Month, 1 Week ago Karma: 0
hi, guys, this is my first post here,
i want to say :
Congratulations for creators of tomatocart, is sow easy to work with this source & and hopefully will remain free for life

now i will report my bugs, also with the fixes

this will prevent to create another account when u are already logged & also if u are not logged u cannot see " My wish list" , sow, i have modified little the source , when u already logged & u try to make another accont u will be redirected to your account details & for " My wish list" u will be redirected to the Login page

here are instructions:

Open "wishlist.php" file from root/includes/content/account/ folder & find:

Code:

global $osC_Language, $osC_Services, $breadcrumb, $messageStack;


replace with:

Code:

global $osC_Language, $osC_Services, $breadcrumb, $messageStack, $osC_Customer; 



find :

Code:

$this->_page_title = $osC_Language->get('wishlist_heading'); 



replace with:


Code:

     if ($osC_Customer->isLoggedOn()) { 

      $this->_page_title = $osC_Language->get('wishlist_heading');
       }else{
       osc_redirect(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); 
      }





Next step:


Open "create.php" file from root/includes/content/account/ folder & find:

Code:

global $osC_Language, $osC_Services, $breadcrumb; 



replace with:

Code:

global $osC_Language, $osC_Services, $breadcrumb, $osC_Customer;  



find:

Code:

      $this->_page_title = $osC_Language->get('create_account_heading');  


replace with:

Code:

      if (!$osC_Customer->isLoggedOn()) {  
      $this->_page_title = $osC_Language->get('create_account_heading');
       }else{
       osc_redirect(osc_href_link(FILENAME_ACCOUNT, 'account', 'SSL')); 
      }




U can prevent also directly from templates files

open "index.php" from "glass_grey" template

find:

Code:

      <li> 
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'wishlist', 'SSL'), $osC_Language->get('my_wishlist')); ?>
      </li>
    <?php if ($osC_Customer->isLoggedOn()) { ?>
      <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'logoff', 'SSL'), $osC_Language->get('logoff')); ?>
      </li>
    <?php } else { ?>
      <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'), $osC_Language->get('login')); ?>
      </li>
    <?php } ?>
       <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'create', 'SSL'), $osC_Language->get('create_account')); ?>
      </li>




Replace with:

Code:

      <li> 
        <?php if ($osC_Customer->isLoggedOn()) { ?> 
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'wishlist', 'SSL'), $osC_Language->get('my_wishlist')); ?>
      </li>
      <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'logoff', 'SSL'), $osC_Language->get('logoff')); ?>
      </li>
    <?php } else { ?>
      <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'), $osC_Language->get('login')); ?>
      </li>
       <li>
        <?php echo osc_link_object(osc_href_link(FILENAME_ACCOUNT, 'create', 'SSL'), $osC_Language->get('create_account')); } ?>
      </li>



I hope to help my fixes

i will be back with other wen i will find

Best regards, hack346
hack346
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Gender: Male hack346 hack346 Birthday: 12/12
I convert (create) themes for Tomatocart
The administrator has disabled public write access.
 
#2143
Re:2-3 bugs 1 Month, 1 Week ago Karma: 3
I'm not sure to agree if these are any bugs, seems to me to be by design.

Why would you want to allow to create a new account when you are already logged in?

And for wish list, well, that depends on if it will save in a cookie even if you are not logged in and if it does it for a long time.
And if you have it and then create an account it will save in your account. Does it work like this after your bug fix? If so I agree it's a bug fix and it's good
xonium
Senior Boarder
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sweden
The administrator has disabled public write access.
 
#2144
Re:2-3 bugs 1 Month, 1 Week ago Karma: 0
Multiple account for a serious sales company?, i don`t think ...realy i don`t understand why a person will try to make another account when already is logged in & about my wish list ...& cookies? not work on windows servers, i will test later on linux
hack346
Junior Boarder
Posts: 28
graphgraph
User Offline Click here to see the profile of this user
Gender: Male hack346 hack346 Birthday: 12/12
Last Edit: 2010/07/29 13:30 By hack346.
I convert (create) themes for Tomatocart
The administrator has disabled public write access.
 
#2145
Re:2-3 bugs 1 Month, 1 Week ago Karma: 3
Oh I misread . You fixed so you CAN'T create a new account when already logged in, that's good
I thought you did the opposite ^^

For wishlist, I think it's good that it works even if you are not logged in.
xonium
Senior Boarder
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Sweden
The administrator has disabled public write access.
 
#2157
Re:2-3 bugs 1 Month, 1 Week ago Karma: 8
Hi, thanks for the bug report. It is correct that a user logged in should not create an account again.

Concerning the wishlist it is a feature, we want to enable the customers not logged in also can use wishlist and send wishlist to their friends.
zheng.lei
Team Member
Posts: 278
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1

Latest Blog Post

Online store that you may have the best shopping experience

Which online store do you have the best shopping experience at?The design style is your cup of tea? You love ...

Blog | Yvonne Chen | Friday, 3 September 2010

More in: About Us

-
+
3

contact_us

Elootec
Qingyang Road 333 Wuxi
Jiangsu Province 214023 P.R.China
+86-510-85756831
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Receive HTML?