[Skip to main content](#vessel-content)

#   Version tag in the source files

##

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago [\#2322](#2322) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  *[Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2322 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")* was created by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")*

Hi,
I'm upgrading my modified v1.3.6 to 1.3.7.

I have modified core files, so I need to merge the changes, I cannot just overwrite everything ![:(](/media/kunena/emoticons/22.png ":(")

Version tags("* @version 1.3.7") in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago [\#2324](#2324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2324 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

Hi,

We are just following Joomla's best practices on file headers: [ docs.joomla.org/Extensions\_GPL\_notices](http://docs.joomla.org/Extensions_GPL_notices)

With HikaShop, you can override all the views via the Display-&gt;Views menu. When you do your changes that way, you keep all your modifications after an update. Same for the CSS. If you edit it via the configuration-&gt;display interface, you won't loose your changes during an update.

So if you did your changes that way, you shouldn't loose anything when you update. That's the whole point of following joomla MVC structure: [ docs.joomla.org/Understanding\_Output\_Overrides](http://docs.joomla.org/Understanding_Output_Overrides)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago [\#2327](#2327) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  Replied by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2327 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

**nicolas wrote:**

> Hi,
>
> We are just following Joomla's best practices on file headers: [ docs.joomla.org/Extensions\_GPL\_notices](http://docs.joomla.org/Extensions_GPL_notices)
>
> With HikaShop, you can override all the views via the Display-&gt;Views menu. When you do your changes that way, you keep all your modifications after an update. Same for the CSS. If you edit it via the configuration-&gt;display interface, you won't loose your changes during an update.
>
> So if you did your changes that way, you shouldn't loose anything when you update. That's the whole point of following joomla MVC structure: [ docs.joomla.org/Understanding\_Output\_Overrides](http://docs.joomla.org/Understanding_Output_Overrides)

The problem is I did not only change the design but also changed functionality ![:)](/media/kunena/emoticons/3.png ":)")

For example there was a problem with long product names. If you change product name to a long word, part of the row in the cart does not fit into module. So I had to fix it in php file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago -  15 years 11 months ago [\#2328](#2328) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  Replied by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2328 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

By the way, now I tried it and I was able to reproduce this also on the demo site(so it's not related to my template), change the name of the rubber duck to "rubberduckrubberduck" and you will see that the cross icon is party invisible in the cart.

Here is the change I made. It replaces "rubberduckrubberduck" with "rubberdu."

Feel free to include the code in your next release if you want:

/com_hikashop/views/product/tmpl/cart.php

(Below I replaced php opening/closing tags otherwise the code is not shown) Code:

&lt;a href="?php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.$url_itemid);?" &gt; ?php // Fixes the width proplem when the product name is too long // ------------ $words = explode(" ", $row-&gt;product_name); $count = count($words); for($i=0; $i &lt; $count; $i++) { if(strlen($words[$i]) &lt; 10) { echo $words[$i]; } else { echo substr($words[$i], 0, 9) . "."; } if($i != ($count -1)) echo " "; } // ------------ ?&lt;/a&gt;

Last edit: 15 years 11 months ago by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago [\#2330](#2330) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2330 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

You can go to Display-&gt;Views and edit the file cart of the view product. There, you can put your modification which will stay even after you update.

Between CSS and the override of views, You should be able to customize a lot of stuff without touching 1 core file of HikaShop.

The size of the module column greatly depends on your template so this modification might not be suited for everyone. And since you can easily tweak that in view overrides without having to hack HikaShop's code, I don't think that we will include it. But thanks for posting it. I'm sure other users will find that userful !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")**
- [![LAS&#95;VEGAS's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile") Topic Author
- [ Offline](/forum/user/329-las-vegas)

Less More

- Posts: 12
- Thank you received: 0
-
-

15 years 11 months ago [\#2331](#2331) by [LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")  Replied by *[LAS\_VEGAS](/forum/user/329-las-vegas "View LAS&#95;VEGAS's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2331 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

**nicolas wrote:**

> You can go to Display-&gt;Views and edit the file cart of the view product. There, you can put your modification which will stay even after you update.

I didn't know that, thanks.

But I didn't quite get how my modifications can stay after I update hikashop. Does it mean that the files I've modified won't be updated with the latest changes you made?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

15 years 11 months ago -  15 years 11 months ago [\#2342](#2342) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Version tag in the source files](/forum/2-general-talk-about-hikashop/2322-version-tag-in-the-source-files#2342 "Hi, I'm upgrading my modified v1.3.6 to 1.3.7.  I have modified core files, so I need to merge the changes, I cannot just overwrite everything :(  Version tags(&quot;&#42; @version 1.3.7&quot;) in php files are causing me some trouble. When I compare two folders, it looks like all files has been modifed whereas 99% of the time it is only 1 line change - the version number. I have to go through all files. Is it possible that @version tag is excluded from php files?")*

Yes. When you edit your views that way, the modified files aren't updated.

Last edit: 15 years 11 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzIzMjItdmVyc2lvbi10YWctaW4tdGhlLXNvdXJjZS1maWxlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
