Display price on cart notification popup

  • Posts: 162
  • Thank you received: 0
5 years 8 months ago #296823

-- HikaShop version -- : 3.5.1

Hi,

is there any way I can display the price on the cart notification popup?



How can I pull the price data inside the plugin?

Thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
5 years 8 months ago #296835

Hello,

In the content returned by the ajax call, you will find the product name, the added quantity and the product image.
Right now, there is no extra information and it would require to modify a core function to add it.
The content is generated within the function "getAjaxCartData" in the HikaShop product controller.
Once the information available in the JS, you will be able to use it in a cart notification plugin.

We will see if it could be useful to add extra elements in that JS or to add a trigger so plugins could add specific content (for the cart notify plugins).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
5 years 8 months ago #296868

Hi,

from what I understand is not possible without changing core files?

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 8 months ago #296897

That's right.

Please Log in or Create an account to join the conversation.

  • Posts: 162
  • Thank you received: 0
5 years 8 months ago #296917

Hi,

I understand. Would this be something you'll be adding in a future version?

This will be great for shop users, to see the price of a product that is added to cart.

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
5 years 8 months ago #296918

Hello,

As I wrote

We will see if it could be useful to add extra elements in that JS or to add a trigger so plugins could add specific content (for the cart notify plugins).


Thank you for your understanding


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum