Empty cart and forced login

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #217497

-- url of the page with the problem -- : www.elbertbos.nl
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.41-1
-- Browser(s) name and version -- : all

Hi,

I have a menu item, "Cart", which displays the current cart when clicked.
When the cart is empty, it displays a login.
Is there a way to avoid that and simply show a message like "Cart is empty"?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #217500

Hi,

It seems that you have an oldest version of the view "cart / showcart", please do a backup of that view and then remove the override.
www.hikashop.com/support/documentation/1...ize-the-display.html

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #217575

Hi,

That implies I will loose all of the editing I made in that file?

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #217576

Hi
Well I did it anyway and it seems to work fine.
The only thing is that I have lost the word "Delete" in the cart view.
I placed

$this->params->set('show_delete',1);
in the view again and I have the delete button but not the text.
If you need backend access, I already send that (#217400).

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #217581

It used to work for a short period. I did nothing but I have the login back again.
How is this possible?

Last edit: 9 years 1 month ago by elbertbos. Reason: wrong formatting

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #217955

????

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #217986

Hi,

Are you sure that the edited view has not been put back ?
Regading the delete text, it was certainly an override, so you have to replace the line:

<img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" />
By:
<?php echo JText::_('HIKA_DELETE'); ?>
in that view.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #218032

Hi,

I replaced the code with the result that the delete button is replaced by the text "Delete" and that the text in the table header is still not visible.
As for removing the override, I clicked the bin button right to the showcart view in the overview of the views.
Did I do anything wrong here?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #218042

Hi,

My bad, I think I misunderstood, I was thinking that you wanted to replace the delete icon by a simple delete text.
So if you don't have the delete column that's because the registered user is not the owner of the cart.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #218186

Hi,

I solved the problem of the unwanted login and got the delete button back again.
What I'm still missing is the delete title. Is there a way to make that visible?
Since I do have the button (working) I doubt it has anything to do with ownership of the cart.

Please Log in or Create an account to join the conversation.

  • Posts: 43
  • Thank you received: 0
9 years 1 month ago #218314

All problems solved. Thanks for the help.

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum