Cart title not showing

  • Posts: 151
  • Thank you received: 9
12 years 3 months ago #65713

Hi,

Maybe a stupid question. On my Joomla 1.5 site I got the cart title showing.
On my test Joomla 2.5 site, I don't have the cart title.
I can't remember if it's a setting or a CSS entry (or both)

Please help.

Maurice

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #65773

Hi Maurice,

Did you correctly set your cart title through "Hikashop->Display->content module->'your cart module'" ?

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

  • Posts: 151
  • Thank you received: 9
12 years 3 months ago #65811

Hi Mohamed,

I think so. Please see attached screenshots.
I also checked the lanhuage file:

HIKASHOP_CART_SITE has been filled with a localized text string.

When I compare the live (Joomla 1.5) site and the test (Joomla 2.5) site with FireBug, I also see that the 2.5 site, where the problem occurs, is missing some <fieldset> tags.

Maurice



Attachments:
Last edit: 12 years 3 months ago by Maurice.

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #65822

Hi,

This is not the cart module, you should just edit your cart file of your checkout view of your front-end template that you are currently using.

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

  • Posts: 151
  • Thank you received: 9
12 years 3 months ago #65826

Here two more screenshots of the firebug windows.

Old installation




New installation


Maurice

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
12 years 3 months ago #65830

Like I previously said, you should just edit your cart file of your checkout product view of your front-end template that you are currently using, and use this code for example :

<?php
echo '<br/>YOUR TITLE';
?>
just after this line
<?php
$this->setLayout('listing_price');
$this->params->set('show_quantity_field', 0);
$comp_description = $this->params->get('comp_description');
if(empty($comp_description)){
  $this->params->set('comp_description',JText::_('CART_EMPTY'));
}
Hope this will help you.

Last edit: 10 years 6 months ago by Mohamed Thelji.

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

  • Posts: 10
  • Thank you received: 0
10 years 6 months ago #160436

I'm having the same problem. I tried to enter the php code you recommended into the cart file of the checkout view but got this error message when I tried to view the front end of this page:

Parse error: syntax error, unexpected

Have you any other suggestions?

Surely there must be more simple solution!

:unsure:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #160441

Hello,
Can you show me how did you added the code on the "cart" file of the "product" view of your front-end template ?

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

  • Posts: 10
  • Thank you received: 0
10 years 6 months ago #161129

Mohamed I followed your instructions and added the code you suggested to the cart file in the checkout view of my front end template. See attached screenshot.

Now you mention the cart file of the product view - but this has different code.

:S

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #161151

My bad, if you want to add a text/title at the top of your hikashop cart content module, you'll have to edit the "cart" file of the "product" view of your front-end template, and add that code :

echo '<br/>YOUR TITLE';
just after these lines :
<?php
global $Itemid;
$url_itemid='';

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

  • Posts: 10
  • Thank you received: 0
10 years 6 months ago #161207

Thanks Mohamed...

Your instructions gave me a title in the Cart module, but that wasn't quite what I was after...

I wanted a title for my Checkout page.

But with your help I worked out where I needed to put it.

I had to edit the 'step' file of the 'checkout' view of my front end template. It's far from obvious!

I added

echo '<br/>Checkout';

(my title is 'Checkout')

Just after these lines...
if(!empty($checkout_itemid )){
$Itemid = $checkout_itemid ;
}
$url_itemid='';


Thank you so much for your help... I never would have got there without you!

:cheer:

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

  • Posts: 10
  • Thank you received: 0
10 years 6 months ago #161209

I have also now changed the code

echo '<br/>Checkout';

to

echo '<h1/>Checkout';

So I can now edit the CSS h1 title to make the style fit nicely with my website.

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

  • Posts: 10
  • Thank you received: 0
10 years 6 months ago #161220

An update.

This worked well, but now some other elements on the page are inheriting the CSS from the H1 header on the page. Is there any way in the Hikashop Step file that I could use the code to set a unique selector for my title so that I can apply a style to the H1 heading only using CSS?

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

  • Posts: 83041
  • Thank you received: 13405
  • MODERATOR
10 years 6 months ago #161233

The code :
echo '<h1/>Checkout';
is not valid.
It should be:
echo '<h1>Checkout</h1>';

it's probably why it doesn't work properly with the rest of the page.

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

Time to create page: 0.112 seconds
Powered by Kunena Forum