Search found 28 matches

Search found 28 matches

Re: How to automatically remove decimals when price is round

Actually, instead of rtrim, I had to use str_replace:

return str_replace('.00','',$string);

apparently rtrim searches character by character, instead of a full string. So if a price was $170.00, rtrim would replace ALL zeros, including the one in the middle, resulting in this: $17

Thank you again!

Jump to post
  • Thu Sep 29, 2011 2:43 pm
  • Replies 12
  • Views 4574
Re: How to automatically remove decimals when price is round

But just in case, is this correct? <?php echo rtrim($products[$j]['price'], '.00'); ?>

Jump to post
  • Thu Sep 29, 2011 5:15 am
  • Replies 12
  • Views 4574
Re: How to automatically remove decimals when price is round

How would you apply it to this?
<?php echo $products[$j]['price']; ?>

Would it be:
<?php echo rtrim($products[$j]['price'], '.00'); ?>

Also, isn't there an easier way to do this, so that it's automated, other than having to replace every single string of code that shows $price manually?

Jump to post
  • Thu Sep 29, 2011 2:38 am
  • Replies 12
  • Views 4574
How to automatically remove decimals when price is round

If the product price is $25.00, I want Opencart to AUTOMATICALLY display it without the decimals ($25) If the product price is not round, $25.30, I want Opencart to display it with two decimals ($25.30) I'm using 1.4.9.1, and I have Opencart set to 2 decimals in the Admin section. Does anyone have a...

Jump to post
  • Thu Sep 29, 2011 1:01 am
  • Replies 12
  • Views 4574
Re: Sneak Peek: OpenCart 1.5.0 *ALPHA*

I think you guys should do a pass on making all of these functions easier to access.. Opencart is great cuz it has tons of stuff, but it takes so many clicks to get to everything! SUG #1:For someone who edits products in the admin section a lot, we need to be able to edit product options on the fly....

Jump to post
  • Tue Feb 08, 2011 3:31 am
  • Replies 647
  • Views 158299
Re: New admin that enables product editing on the fly

any plans to include this a part of opencart?

plus, it'd be nice to be able to edit more fields other than those basic 4. It doesnt really help the way it is, cuz I'm still gonna have to go into each product to edit the rest of the fields...

Jump to post
  • Sun Feb 06, 2011 1:53 pm
  • Replies 2
  • Views 800
New admin that enables product editing on the fly

Adding products on OpenCart is currently a very slow process, so I was wondering if there has a been a suggestion to simplify it by: - being able to choose certain Product properties to be displayed on the main "Products" page - being able to edit those properties on that same page. I always see mys...

Jump to post
  • Sun Feb 06, 2011 11:28 am
  • Replies 2
  • Views 800
Re: Limit amount of Related Items displayed + Randomize

Chones, very cool! Thank you so much!!! So, in catalog/model/catalog/product.php I found this: $product_related_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "product_related WHERE product_id = '" . (int)$product_id . "'"); and replaced it with this: $product_related_query = $this->db->que...

Jump to post
  • Mon Jan 24, 2011 2:49 am
  • Replies 2
  • Views 1760
Limit amount of Related Items displayed + Randomize

I'd like to know if there's a way to limit the amount of related products displayed on the page. So, even if "product A" has 20 related products, I only want 6 to be displayed on the page. And, second, is it possible for OpenCart to pick those 6 products randomly? So, if I refresh the page, I'd get ...

Jump to post
  • Sun Jan 23, 2011 1:10 am
  • Replies 2
  • Views 1760
Re: [RELEASED] Mailchimp Newsletter Signup Module

double_optin and export function sound awesome! thanks!!!

Jump to post
  • Fri Oct 29, 2010 4:11 pm
  • Replies 109
  • Views 27318
Re: [RELEASED] Mailchimp Newsletter Signup Module

New features anyone would like to see in the new release? Come forth and tell! The wheel keeps spinning.. not sure why. Is this a single opt-in module? If not, can we get that in your next version? And can we also get a way of inserting this signup form on other pages of the website that are not in...

Jump to post
  • Thu Oct 28, 2010 3:08 pm
  • Replies 109
  • Views 27318
Re: [RELEASED] Mailchimp Newsletter Signup Module

It might be because I tried moving the module to the footer, away from the sidebars. I'll double check the controller. But when I do have it in the sidebar, I get that problem where the wheel keep spinning forever.... It sounds like Cyberdude had that same problem... I wonder how he fixed it.... Doe...

Jump to post
  • Thu Oct 28, 2010 9:04 am
  • Replies 109
  • Views 27318
Re: [RELEASED] Mailchimp Newsletter Signup Module

I'm having that problem where the wheel spins, then it disappears and nothing happens.
look at the footer of the page: http://shop.bushandleavenworth.com/prod ... duct_id=72

any ideas why this is happening?

Jump to post
  • Thu Oct 28, 2010 4:19 am
  • Replies 109
  • Views 27318
What to expect ugrading from 1.3.4 to 1.4.9.1?

I'm considering ugrading from 1.3.4 to 1.4.9.1. What can I expect from the upgrade process? Any main big changes I'll have to make? like: upgrading databases, any changes necessary to get the modules to work, etc.... any tips ahead of time are greatly appreciated! would like some guidance from peopl...

Jump to post
  • Wed Oct 27, 2010 1:32 pm
  • Replies 2
  • Views 707
Re: Guest Checkout doesn't show shipping options

I must have another version then (1.3.3) cuz I have a guest checkout. Unfortunately i don't know of an accurate way of finding out what version I have other than looking at the menu color.
Well, thanks for your help!

Jump to post
  • Tue Oct 26, 2010 6:35 am
  • Replies 10
  • Views 1388
Re: Guest Checkout doesn't show shipping options

Or better yet, can someone please help me make 1.3.2 allow 2 separate addresses for Guest Checkout?

Jump to post
  • Tue Oct 26, 2010 6:06 am
  • Replies 10
  • Views 1388
Re: Guest Checkout doesn't show shipping options

Q, I think upgrading the whole system would be way too painful for me, since I modified it a lot.
Can you point me in the right direction on what files would need to be modified in order to get the guest_step files from 1.4.0 to work with the 1.3.2 system?
is that even possible?
thanks so much!

Jump to post
  • Tue Oct 26, 2010 5:06 am
  • Replies 10
  • Views 1388

Search found 28 matches