News:

Looking for documentation? Take a look on our wiki

Main Menu

Virtuemart Store Front Template Question

Started by it-amigo, May 14, 2013, 17:02:32 PM

Previous topic - Next topic

it-amigo

Hi

Im new to virtuemart and im almost done with styling a whole webshop. i just cant find the template containing the code that is in this picture...



I have been searching in forums and google but did not find anything.

On the picture where is "Nyligen Visade Produkter" i in english "Recent Viewed Products", "Toptio produkter" in english "Top Ten Products", "Senaste Produkter" in english "Latest Products" and the last one at the top is Feutured Products.

Where is it? Have been driving me crazy for a while now :P

Im using Virtuemart 2.0.20b.

Best Regards
Ivan

Mathalis

Hello,

You 'll find the template file used in the picture in :
Quote<your site>/components/com_virtuemart/views/virtuemart/tmpl/default_products.php

Best regards

it-amigo

Thanks that was the one, but i dont seem to be able to seperate the code from each part. Like for example if i want only the code that is "Recent Viewed Products" wich part would that be?

adomi

Hi,

I've got some question too.
I tried to add vendor name in category view and in product details view under title.
I found this :
http://forum.virtuemart.net/index.php?topic=97744.0

But i didn't saw womething for vendor

I found this :
      $vendorModel = VmModel::getModel('vendor');
      $this->vendor = $vendorModel->getVendor();

For declaration of variable
and this :
<br><br><a href="<?php echo $this->vendor->vendor_name;?>

But not sure it's good, not sure where i have to put this.
Can you please help ?
Another question:
Is there any place where i can find the complete list of parameters like this ?

And last question:

I reach to have the id of vendor ( vm id and joomla id) in product details page in default.php in /html/com_virtuemart/productdetails
like this :
  <?php echo $this->product->product_url ?>
  <?php echo $this->product->virtuemart_vendor_id ?>
  <?php echo $this->product->created_by ?>

  but i don't know how to change showing the id by showing the vendor name ?
Coudl you please help me ?
thx in advance,
SJ

Mathalis

it-amigo,

If you don't know what you want exactly, I can't imagine for you.
Can you explain precisly your needed ?

Best regards

adomi

ok,

In /html/com_virtuemart/productdetails.php

I would like to have the name of the vendor who sell the product.

I created the link to the cb profil but didn't reach to get the name of the vendor in the link.

I have this :
<?php    
     $vendorModel = VmModel::getModel('vendor');
     $this->vendor =$this->vendor = $vendorModel->getVendor(); ?>

and this :
                  <?php
       $link = JRoute::_('index.php?option=com_comprofiler&task=userProfile&user='.$this->product->created_by);
            $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL');
         //echo '<span class="bold">'. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). '</span>'; ?>
        <a class="modal" href="<?php echo $link ?>"><?php echo $this->vendor ?></a><br />

I reach to have a link to the profil :
$this->product->created_by
I reach to modify the value of the link :
getVendor in red

But the result is "tablevendors" instead of name of the vendor....

I hope it's more clear...