- Posts: 44
- Thank you received: 0
Create a title for the checkout page
15 years 5 months ago #17901
by gerard_pp
Create a title for the checkout page was created by gerard_pp
My checkout page is not showing any title. I want it to say: "Checkout".
I did include:
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?
I did include:
Code:
<h1>Checkout</h1>
How and where can i write that title?
Please Log in or Create an account to join the conversation.
15 years 5 months ago #17916
by nicolas
Replied by nicolas on topic Re: Create a title for the checkout page
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.
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.
15 years 5 months ago #17917
by gerard_pp
Replied by gerard_pp on topic Re: Create a title for the checkout page
Thanks for the response.
Please Log in or Create an account to join the conversation.
15 years 1 week ago #28348
by ClickWebDesign
Replied by ClickWebDesign on topic Re: Create a title for the checkout page
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
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.
15 years 1 week ago #28349
by ClickWebDesign
Replied by ClickWebDesign on topic Re: Create a title for the checkout page
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.
15 years 1 week ago #28351
by ClickWebDesign
Replied by ClickWebDesign on topic Re: Create a title for the checkout page
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.
15 years 1 week ago #28679
by BigDutch
Replied by BigDutch on topic Re: Create a title for the checkout page
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.
15 years 1 week ago #28707
by nicolas
Replied by nicolas on topic Re: Create a title for the checkout page
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';
$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.
15 years 1 week ago #28795
by BigDutch
Replied by BigDutch on topic Re: Create a title for the checkout page
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 :
Code:
$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.
8 years 9 months ago #287068
by mad-q
Replied by mad-q on topic Re: Create a title for the checkout page
Hello
When I try to save the files with or without changes it just clears all of the code.
How come??
Cheers
Iain
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.
8 years 9 months ago #287075
by nicolas
Replied by nicolas on topic Re: Create a title for the checkout page
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
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.101 seconds