Post by hm2k » Wed Mar 12, 2008 9:14 am

I think the sidebar is missing an option to "View Cart", so I added it...

Open \catalog\language\english\module\cart.php
Under:
$_['text_subtotal']  = 'Subtotal:';
Add:
$_['text_view_cart']  = 'View Cart';

Open \catalog\extension\module\cart.php
Under:
$view->set('text_subtotal', $language->get('text_subtotal'));
Add:
$view->set('text_view_cart', $language->get('text_view_cart'));
$view->set('view_cart', $url->href('cart'));

Open \catalog\template\samurai\module\cart.tpl
Under:

Add:
">

----

Please consider for core inclusion.
Last edited by hm2k on Thu Jun 26, 2008 7:46 pm, edited 1 time in total.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by lev » Wed Apr 30, 2008 10:56 pm

i agree.. i did the same!

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by jamble » Sat May 10, 2008 5:52 pm

Me too, I added a link to view basket and checkout in the same way.

Newbie

Posts

Joined
Thu May 08, 2008 11:08 pm

Post by dr770 » Mon May 12, 2008 5:24 pm

i also did like this, but strange, it shows text for $_['text_view_cart'] only in /index.php/controller/cart. in other pages only text_view_cart.

Some ideas, whats goes wrong?

New member

Posts

Joined
Mon Oct 15, 2007 1:53 am

Post by mcphearson » Mon Jun 09, 2008 5:20 am

Fixed it

When you edit \catalog\extension\module\cart.php

Under this line:
  $view->set('text_subtotal', $language->get('text_subtotal'));

Add these two lines:
  $view->set('text_view_cart', $language->get('view cart'));
  $view->set('view_cart', $url->href('cart'));


Now "view cart" will show not "text_view_cart"
Last edited by mcphearson on Mon Jun 09, 2008 5:30 am, edited 1 time in total.

User avatar
Newbie

Posts

Joined
Mon Jun 09, 2008 2:05 am


Post by hm2k » Thu Jun 26, 2008 7:39 pm

mcphearson wrote: Fixed it

When you edit \catalog\extension\module\cart.php

Under this line:
  $view->set('text_subtotal', $language->get('text_subtotal'));

Add these two lines:
  $view->set('text_view_cart', $language->get('view cart'));
  $view->set('view_cart', $url->href('cart'));


Now "view cart" will show not "text_view_cart"



If you are seeing this error you have not updated the language file correctly.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by fido-x » Thu Jul 31, 2008 6:21 pm

The language file that should have been updated is "catalog/language/english/extension/module/cart.php". In this file you should add a line that reads:

Code: Select all

$_['text_view_cart'] = 'View Cart';
Then things should work they way they are supposed to.

Regards, Fido-X.

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia
Who is online

Users browsing this forum: No registered users and 2 guests