Post by Andy121082 » Mon Jul 14, 2014 7:48 pm

Hi,

I asked my web developers to add some extensions onto my site and they are saying because Im not on the latest software its going to cost £550 to upgrade the settings to upgrade so that they can then add the extensions. I just wanted to check on this Im currently on v1.4.9.5 and i need upgrading to v1.5

Is this correct?

Newbie

Posts

Joined
Mon Jul 14, 2014 7:47 pm

Post by IP_CAM » Mon Jul 14, 2014 9:26 pm

Possibly yes, depending on your existing Software, it would take some time to get everything done. You would possibly be better off, getting some Pro from India / Vietnam or whereever, charging 10 US-Bucks per hour only, it still could add up to 'some' hundred Dollars to completely 'redo' your Place...

Good Luck

Ernie

ipc.li/shop/

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Andy121082 » Mon Jul 14, 2014 9:32 pm

Thanks very much.

Surely open cart can't upgrade the software and force people to have there website rebuilt to be on the latest version.

Newbie

Posts

Joined
Mon Jul 14, 2014 7:47 pm

Post by IP_CAM » Tue Jul 15, 2014 12:09 am

as long as your Software works, there is no need to upgrade, just have it to be upgraded. At least as long as no security-holes exist in your present setup. When it comes to NEW Mod's, not longer available to your OC Version, it may be much easier to 'match' those Mods to your existing OC-Version, instead of 'rewriting' your entire 'Place' to 1.56xx Standards. This is, technically spoken, the least problem, if one knows on how VqMod's 'work'. Just to mention the idea...

Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Andy121082 » Wed Jul 16, 2014 11:10 pm

Hi Ernie,

So I can install extensions on a 1.4.9.5 system that only work on v1.5 without upgrading? How do I match the Mods? Sorry any chance of elaborating. :)

Thanks

Newbie

Posts

Joined
Mon Jul 14, 2014 7:47 pm

Post by IP_CAM » Thu Jul 17, 2014 6:45 am

Just as Sample, I try to explain, how a VqMod works. I removed some lines and concentrate on what's important:

1. For a VqMod, this is the PATH and FILE, where it all happens:

Code: Select all

<file name="catalog/view/theme/default/template/module/latest.tpl">
<operation>

2. This is the ANCHOR-CONTENT, used by the VqMod:

<search position="replace"><![CDATA[

Code: Select all

<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
]]></search>

3. Above is the INSTRUCTION on what to do with the above mentioned ANCHOR CONTENT, (could be ADD (to) AFTER, BEFORE (the ANCHOR CONTENT), or then REPLACE (it)! ) in this case, REPLACING the Line above WITH something, namely the content mentioned below:

<add><![CDATA[

Code: Select all

<?php if($this->customer->isLogged()){ ?><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a><?php }else{ ?><?php echo $product['name']; ?><p>Login to see Price!</p><?php } ?>
]]></add>

telling a visitor to log in first before beeing able to add a Product to the Shopping Cart, from the LATEST ITEMS Section.

</operation>
</file>

That's it.

What it does is, replacing :

Code: Select all

<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
with:

Code: Select all

<?php if($this->customer->isLogged()){ ?><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a><?php }else{ ?><?php echo $product['name']; ?><p>Login to see Price!</p><?php } ?>
---

Depending on the OC-Version used, or then, depending on (former) Modifications, possibly made manually in a source file, a Line like this:

Code: Select all

<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
could eventually look entirely or at least a little different, (depending on OC Version /Custom Template used) i.E., like this:

Code: Select all

<?php echo $product['href']; ?>"> <?php echo $product['name']; ?></a>
<?php echo $product['href']; ?>"><?php echo $product['name']; ?> </a>
 <?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
In ANY CASE, the VqMod in Charge WOULD NOT find a MATCHING line, looked for, because everyone of the above 3 Lines looks a little different, because of 1 space set, somewhere. To make SURE a VQMOD works, it's ANCHOR LINE CONTENT would have to be, at best, COPIED out of the SOURCE FILE related, used in the working Shop-Software, and pasted exactly into the corresponding VQMOD-FIELD, without ANY OPEN blank Field or something else, between:

Code: Select all

[CDATA[here
and 
here]]>
in order to work. NO TAB's as well!!

As you see, it may not be quite as easy as it sounds, because, someone has to KNOW, what those Lines MEAN, in order to implement a VqMod into an older Setup, therefore, if one does not know anything about 'Code', it cannot be done. And if it comes the DB-related VqMod Changes, it can get worse, because not all OC-Version DB's are the same. More, in newer Versions, some VARIABLES/Routines (i.E. <?php if($this->customer->isLogged) may be used, not existing (in exactly the same way of writing), in older OC-Software. Just to mention it as well.

Good Luck

Ernie

PS. This is the VQMOD-Source, used to explain the above, in FULL:

Code: Select all

<modification>

	<id>Add to cart login alert</id>
	<version>1.5.2.1</version>
	<vqmver>1.0</vqmver>
	<author>variuxdavid</author>

	<file name="catalog/view/theme/default/template/module/latest.tpl">
		<operation>
			<search position="replace"><![CDATA[
			<a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
			]]></search>
			<add><![CDATA[
			<?php if($this->customer->isLogged()){ ?><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a><?php }else{ ?><?php echo $product['name']; ?><p>Login to see Price!</p><?php } ?>
			]]></add>
		</operation>
	</file>

</modification>

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by melbagnato » Sun Jul 20, 2014 12:59 am

Hi Andy121082,

Some OpenCart site upgrades can be easier than others. It depends on the age of your version, how much custom code you added, how many extensions you installed (and whether they still exist or have a version that runs on the newest cart), how many products and database records you have (especially given some of the table changes that have occurred).

If you want a second opinion on your site, PM me and I'll take a look for you.

- Mel


Sent from my iPad using Tapatalk

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by Andy121082 » Wed Jul 23, 2014 3:06 am

Thanks guys.

Newbie

Posts

Joined
Mon Jul 14, 2014 7:47 pm
Who is online

Users browsing this forum: No registered users and 7 guests