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
|
|
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
|
|
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
|
|
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
|
|