Community Forums

VQmod Cart to Bag for 1.5.2.1

Put any free vQmod scripts here.
vQmod details

VQmod Cart to Bag for 1.5.2.1

Postby TechSitement » Sat Mar 31, 2012 2:11 am

Does anyone know if there is still a vqmod that allows you to change the term "Shopping Cart" to "Shopping Bag" everywhere it appears in OC? I was using a version compatible with 1.5.1.3, but it is not working with version 1.5.2.1. I have searched and I can only find directions to change coding manually in the various php files. ??? I don't even see the vqmod version that I already have (df-cart-to-bag.xml) in the extensions section.

I'd appreciate knowing if it no longer exists, in which case I will go ahead and do it manually. Or even better yet, can someone can point me in the right direction on how to modify the existing vqmod to make it work with 1.5.2.1? I tried without success.
Thanks in advance!
Awali Art
Original Imported Fine Art
Store Front
Facebook
Twiter
YouTube
User avatar
TechSitement
 
Posts: 14
Joined: Tue Oct 04, 2011 6:41 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby TechSitement » Tue Apr 03, 2012 8:30 am

With no response on the Cart to Bag vqmod, I decided to tinker with the old mod myself. I found a couple of instances where some language needed to be changed to match the structure of 1.5.2.1. Everything looks like it SHOULD work, but the mod still only changes the buttons from *add to cart* to *add to bag*. All other language instances remain unchanged, and I can't for the life of me figure out why. The vqmod error log reports as follows:

(....SEARCH NOT FOUND (ABORTING MOD): $_['text_shopping_cart'] = 'Shopping Cart';)

It's looking for the exact same code that is in "catalog/language/english/common/header.php"

Can anyone tell what is be wrong with the code? Here is a sample of the 1st 3 tasks. It changes the button text, but nothing else even though the rest follows the same structure.

Code: Select all
<file name="catalog/language/english/english.php">
      <operation>
      <search position="replace"><![CDATA[ $_['button_cart']           = 'Add to Cart';
      ]]></search>
      <add><![CDATA[ $_['button_cart']           = 'Add to Bag';
      ]]></add>
      </operation>
   </file>   
      
<file name="catalog/language/english/common/header.php">
      <operation>
      <search position="replace"><![CDATA[ $_['text_shopping_cart']     = 'Shopping Cart';
      ]]></search>
      <add><![CDATA[ $_['text_shopping_cart']     = 'Shopping Bag';
      ]]></add>
      </operation>
   </file>
   <file name="catalog/language/english/checkout/cart.php">
      <operation>
      <search position="replace"><![CDATA[ $_['heading_title']   = 'Shopping Cart';
      ]]></search>
      <add><![CDATA[ $_['heading_title']   = 'Shopping Bag';
      ]]></add>
      </operation>
   </file>   
Awali Art
Original Imported Fine Art
Store Front
Facebook
Twiter
YouTube
User avatar
TechSitement
 
Posts: 14
Joined: Tue Oct 04, 2011 6:41 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby MrTech » Wed Apr 04, 2012 9:28 pm

Open the file it calls and try to find the code in the file. If you can't, then it most likely has been changed slightly and you'll need to compensate for that.
~
Image for OpenCart (NEW v2.0) Professional Newsletter & Auto-Responder System
Don't leave money on the table, capturing email addresses is basic business 101.

Profitable Product Pages It's Not a Template... Not a Theme... Just Different
Takes your product pages and turns them on their head and it adds a pop-up QR Code too !!
~
User avatar
MrTech
 
Posts: 309
Joined: Mon Jan 09, 2012 6:39 am
Location: Canada, Eh!

Re: VQmod Cart to Bag for 1.5.2.1

Postby TechSitement » Fri Apr 06, 2012 2:22 am

MrTech wrote:Open the file it calls and try to find the code in the file. If you can't, then it most likely has been changed slightly and you'll need to compensate for that.

Thanks MrTech. I did that already and made what I thought were the necessary changes, but it still doesn't work. I went and chanced the language files manually since I couldn't figure it out.
Awali Art
Original Imported Fine Art
Store Front
Facebook
Twiter
YouTube
User avatar
TechSitement
 
Posts: 14
Joined: Tue Oct 04, 2011 6:41 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Sun Apr 08, 2012 2:27 am

This would be so very useful as I have changed cart to basket so when I installed the latest OC back came cart, so a vQmod to make this a non problem in the future would be fantastic.

I will keep my fingers crossed that someone will help on this.
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Out2lunch » Tue Apr 10, 2012 9:15 am

