Post by uksitebuilder » Wed Aug 10, 2011 12:16 am

Simple mod to add a view cart button to the MiniCart in header

Tested on 1.5.x

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Wed Aug 10, 2011 9:29 pm

If you also want to incorporate my fix for Warning the User about entering Vouchers, Coupons and Reward Points to the mini Cart as per this vQmod:
http://forum.opencart.com/viewtopic.php?f=131&t=38144

(which fixes the header Checkout text link)

Download this vQmod Instead of the vQmod in the first post above.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by ninogui » Thu Sep 01, 2011 5:13 pm

Hello Simon

found this last one quite useful

Trying to translate it into portuguese-pt, however when using portuguese-pt through the admin setup, on the shop on the radio button to view cart I always get "button_viewcart" statement instead of 'Ver Carrinho'

<file name="catalog/language/portuguese-pt/portuguese-pt.php">
<operation>
<search position="replace"><![CDATA[$_['button_checkout'] = 'Checkout';]]></search>
<add><![CDATA[$_['button_checkout'] = 'Checkout';
$_['button_viewcart'] = 'Ver Carrinho';]]></add>
</operation>
</file>

using

<file name="catalog/language/english/english.php">

leads to the same result. Would be great to have this on both languages, but if unavailable my choice is of course the local portuguese one

What am I missing here ?


thks

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by SXGuy » Thu Sep 01, 2011 5:36 pm

if you manually add the language text to your language file it will work fine, i dont know why but i have always had probs with vqmod altering the language files.

Active Member

Posts

Joined
Sun Nov 08, 2009 2:07 am

Post by ninogui » Thu Sep 01, 2011 6:08 pm

yes I understand that, but seems to me 'button_viewcart´ does not exist in any language file and is being created locally on the vqmod, that´s why I am unable with my limited knowledge to control its contents, but maybe Simon can help

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by uksitebuilder » Thu Sep 01, 2011 8:13 pm

yes, it is a new definition, so you should be able to just manually add to your language file:

$_['button_viewcart'] = 'Ver Carrinho';

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by ninogui » Fri Sep 02, 2011 4:58 pm

thks a lot Simon!

newbie miss! learning something new everyday though


best rgds

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by jussi » Fri Feb 03, 2012 8:24 pm

Hi, does this work wit 1.5.1.3? It doesn´t show the button and the log says (various URLs but always in the end this): SEARCH NOT FOUND (ABORTING MOD): $_['button_checkout'] = 'Checkout';

Any suggestions?

Newbie

Posts

Joined
Tue Jan 24, 2012 7:57 pm

Post by uksitebuilder » Tue Feb 07, 2012 4:01 pm

I have this working fine in 1.5.1.3, so not sure why it isnt finding the search for you.

Make sure you have the latest vqmod installed.

Maybe you have another vqmod working on the same file/code

Open the vqmod file and check the file it is having problems with and if need be, copy/paste the code you find into the search tag of the vqmod file

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 3 guests