I think the title says it.

Sometimes I need a different action after add to cart based on what my product is. This could be useful in a number of ways, such as guiding a client through a 'building a kit' workflow.

Thanks, tcindie!

Comments

willvincent’s picture

Would this have to be for the individual product, or would setting it by product class be enough?

lindsayo’s picture

I think it would have to be per product. Because there may be products in a particular class that behave differently than others in that class.

willvincent’s picture

Status: Active » Postponed
willvincent’s picture

Project: Ubercart Product Power Tools » Ubercart
Component: Miscellaneous » Code

The only way this can be done would be to manually override the global cart redirection variable on every product page load, it would not work when multiple products are displayed on a single page.. even then, it's not a good solution.

Therefore, this can only be achieved with modifications to the ubercart core uc_cart.module file.

As such, I've retagged this as an ubercart issue.

tr’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev

This will have to go in 7.x-3.x first, if it's implemented.

tr’s picture

Version: 7.x-3.x-dev » 8.x-4.x-dev
Issue summary: View changes
tr’s picture

Status: Postponed » Closed (won't fix)

There doesn't seem to be any community interest in doing this, so closing this issue as won't fix. If you would like to contribute a patch for this, please feel free to reopen the issue.