Skip to main content

temporary checkout redirect

More
10 years 3 months ago #244746 by ronron
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

is it possible to temporarily disable the checkout process? i would like site users to view the site but not checkout as it is not yet finish. Can i disable or redirect it temporarily to a page?

thanks again

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

More
10 years 3 months ago #244747 by nicolas
Replied by nicolas on topic temporary checkout redirect
Hi,

Yes. Edit the file "step" of the view "checkout" via the menu Display>Views add add such code at the top:
Code:
Checkout is disabled<?php return; ?>

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

More
10 years 3 months ago #244818 by ronron
Replied by ronron on topic temporary checkout redirect
hi

can we redirect it to a page? or article?

thanks

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

More
10 years 3 months ago #244820 by Mohamed Thelji
Hello,

Using some code like this will probably do the job :
Code:
$app = JFactory::getApplication(); $ App-> redirect ( 'Your_URL');
The following user(s) said Thank You: ronron

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

More
10 years 3 months ago - 10 years 3 months ago #245761 by ronron
Replied by ronron on topic temporary checkout redirect
hi

Its working .

Anothe question of mine. How can u disable checkout for products or suppliers based on a custom field.

Example:

custom field = allow checkout = yes button
Do not Allow = No button

So if do not allow is checked / ticked it will be redirected to the page i created.

thanks
Last edit: 10 years 3 months ago by ronron.

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

More
10 years 3 months ago #245807 by nicolas
Replied by nicolas on topic temporary checkout redirect
Hi,

You need to load the list of products of the cart, loop through them to check the value of a custom product field for each one of them:
www.hikashop.com/support/documentation/6...umentation.html#code
The following user(s) said Thank You: ronron

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

Time to create page: 0.103 seconds
Powered by Kunena Forum