Checkout button when items in shopping cart

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #183387

-- url of the page with the problem -- : wsobirds.org/hika-shop-test
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.1
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Chrome

On my Product Listing, I want to add a Checkout button when there are items in the shopping cart.

I have a Joomla menu with a HikaShop Product Listing. I click on HikaShop Options and see the Details.

It seems like there should be an option there to display a checkout button if there are items in the shopping card.

Is this the right way to approach it?

I am new to HikaShop.

Thanks!

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 8 months ago #183389

Hi,

You can do that by enabling the HikaShop cart module. The module will display a "proceed to checkout" button when there is at least one product in the cart.

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

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #183547

I enabled the HikaShop Cart Module. This did not make a "proceed to checkout" does not display when I have things in my cart.

Is there another step i should take after enabling the Cart Module?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 8 months ago #183554

Did you set the "Show proceed button in the cart" option of your cart module to NO ?

Last edit: 10 years 8 months ago by Mohamed Thelji.

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

  • Posts: 3
  • Thank you received: 0
10 years 8 months ago #183735

Changing "Show Proceed button in the cart" did not change the display in the product list. Yes and no behaved the same way.

Can a "products listing" menu item show a Checkout button when there are items in the cart?

Is "associated modules" a way to do this?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 8 months ago #183766

Hi,

There is no options for that. If you want a button in a product listing page so you can directly edit the view "product / listing" and add some code to display the "Proceed to checkout" button.

Something like:

$cartClass = hikashop_get('class.cart');
$cart = $cartClass->loadFullCart();
if($cart != null && !empty($cart->products)){
	$cartHelper=hikashop_get('helper.cart');
	$itemid_for_checkout = (int)$this->config->get('checkout_itemid','0');
	if(empty($itemid_for_checkout)){
		$menuClass = hikashop_get('class.menus');
		$itemid_for_checkout = $menuClass->getCheckoutMenuIdForURL();
	}
	if(!empty($itemid_for_checkout)){
		$url_checkout = hikashop_completeLink('checkout&Itemid='.$itemid_for_checkout);
	}else{
		$url_checkout = hikashop_completeLink('checkout'.$url_itemid);
	}
	echo $cartHelper->displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this->params,$url_checkout,'');
}

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

Time to create page: 0.082 seconds
Powered by Kunena Forum