Simplified shopping cart?

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 9 months ago #152735 by M Thijssen
Simplified shopping cart? was created by M Thijssen
Hi,

If someone adds an item to the shopping cart its shows "name + Amount".
And it does it for every event selected. If one is selected it works perfect.
Very readable, but when 6 events are selected it is a very long list.

Is it possible to simplify the cart and no mather how many events are selected, display a simplified module: 
"you have selected + number".

Best Regards.
Marcel

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

More
2 years 9 months ago #152738 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Simplified shopping cart?
Hi Marcel

Guess you are talking about shopping cart module? Could you please send me screenshot of the cart you are talking about so that I can understand your request better ?

Tuan

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 9 months ago - 2 years 9 months ago #152739 by M Thijssen
Replied by M Thijssen on topic Simplified shopping cart?
Hi Tuan,

Correct. It looks like this:
 

I  wonder if its possible to simplify it to this. The number shown is the number of total events added to the cart.
 

Or just like a shopping-cart with a number added to show how many events are selected.
 

Maybe if i could extract the total number of events chosen? I could work with that.
Would be great if that's possible.

Beste regards,
Marcel
Last edit: 2 years 9 months ago by M Thijssen.

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

More
2 years 9 months ago #152746 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Simplified shopping cart?
Hello

Could you please try to look at the file modules/mod_eb_cart/tmpl/default.php and do the modification yourself? To get total number of events, you can just use this code:
Code:
$numberEvents = count($rows); echo 'Total Number Events:'. $numberEvents;

Something like that could work. Similar change need to be implemented to the file components/com_eventbooking/themes/default/cart/module.php

Please note that once the change is done, you should move the modified file to PATH_TO_TEMPLATE/html/mod_eb_cart/

and

PATH_TO_TEMPLATE/html/com_eventbooking/cart folder so that the change won't be lost when you update to future releases of the extension

Regards,

Tuan
The following user(s) said Thank You: M Thijssen

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 9 months ago #152765 by M Thijssen
Replied by M Thijssen on topic Simplified shopping cart?
THANKS!
Works perfectly.

Great support!

Beste Regards,
Marcel

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

More
2 years 9 months ago #152766 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Simplified shopping cart?
Great. Happy to hear that

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

More
2 years 9 months ago #152767 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Simplified shopping cart?
Maybe you can share the modified files ? It could be useful for other customers who need it

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

  • M Thijssen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 8 months ago - 2 years 8 months ago #152880 by M Thijssen
Replied by M Thijssen on topic Simplified shopping cart?
Hi Tuan,

Herewith the files for a simplified shopping-cart.

Best regards, Marcel 

 

File Attachment:

File Name: Simplified...dule.zip
File Size:6 KB
Last edit: 2 years 8 months ago by M Thijssen.

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

More
2 years 8 months ago #152881 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Simplified shopping cart?
Great. Thanks Marcel for sharing the code

Tuan

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

Moderators: Tuan Pham Ngoc