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

#   Override cartnotify plugin

##

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 3 months ago [\#295486](#295486) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295486 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")* was created by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")*

Hi,

is it possible to override the Cartnotify plugin via templates overrides?

Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUyODQtb3ZlcnJpZGUtY2FydG5vdGlmeS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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)
-

8 years 3 months ago [\#295488](#295488) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295488 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hello,

No you can't override that plugin.
But you can "duplicate" it in order to have your own version including your own Javascript.

The goal of notification system is to have different kind of plugins for different features.
Like : [ www.hikashop.com/marketplace/product/120-cartnotify\_slide.html](https://www.hikashop.com/marketplace/product/120-cartnotify_slide.html)

Regards,

---

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

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 3 months ago -  8 years 3 months ago [\#295757](#295757) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295757 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi,

I did that.

I have some issues though. Why on all the options of a product except the first one the price is displayed on title when the option is selected.

Please see:

When first option is added to cart:
[ ![screen2&#95;2018-07-23.png](/forum/attachment/44314) ](/forum/attachment/44314 "...2018-07-23.png")

When second or any other option is added to cart:
[ ![screen1&#95;2018-07-23.png](/forum/attachment/44313) ](/forum/attachment/44313 "...2018-07-23.png")

My problem is on the add to cart popup where the same is happening with the title. I've modified successfully the code to display the pop-up as I wanted but I have no price displayed for first option.

Please see:

When first option is added to cart:
[ ![screen3&#95;2018-07-23.png](/forum/attachment/44316) ](/forum/attachment/44316 "...2018-07-23.png")

When second or any other option is added to cart:
[ ![screen4&#95;2018-07-23.png](/forum/attachment/44315) ](/forum/attachment/44315 "...2018-07-23.png")

thanks!

- [ ![screen1&#95;2018-07-23.png](/forum/attachment/44313) ](/forum/attachment/44313 "...2018-07-23.png") [ ](/forum/attachment/44313?download=1 "...2018-07-23.png")
- [ ![screen2&#95;2018-07-23.png](/forum/attachment/44314) ](/forum/attachment/44314 "...2018-07-23.png") [ ](/forum/attachment/44314?download=1 "...2018-07-23.png")
- [ ![screen4&#95;2018-07-23.png](/forum/attachment/44315) ](/forum/attachment/44315 "...2018-07-23.png") [ ](/forum/attachment/44315?download=1 "...2018-07-23.png")
- [ ![screen3&#95;2018-07-23.png](/forum/attachment/44316) ](/forum/attachment/44316 "...2018-07-23.png") [ ](/forum/attachment/44316?download=1 "...2018-07-23.png")

Last edit: 8 years 3 months ago by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUyODQtb3ZlcnJpZGUtY2FydG5vdGlmeS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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: 86357
- Thank you received: 14289
-
-

8 years 3 months ago [\#295764](#295764) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295764 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi,

The price is normally not displayed next to the product name or the characteristic value.
On the product page, the price is displayed below the product name.
And on the popup, the price is not displayed at all normally.
So that means that it must have been added as a customization and thus I don't know why you would have it in some places and not others.

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 3 months ago [\#295818](#295818) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295818 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi Nicolas,

I've disabled all my template overrides and it looks that the price is there by default on the product page:

[ ![screen&#95;2018-07-24.png](/forum/attachment/44331) ](/forum/attachment/44331 "...2018-07-24.png")

and also on the popup:

[ ![screen2&#95;2018-07-24.png](/forum/attachment/44333) ](/forum/attachment/44333 "...2018-07-24.png")

thanks!

- [ ![screen&#95;2018-07-24.png](/forum/attachment/44331) ](/forum/attachment/44331 "...2018-07-24.png") [ ](/forum/attachment/44331?download=1 "...2018-07-24.png")
- [ ![screen2&#95;2018-07-24.png](/forum/attachment/44333) ](/forum/attachment/44333 "...2018-07-24.png") [ ](/forum/attachment/44333?download=1 "...2018-07-24.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUyODQtb3ZlcnJpZGUtY2FydG5vdGlmeS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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: 86357
- Thank you received: 14289
-
-

8 years 3 months ago [\#295824](#295824) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295824 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi,

Then either you have the price directly in the variant name or characteristic value name, or you have modified the core files of HikaShop to add the price. Here is a thread which talks about that for the characteristic selector:
[ www.hikashop.com/forum/4-how-to/27065-sh...rice-of-variant.html](https://www.hikashop.com/forum/4-how-to/27065-show-price-of-variant.html)

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 3 months ago [\#295967](#295967) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295967 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi Nicolas,

I'm the only one working on the website and I assure you nobody changed core files. We track changes in code. The only changes we made are via template overrides.

I've checked variants names and everything looks correctly in back-end.

I'm not sure if I made myself clear enough. The problem is that the price and the size(variant name) are added with JavaScript when we select a characteristic. Please see bellow examples:

Once you load the page the product is listed with the default price like this:

[ ![screen&#95;2018-07-27.png](/forum/attachment/44370) ](/forum/attachment/44370 "...2018-07-27.png")

Once a characteristic is selected this is what happens:

[ ![screen2&#95;2018-07-27.png](/forum/attachment/44371) ](/forum/attachment/44371 "...2018-07-27.png")

Please note that I've disabled all template overrides.

thanks!

- [ ![screen&#95;2018-07-27.png](/forum/attachment/44370) ](/forum/attachment/44370 "...2018-07-27.png") [ ](/forum/attachment/44370?download=1 "...2018-07-27.png")
- [ ![screen2&#95;2018-07-27.png](/forum/attachment/44371) ](/forum/attachment/44371 "...2018-07-27.png") [ ](/forum/attachment/44371?download=1 "...2018-07-27.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUyODQtb3ZlcnJpZGUtY2FydG5vdGlmeS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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: 86357
- Thank you received: 14289
-
-

8 years 3 months ago [\#295968](#295968) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#295968 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi,

I still don't see how that's possible as HikaShop doesn't add the price to the variant name.
Please provide a link to that page so that we can check it out.

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

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

Less More

- Posts: 162
- Thank you received: 0
-
-

8 years 3 months ago [\#296067](#296067) by [info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")  Replied by *[info@vesica.org](/forum/user/32522-info-vesica-org "View info@vesica.org's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#296067 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi Nicolas,

I've sent you an email with all details.

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTUyODQtb3ZlcnJpZGUtY2FydG5vdGlmeS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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: 86357
- Thank you received: 14289
-
-

8 years 3 months ago [\#296068](#296068) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override cartnotify plugin](/forum/26-product-category-display/895284-override-cartnotify-plugin#296068 "Hi,  is it possible to override the Cartnotify plugin via templates overrides?  Especially this file: plugins/hikashop/cartnotify/media/notify-vex.js .  thanks!")*

Hi,

Thanks. I checked the issue, and the problem with the popup is because you had added a name to the small variant without the price while you didn't add any name for the other variants.
So when the name is not available, it will use the characteristics values, but when it's there, you just get the variant name appended to the product name.
I've modified the small variant to not have a name, like the other variants and it works fine.
So as expected, it's just an issue with how the variants were configured.

Regarding the default name on the product page, that's normal and made on purpose. If you don't want that, you can just edit the file "show_default" via the menu Display&gt;Views and change the line:
echo $this-&gt;element-&gt;main-&gt;product_name;
to:
echo $this-&gt;element-&gt;product_name;

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

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