Create a title for the checkout page

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #17901

My checkout page is not showing any title. I want it to say: "Checkout".

I did include:

<h1>Checkout</h1>
Under the first php tags row in view.html.php, checkout folder, but when i was looking at other pieces of codes (add new address pop up), the title was there...

How and where can i write that title?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 5 months ago #17916

You should not add it to the view.html.php file.
You should go in the menu Display->Views and edit the file step of the view checkout. There, you can add your HTML at the beginning, before anything else.

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

  • Posts: 44
  • Thank you received: 0
13 years 5 months ago #17917

Thanks for the response.

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

  • Posts: 50
  • Thank you received: 0
13 years 1 month ago #28348

Hi Nicolas,
I've added "<h2>Secure Checkout</h2>" to the view "steps" and set "Force a menu on the checkout" to a page type checkout, but don't see a page title for the checkout - this is on the same site as my earlier email smashdeals.com.au,

any suggestions?

Cheers
Chris

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

  • Posts: 50
  • Thank you received: 0
13 years 1 month ago #28349

Looks like none of the views I edit in Display>views make any changes...hmmm

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

  • Posts: 50
  • Thank you received: 0
13 years 1 month ago #28351

Ok this was an OTS Error - I was editing the right views, wrong template!

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

  • Posts: 25
  • Thank you received: 1
13 years 3 weeks ago #28679

How do i make a change that will add a title to the page itself so in the browser (and google analytics) i will see 'sitename : {checkout page title}' ?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 3 weeks ago #28707

You need to edit the file step of the view checkout via the menu Display->Views and you need to add the code:

$doc =& JFactory::getDocument();
$doc->setTitle('sitename : '.JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)));


just before the line:
$class .= ' hikashop_cart_step_current';

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

  • Posts: 25
  • Thank you received: 1
13 years 3 weeks ago #28795

i have enabled (Joomla 1.7.2) for the sitename to be in front of the document title, your code addition removes the sitename, so i have gone with :

$doc =& JFactory::getDocument();
        $conf =& JFactory::getConfig();
        $doc->setTitle($conf->getValue('config.sitename').' - '.JText::_('HIKASHOP_CHECKOUT_'.strtoupper($step_name)));

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

  • Posts: 234
  • Thank you received: 4
6 years 9 months ago #287068

Hello

When I try to save the files with or without changes it just clears all of the code.

How come??

Cheers
Iain

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
6 years 9 months ago #287075

Hi,

This indicates that you have a security extension on your website or a security module on your server which filters the parameters and detect the PHP code of the file and removes it to prevent potential malicious code modifications.
You can either deactivate that security option, or manually create the overrides:
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

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

Time to create page: 0.106 seconds
Powered by Kunena Forum