Klimskady wrote:This would be so very useful as I have changed cart to basket so when I installed the latest OC back came cart, so a vQmod to make this a non problem in the future would be fantastic.

I will keep my fingers crossed that someone will help on this.


Its already been made, I updated it for 1.5.2.1 with the original creators consent...

viewtopic.php?f=131&t=41119

Scroll down and look for my mod...
Out2lunch
 
Posts: 67
Joined: Wed Jun 29, 2011 1:32 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Tue Apr 10, 2012 6:30 pm

Out2lunch wrote:
Klimskady wrote:This would be so very useful as I have changed cart to basket so when I installed the latest OC back came cart, so a vQmod to make this a non problem in the future would be fantastic.

I will keep my fingers crossed that someone will help on this.


Its already been made, I updated it for 1.5.2.1 with the original creators consent...

viewtopic.php?f=131&t=41119

Scroll down and look for my mod...


Excellent! I hadn't seen that thread before so thanks for pointing it out and updating it to 1.5.2.1
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Wed Apr 11, 2012 12:41 am

Out2lunch wrote:
Its already been made, I updated it for 1.5.2.1 with the original creators consent...

viewtopic.php?f=131&t=41119

Scroll down and look for my mod...


I have installed the vQmod but I use the Shoppica theme and some instances of cart is still appearing, I have looked at the coding in the vQmod and tried to change the find sections to match what I have but its not working, when I add the section do I have to avoid the putting the full part of this $_['button_cart'] and just put 'button_cart' instead?

All help gratefully received as I am learning as I go!
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Wed Apr 11, 2012 12:59 am

To add a little more info I have this that I will need to change

$_['shoppica_text_cart'] = 'Cart';
$_['shoppica_text_view_cart'] = 'View Cart';
$_['shoppica_text_title_add_cart'] = 'Product added to Cart!';
$_['shoppica_text_add_cart'] = '<a href="%s"><strong>%s</strong></a><br /> added to <a href="%s">shopping cart</a>!';
$_['shoppica_text_title_remove_cart'] = 'Product removed from Cart!';
$_['shoppica_text_remove_cart'] = '<a href="%s"><strong>%s</strong></a><br /> removed from <a href="%s">shopping cart</a>!';

So I have added some section to the vQmod

Code: Select all
<file name="catalog/language/english/module/shoppica.php">
      <operation>
      <search position="replace"><![CDATA[Cart]]></search>
      <add><![CDATA[Basket]]></add>
      </operation>
   </file>
   <file name="catalog/language/english/module/shoppica.php">
      <operation>
      <search position="replace"><![CDATA[View Cart]]></search>
      <add><![CDATA[View Basket]]></add>
      </operation>
   </file>
   <file name="catalog/language/english/module/shoppica.php">
      <operation>
      <search position="replace"><![CDATA[Product added to Cart]]></search>
      <add><![CDATA[Product added to Basket]]></add>
      </operation>
   </file>
   <file name="catalog/language/english/module/shoppica.php">
      <operation>
      <search position="replace"><![CDATA[<a href="%s">shopping cart</a>]]></search>
      <add><![CDATA[<a href="%s">shopping Basket</a>]]></add>
      </operation>
   </file>


But I am getting this error in vQmod Manager

REQUEST URI : /
MOD DETAILS:
modFile : /home/m24gems/public_html/vqmod/xml/cart_to_basket.xml
id : Cart-to-Basket
version : 1.2
vqmver : 2.1.5
author : Original design by Iain Fergus || Dark Flare Design - Edited for 1.5.2x by Out2lunch
SEARCH NOT FOUND (ABORTING MOD): View Cart

Yet the section View Cart is there?

Hopefully with this extra info I can be pointed in the right direction.
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Thu Apr 12, 2012 10:32 pm

In fact not one part of the added section works which has left me mighty confused! anyone please help?!
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Klimskady » Thu Apr 12, 2012 10:52 pm

By Jove, I think I have got it!

To help anyone else who uses Shoppica and would like the file that alters the remaining instances of cart, here is the file.
Attachments
cart-to-basket-shoppica.xml
(3.09 KiB) Downloaded 38 times
Klimskady
 
Posts: 160
Joined: Mon Jun 06, 2011 11:57 pm

Re: VQmod Cart to Bag for 1.5.2.1

Postby Robertking » Sat May 12, 2012 7:37 am

I will be leaving on the Costa Rica Adventure in a couple of days and was wondering if I should bring a sleeping bag. ???
Robertking
 
Posts: 1
Joined: Sat May 12, 2012 7:35 am


Return to vQmods

Who is online

Users browsing this forum: guldan and 10 guests

Hosted by Arvixe Web Hosting