problem in set style in the checkout process

  • Posts: 201
  • Thank you received: 7
3 months 3 weeks ago #362356

hi
my problem is a little deep and i can not describe that very good.please look at video

simplified of problem:
state1:
checkout menu item enable
A ) when click on "add to cart" in product page, then redirect to checkout process with default template which set in the checkout menu item.
B ) when click on "pay" in the cart menu item, then redirect to checkout process with default template which set in the checkout menu item.

state2:
checkout menu item disable:
A ) when click on "add to cart" in product page, then redirect to checkout process with default template which set in the hikashop cpanel menu item.
B ) when click on "pay" in the cart menu item, then redirect to checkout process with template set in the cart menu item.

i need state 1 condition (checkout menu item enable) and "B" in the state2 together. how to do that?

look at video:
uupload.ir/view/hikashop_checkout_process_problem_8psv.mp4/
alternative download link:
www.dropbox.com/scl/fi/pcd4n6x67d49w08ka...68v&st=73j694aj&dl=0

if you want test in front-end:

sample product page:
daneh.ir/%D9%84%DB%8C%D8%B3%D8%AA-%D8%A7...87%D9%86%D8%AF%D8%9F

cart menu item in my custom dashboard:
daneh.ir/%D8%B3%D8%A8%D8%AF-%D8%AE%D8%B1...A8%D9%88%D8%B1%D8%AF

Last edit: 3 months 3 weeks ago by sadaf3d.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 months 3 weeks ago #362358

Hi,

There is no mechanism in HikaShop to force different menu items on the checkout based on custom conditions like what you describe.

You would have to write an override of the checkout controller as explained here:
www.hikashop.com/support/documentation/6...ntation.html#classes
There, you can override the show function in order to redirect to different menu item if necessary before calling the parent method.
This requires some strong developer skills.

The following user(s) said Thank You: sadaf3d

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

Time to create page: 0.053 seconds
Powered by Kunena Forum