logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Add to Cart Button

22/02/2025, by Anonymous (not verified)
Forums

Hello! I'm not sure which section to create this topic in, so I created it here. I have Drupal 6 with Ubercart and an Ajax cart. I need to make it so that after clicking the "Add to Cart" button, the product is added and immediately redirects to the cart page. How can I do this through Drupal settings? I thought about writing a small jQuery script and adding an a href attribute to the button, but I think that's unprofessional and feels like a workaround. I would like to know how to do it programmatically. I should mention that the store's cart settings include a redirect to the cart page after adding an item, but for some reason, the redirect isn't working. There's also the possibility that I displayed the wrong "Add to Cart" button in Views, but I haven't checked because I'm feeling lazy =))) Please help :))