How to group the products by category in wishlist and cart and in the mail.

  • Posts: 156
  • Thank you received: 1
  • Hikashop Business
9 months 2 days ago #287770

-- Joomla version -- : 3.8.5
-- PHP version -- : 6.x.x

Hello,

As the subject says, is it possible to make the products, when put for example in the wishlist that they will be displayed there in order of the category. This also for the cart or on the confirmation email. In short,
In category A we have 3 products. A1 A2 A3
In category B also B1 B2 B3
and in category C: C1 C2 C3

Now it is as a customer puts for example first A3 in the wishlist then B1 then A1 And C3 it will be shown as follows
A3
B1
A1
C3
We like it to have
A3
A1
B1
C3
Hope you understand what i mean and that you cna help ..
Thanks.

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

  • Posts: 63951
  • Thank you received: 9217
  • MODERATOR
9 months 2 days ago #287775

Hi,

There is no option to do that.
However, it is possible to do that by developing a custom plugin and implementing the trigger "onAfterCartProductsLoad" in it, and sorting the products in $cart->products the way you want.
www.hikashop.com/support/documentation/6...fterCartProductsLoad

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

  • Posts: 156
  • Thank you received: 1
  • Hikashop Business
8 months 4 weeks ago #288000

Hi,

Thanks, for your quick reply,
So you say the only way to get the products on a category listing base in the wishlist/cart is by building a plugin. Is there perhaps a way to just trigger the name of the category in the cart/show.php so i can show the categoryname instead of the image. I made a little screenshot to make it a little clearer for you to understand what i want.
THanks,
Mark

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

  • Posts: 156
  • Thank you received: 1
  • Hikashop Business
8 months 4 weeks ago #288001

forgot the image.. :)

Attachments:

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

  • Posts: 63951
  • Thank you received: 9217
  • MODERATOR
8 months 4 weeks ago #288014

Hi,

Even displaying the category name will require some development.
And yes, for the category name, you would have to edit the cart/show view file to add custom code there. You would have first to run a MySQL query or two to load the category data of the product based on the product_id going through the hikashop_product_category table and the hikashop_category table.

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

  • Posts: 156
  • Thank you received: 1
  • Hikashop Business
8 months 3 weeks ago #288210

Hi ,
I understand it will require som development.
The most important is to get the category name displayed in the mail. and under each category i need the product of that category which is ordered. so the ordered products are shown per category.. I attached some images and hope that you understand better what i like to have.
And if you know a developper who would or could do this for me i really would like to come in contact with him or her.



Hope you can help a little more..
Thanks.

Attachments:

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

  • Posts: 63951
  • Thank you received: 9217
  • MODERATOR
8 months 3 weeks ago #288216

Hi,

Any skilled PHP developer should be able to do that.
You can contact our developer partners:
www.hikashop.com/home/our-partners.html
Or you can also find developers via resources.joomla.org

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

Time to create page: 0.394 seconds
Powered by Kunena Forum