How to view wishlist without register/login

Tagged: 

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeHow to view wishlist without register/login

This topic has been marked as resolved.

Hello Themeburn,

I want allow adding products into wishlist without need to register or login. I have found a partly solution for this issue http://forum.opencart.com/viewtopic.php?f=20&t=59487. This allows to save an item without being registered or logged in. The problem is I still get the pop-up window in the top-right corner that says: failure you must login or create account…
Could you help me to solve this issue?

Thanks,
Marko

February 24, 2013 at 10:12 pm #19328
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 26, 2013 at 11:16 am #19478

Hi ThemeBurn team,

Thanks for the support!

I have solved it differently. I went to tb_themes/shoppica2/catalog/controller/tbcontroller.php and have changed this line

$json['failure'] = sprintf($this->language->get(‘text_login’), $this->url->link(‘account/login’, ”, ‘SSL’), $this->url->link(‘account/register’, ”, ‘SSL’), $this->url->link(‘product/product’, ‘product_id=’ . $this->request->post['product_id']), $product_info['name'], $this->url->link(‘account/wishlist’));
$json['title'] = $this->tbLang->text_failure;

to

$json['success'] = sprintf($this->language->get(‘text_success’), $this->url->link(‘product/product’, ‘product_id=’ . $product_id), $product_info['name'], $this->url->link(‘account/wishlist’));
$json['title'] = $this->tbLang->text_product_add_wishlist;

It works and hope I haven’t messed something up :)

February 26, 2013 at 11:26 am #19480

Hello Marko,

At second thought, your modification is the correct one, as it turns the failure message to success and not just hides the popup.

Thank you for sharing it :)

Best,
ThemeBurn team

February 28, 2013 at 3:49 pm #19596
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.