Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Store title not shown on checkout and cart pages

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-05-2015, 07:02 AM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Store title not shown on checkout and cart pages

The title of the store "My Store |" is not showing on the Shopping Cart and Checkout pages. It only shows in the main store areas. is there an easy way to correct this?
__________________
V5.2.13
Reply With Quote
  #2  
Old 05-06-2015, 03:01 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Store title not shown on checkout and cart pages

Could you please let me know how did you define the "My Store |" label to show in your titles?
Thank you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #3  
Old 05-06-2015, 04:23 AM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Re: Store title not shown on checkout and cart pages

It seems that xCart gets the <title></title> tags from the "Front Page" section under the "Custom HTML title:" field. This works for the main store pages but the <title></title> tag only displays "Checkout" and "Your Shopping Cart".

What I need is for the Custom HTML title to also show on "Checkout" and Other Cart pages.
__________________
V5.2.13
Reply With Quote
  #4  
Old 05-08-2015, 01:41 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Store title not shown on checkout and cart pages

If you want to achieve this, you should create a new module, decorate the getPageTitle() method of \XLite\Controller\AController class and append returning result with your custom string.

Please, let me know if it makes sense to you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #5  
Old 05-08-2015, 12:50 PM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Re: Store title not shown on checkout and cart pages

What is " append returning result with your custom string" sorry for the confusion. I have everything else done.
__________________
V5.2.13
Reply With Quote
  #6  
Old 05-08-2015, 04:43 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Store title not shown on checkout and cart pages

Return the string you want in the getPageTitle() method.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 05-15-2015, 04:37 AM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Re: Store title not shown on checkout and cart pages

Ok, I can't seem to get this to populate the title on the checkout page. Here is the code i have so far.

Code:
namespace XLite\Module\MyModule\MyFolder\Controller\AController; abstract class AController extends \XLite\Controller\AController implements \XLite\Base\IDecorator { public function getPageTitle() { return $this->getMainTitle("Store Title"); } }
__________________
V5.2.13
Reply With Quote
  #8  
Old 05-17-2015, 10:48 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Store title not shown on checkout and cart pages

Wouldn't your namespace be:
namespace XLite\Module\MyModule\MyFolder\Controller

Your file name AController.php would reside in the XLite\Module\MyModule\MyFolder\Controller\ directory.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #9  
Old 05-18-2015, 04:50 AM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Re: Store title not shown on checkout and cart pages

You're right about the namespace. I have changed it but I still can't get the title to populate the checkout page.

Code:
namespace XLite\Module\MyModule\MyFolder\Controller; abstract class AController extends \XLite\Controller\AController implements \XLite\Base\IDecorator { public function getPageTitle() { return $this->getMainTitle("Store Title"); } }
__________________
V5.2.13
Reply With Quote
  #10  
Old 05-18-2015, 05:53 AM
 
skit skit is offline
 

Advanced Member
  
Join Date: Feb 2015
Posts: 40
 

Default Re: Store title not shown on checkout and cart pages

Don't know if this is the best way to do this but here is what worked.

Code:
public function getPageTitle() { return ("Store Title | ") . $this->getMainTitle(); }
__________________
V5.2.13
Reply With Quote

The following 2 users thank skit for this useful post:
tony_sologubov (05-27-2015), totaltec (05-18-2015)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:08 AM.

   

 
X-Cart forums © 2001-2020