Question Skip Checkout - Direct Purchase

Status
Not open for further replies.

Starbucks

Customer
Hey there,

I would like to let users directly buy items without the needs of checking their cart > checkout > purchase.

It can be confusing for users, so I prefer that once a user clicks on buy, they get redirected to the /checkout page directly.

So, what I would to happen is that if a user clicks the buy button, they get forwarded to the /checkout page, instead of; getting a notice that it is added to their cart etc

Is this possible? If yes, how can I change this in the templates as I couldn’t find this somewhere in the code.

Thanks!
 
I can see in the dbtech_shop_item_purchase template, there is in the bottom a submitrow, I want to change this directly to the checkout page, but as it is a submitrow and not a href, I’m not sure how to change this.
 
This would require custom coding, as it would require you to edit the files to change the redirect.
 
This would require custom coding, as it would require you to edit the files to change the redirect.
Morning!
Would this require a lot of changes in different templates, or can this just be simply done with a piece of code in the current template as it only is a redirect?

Let me know if this needs some big modifications or not. If you’d be willing to share the piece of code, I can do it myself!

Thank you!
 
In /src/addons/DBTech/Shop/Pub/Controller/Item.php find $redirect = $this->getDynamicRedirect(null, false); and change to $redirect = $this->buildLink('dbtech-shop/checkout');

Bear in mind this will generate file modification warnings and will need to be reapplied after every update.
 
In /src/addons/DBTech/Shop/Pub/Controller/Item.php find $redirect = $this->getDynamicRedirect(null, false); and change to $redirect = $this->buildLink('dbtech-shop/checkout');

Bear in mind this will generate file modification warnings and will need to be reapplied after every update.
Awesome! Thank you so much for this!

Have a good weekend!
 
Hello @Starbucks,

We hope your ticket regarding DragonByte Shop has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @Starbucks,

As we have not heard back from you, your ticket regarding DragonByte Shop has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Shop

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
3,186
Customer rating
5.00 star(s) 3 ratings
Back
Top