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

#   Watermark

##

- **[piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")**
- [![piotreczek100's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30372-piotreczek100 "View piotreczek100's Profile") Topic Author
- [ Offline](/forum/user/30372-piotreczek100)

Less More

- Posts: 32
- Thank you received: 0
-
-

11 years 11 months ago [\#182327](#182327) by [piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")  *[Watermark](/forum/26-product-category-display/873470-watermark#182327 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")* was created by *[piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")*

-- Joomla version -- : 3.3.6

Welcome
Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left.
Please help.
Yours
Peter

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#182351](#182351) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#182351 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Hi,

This will require the edition of the image helper, a core file.
The values to change are "$dest_x" and "$dest_y".

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

- **[piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")**
- [![piotreczek100's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/30372-piotreczek100 "View piotreczek100's Profile") Topic Author
- [ Offline](/forum/user/30372-piotreczek100)

Less More

- Posts: 32
- Thank you received: 0
-
-

11 years 11 months ago [\#182419](#182419) by [piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")  Replied by *[piotreczek100](/forum/user/30372-piotreczek100 "View piotreczek100's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#182419 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

And where can I find it? wherein the file?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 10 months ago [\#182615](#182615) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#182615 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Hi,

The file is "administrator/components/com_hikashop/helpers/image.php"

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

- **[toolie](/forum/user/7581-toolie "View toolie's Profile")**
- [![toolie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-21.png)](/forum/user/7581-toolie "View toolie's Profile")
- [ Offline](/forum/user/7581-toolie)

Less More

- Posts: 54
- Thank you received: 1
-
-

11 years 10 months ago [\#184943](#184943) by [toolie](/forum/user/7581-toolie "View toolie's Profile")  Replied by *[toolie](/forum/user/7581-toolie "View toolie's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#184943 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Xavier, changes to this file would be overwritten with updates to Hikashop, correct? Is it possible to add that file to our template so that Joomla uses it instead? Or should we just plan to update the file after we update Hikashop?

Toolie

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 10 months ago [\#184987](#184987) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#184987 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Hi,

That's right.

To override an HikaShop class (or helper), you can create an "image.override.php" in the folder :
YOUR_FRONT_END_TEMPLATE/html/com_hikashop/administrator/helpers/

With the code Code:

include_once $originalFile; class hikashopImageHelperOverride extends hikashopImageHelper { }

You can re-declare just the function you want thanks to PHP extends.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[toolie](/forum/user/7581-toolie "View toolie's Profile")**
- [![toolie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-01-21.png)](/forum/user/7581-toolie "View toolie's Profile")
- [ Offline](/forum/user/7581-toolie)

Less More

- Posts: 54
- Thank you received: 1
-
-

11 years 10 months ago -  11 years 10 months ago [\#185074](#185074) by [toolie](/forum/user/7581-toolie "View toolie's Profile")  Replied by *[toolie](/forum/user/7581-toolie "View toolie's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#185074 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

OK, to be clear, I've created an empty file called image.php and put it here. Code:

/MYTEMPLATE/com_hikashop/administrator/helpers/

Into that file I added the usual: Code:

&lt;?php defined('_JEXEC') or die('Restricted access');

Then Code:

include_once "/administrator/components/com_hikashop/helpers/image.php";

followed by a copy of the function in question: Code:

class hikashopImageHelperOverride extends hikashopImageHelper { function _resizeImage($file_path, $newWidth, $newHeight, $dstFolder = '', $type = 'thumbnail', $watermark = '') { ...full copy of the main function code with changes goes here ... } } ?&gt;

Does that look right?

Toolie

Last edit: 11 years 10 months ago by [toolie](/forum/user/7581-toolie "View toolie's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 10 months ago [\#185077](#185077) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#185077 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Hi,

No...
1/ Path is no the right one ; please check my previous post.
2/ include is not right ; please use the code I provide in my previous post ; Just need to copy past, no need to improvise.

But for the rest, the override class looks good.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[cworthen75](/forum/user/57545-cworthen75 "View cworthen75's Profile")**
- [![cworthen75's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57545-cworthen75 "View cworthen75's Profile")
- [ Offline](/forum/user/57545-cworthen75)

Less More

- Posts: 27
- Thank you received: 0
-
-

6 years 10 months ago [\#314298](#314298) by [cworthen75](/forum/user/57545-cworthen75 "View cworthen75's Profile")  Replied by *[cworthen75](/forum/user/57545-cworthen75 "View cworthen75's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#314298 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

would you always create it in this folder even if you were over riding a class rather than a helper?
"YOUR_FRONT_END_TEMPLATE/html/com_hikashop/administrator/helpers/"
or if it was a class would it be YOUR_FRONT_END_TEMPLATE/html/com_hikashop/administrator/class/

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzM0NzAtd2F0ZXJtYXJrP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86357
- Thank you received: 14289
-
-

6 years 10 months ago [\#314305](#314305) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Watermark](/forum/26-product-category-display/873470-watermark#314305 "-- Joomla version -- : 3.3.6  Welcome Customer page, and I do have a question. How to change the position of the watermark on the pictures? At the moment, are recorded on the bottom right, the client wants her to be on the top left. Please help. Yours Peter")*

Hi,

It would be YOUR_FRONT_END_TEMPLATE/html/com_hikashop/administrator/classes/

The following user(s) said Thank You: [cworthen75](/forum/user/57545-cworthen75 "View cworthen75's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzM0NzAtd2F0ZXJtYXJrP3RtcGw9bWFya2Rvd24=) 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.090 seconds

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