Skip to main content

Cart title not showing

More
14 years 2 weeks ago #65713 by Maurice
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.

More
14 years 2 weeks ago #65773 by Mohamed Thelji
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.

More
14 years 2 weeks ago - 14 years 2 weeks ago #65811 by Maurice
Replied by Maurice on topic Re: Cart title not showing
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


Last edit: 14 years 2 weeks ago by Maurice.

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

More
14 years 2 weeks ago #65822 by Mohamed Thelji
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.

More
14 years 2 weeks ago #65826 by Maurice
Replied by Maurice on topic Re: Cart title not showing
Here two more screenshots of the firebug windows.

Old installation



New installation


Maurice

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

More
14 years 2 weeks ago - 12 years 3 months ago #65830 by Mohamed Thelji
Like I previously said, you should just edit your cart file of your [strike]checkout[/strike] product view of your front-end template that you are currently using, and use this code for example :
Code:
<?php echo '<br/>YOUR TITLE'; ?>
just after this line
Code:
<?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: 12 years 3 months ago by Mohamed Thelji.

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

More
12 years 3 months ago #160436 by claratuckbones
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.

More
12 years 3 months ago #160441 by Mohamed Thelji
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.

More
12 years 3 months ago #161129 by claratuckbones
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

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

More
12 years 3 months ago #161151 by Mohamed Thelji
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 :
Code:
echo '<br/>YOUR TITLE';
just after these lines :
Code:
<?php global $Itemid; $url_itemid='';

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

More
12 years 3 months ago #161207 by claratuckbones
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.

More
12 years 3 months ago #161209 by claratuckbones
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.

More
12 years 3 months ago #161220 by claratuckbones
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.

More
12 years 3 months ago #161233 by nicolas
Replied by nicolas on topic Cart title not showing
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.260 seconds
Powered by Kunena Forum