Thanks,
Marc
Attachments
Example of 'current product' showing in header - current product.png (10.26 KiB) Viewed 5285 times
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English

Try this:
1. EDIT: admin/view/template/catalog/product_form.tpl
2. FIND:
Code: Select all
<?php echo $heading_title; ?>
Code: Select all
<?php echo $sku; ?>
I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~
_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com
That was too easy!Qphoria wrote:3. AFTER, ADD:Code: Select all
<?php echo $sku; ?>

Thanks, Q. I really appreciate it.
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
hmm.. I've tried:Qphoria wrote:Guess!manson wrote:what about echoing the product name?
$product_description
$pd.name
$name
but it's not showing.....might it be.......
$product_name?

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~
_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com
no, it's not $product_name nor is it $description! im stumped!manson wrote:hmm.. I've tried:Qphoria wrote:Guess!manson wrote:what about echoing the product name?
$product_description
$pd.name
$name
but it's not showing.....might it be.......
$product_name?

I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~
_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com
I was stumped for the longest time too, but I think I may have found the answer.
EDIT: /admin/controller/catalog/product.php
FIND this section of code:
Code: Select all
if (isset($this->request->post['sku'])) {
$this->data['sku'] = $this->request->post['sku'];
} elseif (isset($product_info)) {
$this->data['sku'] = $product_info['sku'];
} else {
$this->data['sku'] = '';
}
Code: Select all
if (isset($this->request->post['name'])) {
$this->data['name'] = $this->request->post['name'];
} elseif (isset($product_info)) {
$this->data['name'] = $product_info['name'];
} else {
$this->data['name'] = '';
}
Code: Select all
<?php echo $name; ?>
Disclaimer - I really don't know PHP well enough to say that this is the definitive way to do it. Someone else will have to weigh in on that. But it works and it doesn't seem to break anything - yet...

Marc
Attachments
Header with sku and name fields added - Screen shot 2010-12-23 at 10.14.32 PM.png (17.22 KiB) Viewed 5230 times
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
nice find!!! (it is nice! especially for php noobs like us! lolx!)
but.....
duplicate it just right after the same sku codes? where in the codes did you duplicate it?
I don't know much about PHP...~~
Don't know much about JQuery...~~
But I do know that I love OC!~~
and I know that if you'd guide me, what a wonderful world this would be...!~~
_________________________________________________________________
Using OC 1.4.9.2
http://www.ten2hundred.com
I placed it right after the 'sku' section. Since <?php echo $sku; ?> worked, as Q said, I figured it probably needed to be in the same section of code.manson wrote:where in the codes did you duplicate it?
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
Q,Qphoria wrote:I've made this a proper VirtualQMod now.
Since you didn't use my addition to /admin/controller/catalog/product.php in your mod, does that mean it wasn't a good way to solve the problem?
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
It worked ok but wasnt quite right. This uses the same language method the main name does and its already declaredmarc_cole wrote:Q,Qphoria wrote:I've made this a proper VirtualQMod now.
Since you didn't use my addition to /admin/controller/catalog/product.php in your mod, does that mean it wasn't a good way to solve the problem?
Marc
Thank you.
(cj)
http://www.adventhouseplans.com
----
Opencart v2.3.0.2 no VQMod yet
Users browsing this forum: No registered users and 89 guests