Search found 33 matches

Search found 33 matches

Re: What Objects and Methods are Available in OC

http://www.opencart.com/index.php?route=documentation/documentation&path=111 this is your only reference I guess. You should also download DIY module and read through the comments, it will definitely help you. this is how you pass data from controllers to views: $this->data['view_variable_goes_h...

Jump to post
  • Tue Feb 05, 2013 6:00 am
  • Replies 2
  • Views 1009
accessing function stored in another controller file?

I can't seem to figure out how to access a function that's stored in another controller file. I have controller\tool\loc.php with a function getCoordinates() I'm trying to load it inside controller\checkout\cart.php and it just isn't working. I tried: $this->loc->getCoordinates(); $this->tool_loc->g...

Jump to post
  • Sat Jan 12, 2013 5:08 am
  • Replies 0
  • Views 356
County Tax Zones Module - unethical behavior

Just FYI, I purchased this module a while back. It works pretty well excel for some random alert with message "error" during checkout that I'll have to fix in order not to scare away every other customer. Long story short, the author doesn't reply to messages requesting support and he dele...

Jump to post
  • Sun Jan 06, 2013 7:21 am
  • Replies 0
  • Views 332
Re: Anyone good with css?

I didn't mean css file. I meant in HTML it probably doesn't assign correct id/class to that element.
I don't have FB so can't say for sure though.

You can change CSS values right in browser. Just right click on the broken one and look/play with it's values and it will adjust in real-time.

Jump to post
  • Wed Jan 02, 2013 3:43 am
  • Replies 5
  • Views 622
Re: Anyone good with css?

Looks like an issue with float property. It might be that logged in "like" doesn't have the same id or class.
I didn't look at the code, just guessing from your picture

Jump to post
  • Tue Jan 01, 2013 2:01 am
  • Replies 5
  • Views 622
website traffic question

My site isn't even live yet and is in maintenance mode, but I'm receiving visits that are forwarded from riceski.info I checked that site and it has nothing to do with my line of business. Does anyone know how/why this is happening and how to deal with it? It's clearly something shady. Sorry I'm sup...

Jump to post
  • Tue Jan 01, 2013 12:07 am
  • Replies 1
  • Views 468
Re: $this->config questions

Thank you for a helpful answer :)

Jump to post
  • Mon Dec 31, 2012 11:23 pm
  • Replies 2
  • Views 1778
$this->config questions

1) Where is the data stored when I save settings? Is it in DB under a special table?

2) How do I unset previously set values?

Jump to post
  • Mon Dec 31, 2012 1:30 pm
  • Replies 2
  • Views 1778
submit multiple forms via AJAX isn't working

function submitSettings() { $('.forms').each(function() { posted = $(this).serializeArray(); }); console.log(posted); console.log('<?php echo $this->session->data["token"]; ?>'); // $.post('<?php echo $action; ?>', posted); $.ajax({ type: 'POST', url: 'index.php?route=module/my_module/tes...

Jump to post
  • Sun Dec 30, 2012 9:34 am
  • Replies 0
  • Views 1023
Re: Queries, already cleaned or no?

I have some html restrictions, but they are easy to bypass of course. So will this be sufficient to make the variable safe:

Code: Select all

$zip = $this->db->escape($zip);
?

Jump to post
  • Sat Dec 29, 2012 1:44 am
  • Replies 4
  • Views 1034
How do I submit a form and display the result back?

I can't figure out how to submit a form and display back the result. Here's what I did: in product.tpl I added: <form action="<?php echo $action ?>" method="GET"> <input type="text" length="15" limit="5" name="zip_code" /> <input type="...

Jump to post
  • Fri Dec 28, 2012 9:37 am
  • Replies 1
  • Views 1874
Queries, already cleaned or no?

I'm adding a field where customers will be typing in a zip code to get a tax estimate. When I use $query = $this->db->query($sql);
$sql will have a variable passed by a customer, is the variable already safe to use or do I need to write in precautions to avoid getting hacked?

Jump to post
  • Fri Dec 28, 2012 8:25 am
  • Replies 4
  • Views 1034
Re: USPS first class mail not showing as an option...

Oh wow, I'm feeling pretty silly for not noticing that.
You are correct. Setting USPS module to pounds (instead of oz) fixed it.

Thank you for the help!

Jump to post
  • Fri Dec 28, 2012 1:18 am
  • Replies 6
  • Views 1344
Re: USPS first class mail not showing as an option...

Well, Oz option is broken for sure. Even though I made sure my system settings default to ounce and individual items are set to oz as well, it's still calculating pounds.
When I set 0.8, it just calculates for 0.8 pounds, not 8 ounce.

Does anyone else has this issue?

Jump to post
  • Thu Dec 27, 2012 1:40 pm
  • Replies 6
  • Views 1344
Re: USPS first class mail not showing as an option...

Looks like is exactly it, thank you for the suggestion.
It's really weird though, my weight is set to OZ and the item I was running the test on had a weight of 8 (oz). First Class wasn't working with that value, however changing it to 0.8 (oz) fixed the problem.

Jump to post
  • Thu Dec 27, 2012 12:02 pm
  • Replies 6
  • Views 1344
USPS first class mail not showing as an option... [SOLVED]

I enabled:
1) first class
2) priority
3) express

During checkout the only options that show up are priority and express. Do I need to configure something else to enable first class?

Jump to post
  • Thu Dec 27, 2012 2:27 am
  • Replies 6
  • Views 1344
Re: $this->config->get not working for me

Thank you, it works now.

Jump to post
  • Wed Dec 26, 2012 10:54 am
  • Replies 6
  • Views 4621
$this->config->get not working for me

I'm trying to save and retrieve settings, but it isn't working out. I keep getting this error: Notice: Undefined property: Config::$get in C:\UwAmp\www\opencart\admin\controller\design\banner.php on line 66 This is what my code is like: private function saveNivoSettings() { $this->load->model('setti...

Jump to post
  • Wed Dec 26, 2012 5:28 am
  • Replies 6
  • Views 4621

Search found 33 matches