Add to cart in product shortened template

Posted By Supermac Thu 16 Jun 2016
Add to Favorites0
Author Message
Supermac
 Posted Thu 16 Jun 2016
Supreme Being

Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
Would it be a big work to add a quantity selector and an "add-to-basket" button to ProductTemplates?
Particularly I would add it to the ProductTemplateShortened (customer who asked this to me has only single version products) to allow users to add items to basket avoiding the click to enter product detail's page (where add-to-basket feature actually is)...
Paul Marked As Answer
 Posted Thu 16 Jun 2016
große Käse

große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)

Group: Administrators
Last Active: Fri 15 Sep 2023
Posts: 806, Visits: 2,737
I think the best way would be to try modifying the 'extended' product template. That handles displaying products with their versions (or options products) within product listings pages. You'd just need to work on the CSS to lay things out more like the shortened format. But that template has the code you need so that if your products are set as single version products, you'd get an 'add' button, and that functionality is all there.

--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
Supermac
 Posted Tue 21 Jun 2016
Supreme Being

Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
Good practice doubt:
I wont to modify ProductTemplateExtended (I use it in product detail page) so I made my own UC starting from ExtendedTemplate as you suggested and registered it in web.config, then I changed configuration telling Kartris to use extended template when browsing products in category pages (frontend.products.display.default=e) and finally I modified CategoryProductsView.ascx telling the page to use my UC instead of standard ExtendedTemplate.
It all works perfectly, I just would know if is this the right procedure or had I to follow a better way.
Paul
 Posted Tue 21 Jun 2016
große Käse

große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)große Käse - (449,826 reputation)

Group: Administrators
Last Active: Fri 15 Sep 2023
Posts: 806, Visits: 2,737
Perfect, even better than modifying the existing one.

--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
Supermac
 Posted Wed 22 Jun 2016
Supreme Being

Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)Supreme Being - (71,547 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
Thank you!

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top