Extra body class based on checkout step

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #280488

Hi,

Would it be possible that hikashop team could add different body class based on checkout step?

1. As for know we have classes in body tag like view-listing, view-checkout... If we could also have some class like "step-1" for step 1 and so on...This would allow to apply different css based on checkout step.

2. Also if we could load this as active variable in template index.php file we could have different modules/blocks based on step.

Example: Right now we use something like this:

$view     = $app->input->getCmd('view', '');
if ($view == 'product') { echo $this['template']->render('checkout-left'); 

If we could check checkout step this would allow to have more customizations....

Can this be done?

I hope you see my point....

Kind Regards

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 6 months ago #280491

Hello,

Body classes are handle by templates.
It's not related to Joomla core or the components.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 1119
  • Thank you received: 114
6 years 6 months ago #280562

Hi,

1. So classes inside body like "view-product" isnt added by hikashop?

2. Then how could have different class based on checkout step?

I thought about using url parameters but looking for better solution.

Thanks

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
6 years 6 months ago #280568

Hello,

1 - I don't understand your question since I gave you an answer.
As I wrote, it's handle by templates. Just take a look at "index.php" file of your template and you'll see !

2 - Clearly not in the body but it can be related to the checkout content view.
Just override the view "checkout / show" to add some extra classes in the main container.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum