News:

Looking for documentation? Take a look on our wiki

Main Menu

Store name

Started by milstan, October 06, 2011, 11:33:15 AM

Previous topic - Next topic

milstan

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.

PRO

vendor_vendor_name   might work if you are the only vendor

milstan

Sorry but I don't understand what you mean.

Code <?php echo $this->vendor->vendor_name; ?> does not work (gives empty value).

Milbo

The right name is vendor_store_name. Should work with it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

milstan

Tried with:

<?php echo $this->vendor->store_name; ?>
and
<?php echo $this->vendor->vendor_store_name; ?>

but no luck! Shows nothing.

alatak

Hi,

The vendor information is not available on that page.

milstan

Hi,

Any update on this? How to get values ​​"vendor_store_name" and "vendor_store_desc" and echo them into the categories page?

razor7

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!
MGS Creativa - VirtueMart Payment Plugin Experts
http://www.mgscreativa.com

Take a look at our downloads section for VirtueMart payment plugins and mouch more!
http://www.mgscreativa.com/en/online-store

Virtual

#8
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.

jshroyer

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!

adomi

Hi,

Where exactly you put this code, because i tried and it seems not working.