Everything posted by Gaelen
-
How would you code this for html & css?
looks like a pretty simple div/float setup. many different ways to do it but should be pretty simple.
-
Setting new table in Opencart
I realized that about 30min after I posted this, got it all working great now! thanks
-
Bee - multichannel content management
A hosted solution probably wont get much traction here. most of us are pretty dependent on modifying the core to get it to do what we want. I know I have a version of wordpress and drupal installed locally at all times which I couldnt do with something hosted.
-
Setting new table in Opencart
I've been looking for somewhere to set the id, but as far as I can see it's created upon making a new table... however I cant figure out where to add a new table to create the same id. I've created 3 new tables but they are not being populated once I add a manufactiurer
-
Setting new table in Opencart
I'm having an issue getting the manufacturer_id to set in each table when I insert a new one. For some reason it only sets in the original table and I cant figure out why. public function addManufacturer($data) { $this->db->query("INSERT INTO " . DB_PREFIX . "manufacturer SET name = '" . $this->db->escape($data['name']) . "', sort_order = '" . (int)$data['sort_order'] . "'"); $manufacturer_id = $this->db->getLastId(); if (isset($data['image'])) { $this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET image = '" . $this->db->escape($data['image']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); } if ($data['map']) { $this->db->query("INSERT INTO " . DB_PREFIX . "manufacturer_contact SET contact = '" . $this->db->escape($data['contact']) . "', phone = '" . $this->db->escape($data['phone']) . "', email = '" . $this->db->escape($data['email']) . "', address = '" . $this->db->escape($data['address']) . "', country = '" . $this->db->escape($data['country']) . "', code = '" . $this->db->escape($data['code']) . "', account = '" . $this->db->escape($data['account']) . "', rep_phone = '" . $this->db->escape($data['rep_phone']) . "', rep_cell = '" . $this->db->escape($data['rep_cell']) . "', account = '" . $this->db->escape($data['account']) . "', fax = '" . $this->db->escape($data['fax']) . "', csr_name = '" . $this->db->escape($data['csr_name']) . "', csr_phone = '" . $this->db->escape($data['csr_phone']) . "', csr_email = '" . $this->db->escape($data['csr_email']) . "', csr_fax = '" . $this->db->escape($data['csr_fax']) . "', map = '" . (int)$data['map'] . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); }
- Adding DB Table
-
Using WordPress for clients design work
I'm not sure what you mean by work on clients projects...
-
Using WordPress for clients design work
I'm still thinking you mean a theme but that's me I develop all my CMS sites on my local using http://www.apachefriends.org/en/xampp.html it allows you to run everything as if it was a server so you can test without having a live site. Is that what you were after?
-
Using WordPress for clients design work
you're trying to develop your own theme for wordpress? I think that's what you're getting at. If that is the case I'd suggest digging through the stock one that comes with it and see where things change. That's how I learned
-
Using WordPress for clients design work
what do you mean by design multiple pages?
-
Adding DB Table
I've run into a bit of a problem adding a new table in the DB, so far nothing I have tried has worked and I cant see why... manufacturer.tpl <tr> <td><?php echo $entry_contact; ?></td> <td><input type="text" name="contact" size="50" value="<?php echo $contact; ?>" size="10" /></td> </tr> admin/model/catalog/manufacturer.php (line 36) if (isset($data['contact'])) { $this->db->query("UPDATE " . DB_PREFIX . "manufacturer_contact SET contact = '" . $this->db->escape($data['contact']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); } admin/controllerl/catalog/manufacturer.php (line 354) if (isset($this->request->post['contact'])) { $this->data['contact'] = $this->request->post['contact']; } elseif (!empty($manufacturer_info)) { $this->data['contact'] = $manufacturer_info['contact']; } else { $this->data['contact'] = ``; } This is the error I'm getting if anyone can point out what im missing I would be very greatful
-
Can someone calculate mine gasoline use?
i would if it wasnt across a hwy...
-
Can someone calculate mine gasoline use?
I'd love that kei truck! hahaha I have a 89 Nissan 180sx (Drift car) and a 98 BMW M roadster with a Dinan S/C on it. plus the sentra
-
Can someone calculate mine gasoline use?
Well i drive 3km to work... but I go racing/drifting almost every weekend so i build the cars to go fast. if i didnt do that I'd probably have a 660cc kei truck
-
Can someone calculate mine gasoline use?
hahah smallest motor I own is a 2.0L and it has a turbo on it so it's no better 2.0T, 2.5L and a 3.2L S/C.... I like fast cars
-
my brain is being useless
I've gotten something to return now... although it returns "array" $this->cart->getProducts('canada') $this->cart->canada returned nothing at all progress I guess
-
Can someone calculate mine gasoline use?
your math might be a bit off... most hybrids dont even get that. unless your in a diesel or a 1L gas
-
Can someone calculate mine gasoline use?
yes... because converting to gallons is SOOOOOOOO difficult...... nope it's upkept very well. always gotten that kind of mileage i average 24mpg (US Gallon) which is a smaller gallon i believe
-
Starting web design!
link didn't really work... if you're doing just design you wont really need to know any CSS/HTML as you're mainly doing the design portion. I've found both dribble and forrst to be great for finding inspirations on designs
-
my brain is being useless
<?php class ModelShippingCanada extends Model { public function getQuote($address) { $this->load->language('shipping/canada'); $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('canada_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')"); if ($this->config->get('canada_geo_zone_id') && $this->cart->getProducts('canada')) { $status = false; } else { $status = true; } $method_data = array(); if ($status) { $quote_data = array(); $quote_data['canada'] = array( 'code' => 'canada.canada', 'title' => $this->language->get('text_description'), 'cost' => 0.00, 'tax_class_id' => 0, 'text' => $this->currency->format(0.00) ); $method_data = array( 'code' => 'canada', 'title' => $this->language->get('text_title'), 'quote' => $quote_data, 'sort_order' => $this->config->get('canada_sort_order'), 'error' => false ); } return $method_data; } } ?>
-
Derp alert!
I do love these questions kind of like asking how much you charge for a car? figure out more of what you need and you'll find you're better off in the long run.
-
my brain is being useless
ok so I found a line that will access it, but still cant get it to be true only when set to 1 if ($this->config->get('canada_geo_zone_id') && $this->cart->getProducts('canada'))
-
Derp alert!
insert random "I work for food" comment here. Are you looking for help with the design? what would we get out of this in return?
-
Can someone calculate mine gasoline use?
we use Liters here... not gallons.
-
Can someone calculate mine gasoline use?
I go off what I get not what my car is rated at. the testing they do is kinda silly. hard pressed to find one not RATED at 40mpg. actual mpg has always been significantly lower for me. maybe its just my driving style but everyone in the office here is on the same page as me. 40mpg is no where near what we get in our cars.