A few minor problems

  • Posts: 4
  • Thank you received: 0
13 years 2 weeks ago #34531

Hello,

I stumbled upon a few minor problems that I would like some help with:

  • The date display on invoices is currently: 05 January 2012, but I would like to change this to 05-01-2012.
  • I would like to remove the links to product in the shopping cart. I know you have somewhat explained how to do this in the manual, but I think it's from older code because the line of code that you need to change looks different now.
  • Lastly, I would like to remove the links from the checkout process bar. People can click the next step in the process bar even though they haven't entered an shipping adress yet (and the next step button is hidden as well).


If you could help me with any of these, I would very much appreciate it.

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

  • Posts: 83103
  • Thank you received: 13414
  • MODERATOR
13 years 1 week ago #34575

Hi,

1.
You need to edit the file "invoice" of the view "order" of your back end template via the menu Display->Views and change the line:
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>

to:
<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d-%m-%Y ');?><br/>

for the invoice of the back end.

2.
To remove the links to the product pages of products in the cart, you will need to edit the file "cart" of the views "product" and "checkout" for your front end template via the menu Display->Views and change the line:
<a href="<?php echo hikashop_completeLink('product&task=show&cid='.$row->product_id.$url_itemid);?>" ><?php echo $row->product_name; ?></a>
to:
<?php echo $row->product_name; ?>

3.
It the file "step" of the view "checkout" and you need to change the code:
<a href="<?php echo hikashop_completeLink('checkout&task=step&step='.$k.$url_itemid);?>">
<?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?>
</a>

to:

<?php echo JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name));?>

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

  • Posts: 4
  • Thank you received: 0
13 years 1 week ago #34624

Thanks once again for the great support, the changes all work great.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum