- Posts: 3
- Thank you received: 0
Checkout button when items in shopping cart
- webadmin@wsobirds.org
-
Topic Author
- Offline
Less
More
11 years 9 months ago #183387
by webadmin@wsobirds.org
Checkout button when items in shopping cart was created by webadmin@wsobirds.org
-- 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!
-- 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.
11 years 9 months ago #183389
by nicolas
Replied by nicolas on topic Checkout button when items in shopping cart
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.
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.
- webadmin@wsobirds.org
-
Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
11 years 9 months ago #183547
by webadmin@wsobirds.org
Replied by webadmin@wsobirds.org on topic Checkout button when items in shopping cart
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?
Is there another step i should take after enabling the Cart Module?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 9 months ago - 11 years 9 months ago #183554
by Mohamed Thelji
Replied by Mohamed Thelji on topic Checkout button when items in shopping cart
Did you set the "Show proceed button in the cart" option of your cart module to NO ?
Last edit: 11 years 9 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
- webadmin@wsobirds.org
-
Topic Author
- Offline
Less
More
- Posts: 3
- Thank you received: 0
11 years 9 months ago #183735
by webadmin@wsobirds.org
Replied by webadmin@wsobirds.org on topic Checkout button when items in shopping cart
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?
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.
11 years 9 months ago #183766
by Xavier
Replied by Xavier on topic Checkout button when items in shopping cart
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:
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:
Code:
$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.237 seconds