Open Cart - very small issue regarding 'if' condition
$10-30 USD
Completed
Posted over 8 years ago
$10-30 USD
Paid on delivery
Looking for someone who can fix this right away.
Trying to make a script that will use a secondary product layout if the product id=693
1. I am trying to display a custom product template to a particular product (product id 693) I have created the [login to view URL] file and I am trying to process the following rule on the product controller [login to view URL]
This doesnt work;
//693 is the id of the product
if($this->request->get['product_id'] == 693){
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/[login to view URL]')) {
$this->template = $this->config->get('config_template') . '/template/product/[login to view URL]';
} else {
$this->template = 'default/template/product/[login to view URL]';
}
}
else{
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/[login to view URL]')) {
$this->template = $this->config->get('config_template') . '/template/product/[login to view URL]';
} else {
$this->template = 'default/template/product/[login to view URL]';
}
}
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/[login to view URL]')) {
$this->response->setOutput($this->load->view($this->config->get('config_template') . '/template/product/[login to view URL]', $data));
} else {
$this->response->setOutput($this->load->view('default/template/product/[login to view URL]', $data));
}
Hello,
I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web development. I have been working in the field of web development for roughly 7 years. I take great pride in my work and deliver only the best quality.
My skill-set includes...
-PHP
-HTML5
-CSS
-AJAX
-Responsive Design
-Joomla
-Wordpress
-Magento
-Photoshop
-Illustrator
-Video Editing
-Data entry
-Iphone
-Android
I look forward to hearing from you and hopefully we will have the opportunity to work together.
Thank you,
Meagan S.