Skip to main content

Empty cart and forced login

More
10 years 11 months ago #217497 by elbertbos
-- 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.

More
10 years 11 months ago #217500 by Xavier
Replied by Xavier on topic Empty cart and forced login
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.

More
10 years 11 months ago #217575 by elbertbos
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.

More
10 years 11 months ago #217576 by elbertbos
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
Code:
$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.

More
10 years 11 months ago - 10 years 11 months ago #217581 by elbertbos
It used to work for a short period. I did nothing but I have the login back again.
How is this possible?
Last edit: 10 years 11 months ago by elbertbos. Reason: wrong formatting

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

More
10 years 11 months ago #217955 by elbertbos
????

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

More
10 years 11 months ago #217986 by Xavier
Replied by Xavier on topic Empty cart and forced login
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:
Code:
<img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" />
By:
Code:
<?php echo JText::_('HIKA_DELETE'); ?>
in that view.

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

More
10 years 11 months ago #218032 by elbertbos
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.

More
10 years 11 months ago #218042 by Xavier
Replied by Xavier on topic Empty cart and forced login
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.

More
10 years 11 months ago #218186 by elbertbos
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.

More
10 years 11 months ago #218314 by elbertbos
All problems solved. Thanks for the help.

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

Time to create page: 0.301 seconds
Powered by Kunena Forum