Change the 'Display Cart' view

  • Posts: 37
  • Thank you received: 1
11 years 11 months ago #81829

Hi all,

I'd like to know how to change that view of the cart (named 'Display Cart' in HikaShop if I'm correct):
www.benedictecaillat.com/my-cart
(also available in the attached screenshot).

1) Have the 'Proceed to checkout' button available on that view (which I think should be there by default, but may be I'm missing something here)
2) Remove the 'Show the carts' button (I have disable the 'Multi carts' so it really shouldn't be here in my opinion
3) Get a 'Logout' button available (if not here, at least somewhere in the shop).

The most important being the n°1.

Many thanks for your help in advance,
Salutations,

D.

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #81851

Hi,

For 1) and 2) you can edit the view "cart / showcarts" to add a "proceed to checkout" button and remove the "showcarts" link.

The third point is a Joomla option, you can find some modules which allow that on the extensions.joomla.org website.

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

  • Posts: 37
  • Thank you received: 1
11 years 11 months ago #81883

Hi Xavier,

Thanks for your message.
However... I'm ok with CSS, but I'm just ignorant of PHP...

I found the showcarts.php via the Hikashop interface & via the FTP, had a look at it... but I really need step by step instructions here, with the code to place the 'Checkout' button and what to do to disable the 'Show the carts' one.

I'm gonna learn basis of PHP, and getting your detailed input here will help me now as well as in the future, for later change in your system. And hopefully to avoid disturb you for those little things.
But for now, I really need more that just where changes have to be made.

Many thanks in advance for detailed help.

Kind regards,
D

Last edit: 11 years 11 months ago by DomJam. Reason: (forgot details)

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

  • Posts: 37
  • Thank you received: 1
11 years 11 months ago #81993

Hey guys,
Xavier,


Could you help on the below questions, please?
(steps to add the 'Checkout button' and to remove the 'Show the carts' one).

I really need to get this out soon actually, finishing up the shop today...

Many thanks in advance.
Kindly,

D

PS: I bought the 'Business' version and your 'Styles' pack.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #82011

Hi,

For the Proceed to checkout, you can try to add the folowing code:

<?php
$cartClass = hikashop_get('helper.cart');
$this->url_itemid = $Itemid;
echo $cartClass->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'to_checkout',$this->params,hikashop_completeLink('checkout'.$this->url_itemid),'window.top.location=\''.hikashop_completeLink('checkout'.$this->url_itemid).'\';return false;','id="hikashop_add_to_cart_checkout_button"'); ?>

And remove the code:
				<td>
					<?php
						if($cart_type == 'cart'){
					?>
							<a href="<?php echo hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$Itemid); ?>">
								<span class="icon-32-show_cart" title="<?php echo JText::_('DISPLAY_THE_CARTS'); ?>">
								</span>
								<?php echo JText::_('DISPLAY_THE_CARTS'); ?>
							</a>
					<?php
						}elseif($userCurrent == $this->cartVal->user_id){
					?>
							<a href="<?php echo hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$Itemid); ?>">
								<span class="icon-32-show_wishlist" title="<?php echo JText::_('DISPLAY_THE_WISHLISTS'); ?>">
								</span>
								<?php echo JText::_('DISPLAY_THE_WISHLISTS'); ?>
							</a>
					<?php
						}
					?>
				</td>

Last edit: 11 years 11 months ago by Xavier.
The following user(s) said Thank You: DomJam

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

  • Posts: 37
  • Thank you received: 1
11 years 10 months ago #83190

Hey Xavier,

Many thanks again for your answers / solutions. :)
(the only thing: it was the 'showcart' and not the 'showcartS' that has to be modified).

Everything looks the way I want on this screen now.

Thanks again for all advices / instructions.
DomJam

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

Time to create page: 0.083 seconds
Powered by Kunena Forum