strife's devLog

Category: MySQL

scripts-drupal-logoDrupal, UberCart – How to return / get back the cart from database

I’ve tried to found the solution how to revert the cart that is already in the database but as always I didn’t found any good solution though. I was looking the files which can help me to regenerate it and finally I’ve found it! Below you got the code that get any cart from the db and populate it.



mysql-logoMySQL: How to Round Prices to Nine Ninety Nine at the end (9.99)

Hi there,

Here’s the example how to round values to 9.99 at the end. For example if we have a price 45023.12 and we wanna change it to 45029.99, we should simple use this code:

See ya!