Added to cart message as On page message

  • Posts: 147
  • Thank you received: 6
8 years 6 months ago #240957

Hi,
Is it possible or how could I have the 'Product added to cart' message after a product has being added to the cart, as a joomla message? Displayed by <jdoc:include type="message" />

I my case it is simpler and will work better for my users.

Thanks

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 6 months ago #240966

Hi,

There is no easy option to do that. You would have to edit the file components/com_hikashop/controllers/product.php and add custom code in the updateCart function in there.

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

  • Posts: 147
  • Thank you received: 6
8 years 5 months ago #241401

Hi Nicolas,
Thanks for you reply.

I just want to be able to notify the user that the product has being added to the cart and checkout or continue shopping without the needing mootools at all.

Is there any option or suggestion to do that?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 5 months ago #241417

Hi,

Not for now without custom coding.
We're working on a complete overhaul of HikaShop's checkout and cart systems that we hope to release in a few months.
The new system won't use mootools.

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

  • Posts: 147
  • Thank you received: 6
8 years 5 months ago #241487

Hi, Nicolas. It is good to know it is in the plans.

My suggestion/request would be for an option that displays the message and 'continue shopping' or 'checkout' in page.
No, light box, no sliding panel no javascript, just simple html output. That way you allow for people who want to have a simple design do so without loading any js library.

Thanks for now and I look forward to the new improved version.

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
8 years 5 months ago #241499

Hello,

Before have the new checkout version, you can maybe if it please you use the "After a product is added to the cart" option in HikaShop Configuration.

For reach this option, follow this steps :
- Go to Components => HikaShop => Configuration
- In Main tab, go to Cart part
- Find the "After a product is added to the cart" option and define on "Stay and display a popup notice".



As result your customer will see after add a product in their cart a popup which invite them to proceed to checkout OR to continue shopping... So not a page but maybe close enough for waiting next checkout version.

Hope this will fit your needs.

Regards.

Attachments:
Last edit: 8 years 5 months ago by Philip.

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

  • Posts: 147
  • Thank you received: 6
8 years 5 months ago #242293

Hi Philip,
I am sorry for the late reply and thanks for the suggestion.

I can't do that as I use a mootools disabler plugin.
I ended up just including an on page message to the controller. It was easy enought. Just added a couple of lines and done.

For those looking for similar solution before the new release I just added:

// We don't use the popup system, instead we raise an on page notification message
$app->enqueueMessage('<p><h4>Added to cart.</h4></p><p><button type="button" class="btn btn-primary" data-dismiss="alert" aria-label="Close">keep Shopping</button></a><a class="btn" href="/checkout">
Checkout <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span> </a><span class="clearfix"></span></p>', '');

Around line 529

I hope it helps someone else.

Cheers

The following user(s) said Thank You: Philip

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

Time to create page: 0.078 seconds
Powered by Kunena Forum