TomatoCart

65338 Downloads
548 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

2-3 bugs
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: 2-3 bugs
#2138
2-3 bugs 1 Year, 6 Months ago Karma: 2
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 Year, 6 Months ago Karma: 12
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
Gold Boarder
Posts: 183
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 Year, 6 Months ago Karma: 2
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 11:30 By hack346.
I convert (create) themes for Tomatocart
The administrator has disabled public write access.
 
#2145
Re:2-3 bugs 1 Year, 6 Months ago Karma: 12
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
Gold Boarder
Posts: 183
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 Year, 6 Months ago Karma: 29
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: 461
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to top Page: 1

Latest Blog Post

TomatoCart v2.0 – An open source ecommerce framework

Since the TomatoCart v1.0’s framework getting old and the core is not a pure MVC design, it causes many troubles ...

Blog | Administrator | Saturday, 21 January 2012

More in: About Us

-
+
3

contact_us

TomatoCart
+86-13771170725
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Verification Code:
Captcha

Receive HTML?