Ok, I didnt' realize that Ceil() rounds up so that isn't what I needed, just replace ceil with round and you are good to go!
Type: Posts; User: eddie_d_2000
Ok, I didnt' realize that Ceil() rounds up so that isn't what I needed, just replace ceil with round and you are good to go!
Yep, I put a bool in the admin section that they flag to designate some things, like displaying price per yard and the little disclaimer about the rounding. Thanks.
Cool, thanks, here is the code I added to the /includes/classes/shopping_cart.php file, down after line 1165 in the get_products function:
$numHolder = ($new_qty * 100);
$truncNum =...
I am setting up a fabric site and I wanted to know if such a function exists that will round the quantity that a customer enters in to round to the nearest say, .25. For instance you put in .73 and...
I couldn't find the lines that were mentioned here but in my version of ZenCart (1.3.5), I did find these two lines and commented them out for fractional quantities and all is well now.
lines...
Oh well, instead of hacking around with code that could just potentially get overwritten sometime I just created a category called "All Products" and linked everything in there and disabled the "New...
Anybody have any ideas? Surely someone that has written functions for zen cart understands this. I think I am just not editing the correct file or something.
I tried adding another function in the functions_lookups.php that returned the products_model instead of the products_name and then I modified the whats_new.php to use my new function but that didn't...
I have searched and searched and can't really find a place that is addressing this question. Is it possible to switch the link that shows for your new Products for the month of page from the Title...