Say for whatever reason, a site builder needs to replace a menu with another via the admin UI, while at the same time retaining the configuration (menu style and depth, style settings, visibility conditions):
- Add a new menu block in the same region.
- [add as many steps/clicks here as required to manually copy the configuration of the old menu block...]
...
n-2. ... n-1. Remove the old menu block n. Save the layout
...so basically the more complicated configuration the old menu block has, the more clicking a site builder needs to do in order to replicate the block configuration to the new menu block.
Compare the above to this:
- Edit existing menu block.
- Select another menu from a drop-down menu that lists all available menus.
- Save the menu block
- Save the layout
Recent comments
In a blog post titled "Github Tips and Tricks for Contrib Maintainers", I'd like to see some of the following topics: When is the README sufficient for documentation? When should...
Github Tips and Tricks for Contrib Maintainers
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout