menu link to "my orders"

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #193015

-- HikaShop version -- : [1501262049]

Hi
Is there a way to hide the "my orders" menu link if there are not?
If not, is there a way to redirect to a specific page instead of the shop home?

thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #193027

Hi,

Which "my orders" menu link are you talking about ?
If you have create a Joomla menu ; you can simply manage it in your Joomla menu configuration.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 40
  • Thank you received: 0
9 years 8 months ago #193075

I created a menu item , type hikashop -> order

If no order exists, is there a way to hide it or decide which page to open instead of the shop home-page?

The same ... I'd like to apply to the "check-out" menu type.
Hide it if no order has to be checked-out

Last edit: 9 years 8 months ago by nbstudio.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #193080

Hi,

The easiest way will be to redirect to a specific page instead of hiding the button.
For that, you can edit the view "order / listing" and add this code at the top:

<?php
if(empty($this->rows)){
  $app  = JFactory::getApplication;
  $app->redirect('your_url');
}
?>

For the checkout, the view to edit is "checkout / step". 

http://www.hikashop.com/support/support/documentation/153-customize-the-display.html

Last edit: 9 years 8 months ago by Xavier.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum