How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2828 by thomas27
27 May 2016, 11:49
Is it possible to configurate the shop without the basket step?

I have a virtual service product and different packages. The products are placed as detail page on the landing page and only one of this package can be orderd by user. So he must not go to the basket. The link from the detail page "Add to basket" should something like "Buy now" and jump direct to the "Address" or "Payment" step.

The rest is configured as onepage:
Code: Select allplugin.tx_aimeos.settings.client.html.checkout.standard.standard.subparts {
0 = address
1 = payment
2 = summary
3 = order
4 = process
}
plugin.tx_aimeos.settings.client.html.checkout.standard.onepage {
0 = delivery
}
#2829 by aimeos
27 May 2016, 13:12
There's no configuration option to enable that behavior yet.
To implement that feature, you can overwrite the translation for the "Add to basket" button and adapt the JS for the detail view.
Modify the JS so the basket overlay isn't displayed and redirect to the checkout page directly.

We would love to get that feature into Aimeos and would appreciate a pull request :-)
#2832 by thomas27
28 May 2016, 07:29
It´s very hard for me to find the right javascript function + file where I can do this. Can you please tell me the file and the line number where I can do this.

And is it possible to disable the zoom lens on the image?

I´m using the aimeos 16.4.3-pre1 version and typo3.
#2835 by aimeos
28 May 2016, 07:53
thomas27 wrote:It´s very hard for me to find the right javascript function + file where I can do this. Can you please tell me the file and the line number where I can do this.


This is the method you have to overwrite:
https://github.com/aimeos/aimeos-core/blob/2016.04/client/html/themes/aimeos.js#L646

Please read the documentation how you should do it:
https://aimeos.org/docs/Developers/Themes/Adapt_existing_themes#Javascript

thomas27 wrote:And is it possible to disable the zoom lens on the image?


Yes, in https://github.com/aimeos/aimeos-core/blob/2016.04/client/html/themes/aimeos-detail.js#L109