I created template override for Categories. How can I show Store Name in categories template? Tried <?php echo $this->vendor->vendor_store_name; ?> but does not work. It works fine when I enter any static text.
Also, in backend, when I go Shop > Shop and enter anything under "Vendor Information", it's deleted after Save.
I am using 2.0.0-RC-2G.
vendor_vendor_name might work if you are the only vendor
Sorry but I don't understand what you mean.
Code <?php echo $this->vendor->vendor_name; ?> does not work (gives empty value).
The right name is vendor_store_name. Should work with it.
Tried with:
<?php echo $this->vendor->store_name; ?>
and
<?php echo $this->vendor->vendor_store_name; ?>
but no luck! Shows nothing.
Hi,
The vendor information is not available on that page.
Hi,
Any update on this? How to get values "vendor_store_name" and "vendor_store_desc" and echo them into the categories page?
Hi, i'm in need of the same at payment process, at function plgVmConfirmedOrder on my payment plugin.
Which method gives me vendor store name, any code snippet?
Thanks a lot!
I tried
<?php echo $this->product->vendor_store_name; ?>
and
<?php echo $this->product->vendor_name; ?>
and
<?php echo $this->product->store_name; ?>
for productdetails/tmpl, does not work too.
Just figured this out. First you need to register the variables in order to use them.
<?php $vendorModel = VmModel::getModel('vendor');
$this->vendor = $vendorModel->getVendor(); ?>
Then you can use the store name wherever you want using this:
<?php echo $this->vendor->vendor_store_name; ?>
Hope this helps!
Hi,
Where exactly you put this code, because i tried and it seems not working.