label of steps in checkout progress bar

  • Posts: 10
  • Thank you received: 1
13 years 9 months ago #9384

Hi nicolas; )

first of all,..fantastic support!

i tried to change the labels of the checkoutprogress bar in the language file, but changes not working!
where i have to change?

hope this is possible,..

thanks!




edit: ok solved issue: when i edit the language in hikashop configuration then my changes are displayed. but when i edit the file de-DE.com_hikashop, changes are not displayed.

help?

Attachments:
Last edit: 13 years 9 months ago by maekz.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 9 months ago #9400

Well, hikashop just changes the de-DE.com_hikashop.ini file so if you change that file it should be the same.
Indeed, you just have to go in the config under the tab languages and edit your language file and override the labels there.

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

  • Posts: 39
  • Thank you received: 3
7 years 7 months ago #267892

Hi Nicolas,

This is very old topic, but looks like I just found a bug with step labeling in the latest 3.0.1 Starter version.

"Cart Status" label in Checkout Workflow in the back-end is translated into "Cart" at front-end. It looks like you have somewhere HIKASHOP_CHECKOUT_CART instead of HIKASHOP_CHECKOUT_CART_STATUS. Changing HIKASHOP_CHECKOUT_CART in language file affects both labels at front-end, while changing HIKASHOP_CHECKOUT_CART_STATUS has no effect at all. See attached screenshot; I renamed "Card Status" into "Review"

I'd appreciate if you advise which file to update to fix this.

Thanks.
Best regards,
B.G.

Attachments:
Last edit: 7 years 7 months ago by lmcbmai.

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

  • Posts: 39
  • Thank you received: 3
7 years 7 months ago #267934

I found the place in the code causing this and updated it, but not sure if this change will affect anything else.

I commented out line 82 in /administrator/components/com_hikashop/helpers/checkout.php file
$c = 'cart';

This caused the step to be displayed as "Cart status". Then I discovered that at the back-end the language constant for cart status is HIKASHOP_CHECKOUT_CART_STATUS, while at front-end it is HIKASHOP_CHECKOUT_CARTSTATUS. I created overrides for both constants and it appears right now.

What still puzzles me a bit is - commented out line is in loadWorkflowLegacy function while my "Checkout legacy" configuration setting is set to "No". So technically it should not be called, unless the call comes from "Add to cart legacy" setting, which I have set to "Yes".

In any case, it is (hopefully) working correctly now :)

Thanks.
B.G.

Last edit: 7 years 7 months ago by lmcbmai.

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

  • Posts: 39
  • Thank you received: 3
7 years 7 months ago #267935

Ouch, not good. The Cart now disappeared under Cart Status step :(

Last edit: 7 years 7 months ago by lmcbmai.

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

  • Posts: 39
  • Thank you received: 3
7 years 7 months ago #267945

Added "dirty fix" to checkout /show_block_bar.php view :huh:

if($k == 4) {
    $name = JText::_('HIKASHOP_CHECKOUT_CART_STATUS');
}

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #267898

Hi,

It's actually not a bug. The thing is that with the new checkout, the "cart status" and "cart" views of the checkout workflow actually use the same code. The goal is to actually redo the checkout configuration tab of the HikaShop configuration to have options directly for each view you add to your steps. That way, the "quantity can be changed or not" setting of the cart view will allow you choose if the "cart" view should have inputs for the quantities or not.
Now, we'll probably add a field to be able to change the label of the steps so that won't be a problem.

For now, I would require to add a "status" view at the top of the last step so that you can use its label and use CSS to hide it, with something like that:
stackoverflow.com/questions/18772494/how...st-element-of-a-type

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

  • Posts: 39
  • Thank you received: 3
7 years 7 months ago #267979

Thanks Nicolas. Yes I realized that you are reusing code and switching card into readonly mode.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum