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 automatically creates a new order for the logged in user, or for the anonymous user browsing the page (Ubercart creates a session for anonymous to store the order number).
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...
Posted1 hour 54 min ago by Alejandro Cremaschi (argiepiano) on:
No problem, let's see how it evolves.
I'd be happy to provide a suggested version if i could.
I will keep that in mind and try learn this hook chain hopefully very soon. I will...
Posted1 day 12 hours ago by RS Snyder (theflightrs) on:
I could request hashing support, but that's the lazy way
🤣
I would appreciate it if you as an active maintainer would 'officially' add a hashing support...
Hi, i understand the updating obstacle - not worth mentioning - hence it is a wacky (but working) patch until i know what to do. :-)
One of my biggest wishes is to understand the hook...
Posted1 day 12 hours ago by RS Snyder (theflightrs) on:
You can try the above file somewhere, what do you think? I could safely replace this file on my running site.
This is indeed "MacGyver" ;-)
You don't have to replace...
Comments
Have you tried
uc_cart_add_item()? You need to provide the nid of the product. Then you can usebackdrop_goto('cart/checkout');to send the user to the checkout screen.uc_cart_add_itemautomatically creates a new order for the logged in user, or for the anonymous user browsing the page (Ubercart creates a session for anonymous to store the order number).