Skip Basket?

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)
Spam and unrelated posts will be removed immediately!
thomas27
Posts: 11
Joined: 10 May 2016, 11:07

Skip Basket?

Post 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 all

plugin.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
}

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Skip Basket?

Post 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 :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

thomas27
Posts: 11
Joined: 10 May 2016, 11:07

Re: Skip Basket?

Post 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.

User avatar
aimeos
Administrator
Posts: 7835
Joined: 01 Jan 1970, 00:00

Re: Skip Basket?

Post 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/b ... os.js#L646

Please read the documentation how you should do it:
https://aimeos.org/docs/Developers/Them ... Javascript
thomas27 wrote:And is it possible to disable the zoom lens on the image?
Yes, in https://github.com/aimeos/aimeos-core/b ... il.js#L109
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply