Posts tagged as:

VirtueMart

This is the sollution: http://forum.virtuemart.net/index.php?topic=66513.0

{ 0 comments }

One way to remove the text “View Full-Size Image” from beneath your product thumbnail on your flypage, make a copy of, then edit this file:

components/com_virtuemart/themes/your_theme/theme.php

Find the function vmBuildFullImageLink and within that find this line:

Code: [Select]
$text = ps_product::image_tag($product['product_thumb_image'], $img_attributes, 0)."<br/>".$VM_LANG->_('PHPSHOP_FLYPAGE_ENLARGE_IMAGE');

Change it so it looks like this:

Code: [Select]
$text = ps_product::image_tag($product['product_thumb_image'], $img_attributes, 0);

Save and test.

Another method would be to clear out the ‘PHPSHOP_FLYPAGE_ENLARGE_IMAGE’ text in your langauge file.

{ 3 comments }

A strange problem apeared for me when I use swMenuPro to show the Virtuemart products or categories. The problem is that when I click to an link from the menu I go to the category (or product), but the Itemid stays the same as from the previus page, but I needed to change the Itemid or the Virtuemart page.
To do this go to yoursite.com/modules/mod_swmenupro/functions.php and around line 237 and 253 there should be the link (on two places):

$url="index.php?option=com_virtuemart&page=shop.product_details&flypage=shop.flypage&product_id=".$result4->product_id."&category_id=" . $result4->category_id . "&manufacturer_id=".$result4->vendor_id."&Itemid=".($Itemid)."&swid=".($result4->product_id+100000);

So just remove the Itemid or put your value.

{ 0 comments }

There a few tricks to get this working for your online store with Joomla.

1. Make sure you have installed Virtuemart 1.1.4 and Joomfish 2.0.4 over Joomla 1.5.20 (it should work with any 1.5 version). System Legacy plugin should be on.
Read more…

{ 8 comments }

Steps:

1. Open phpMyAdmin and add the additional field to the jos_vm_manufacturer:

ALTER TABLE `jos_vm_manufacturer` ADD `mf_image` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL AFTER `mf_desc`

2. Open manufacturer.manufacturer_form.php and add additional row for the new field:

<tr>
<td width="22%" align="right"  valign="top"><br/><br/>Image:</td>
<td width="78%" ><br/><br/><?php
editorArea( 'editor2', $db->f("mf_image"), 'mf_image', '300', '150', '70', '25' )
?></td>
</tr>

3. Open ps_manufacturer.php and add the new field to the add and update functions the same way like the field mf_desc is added (just copy the line and add a new row after but for mf_image)

4. Open shop.manufacturer_page.php and do the same like in the previous step also don’t forget to add mf_image in the select statement for the database

5. If needed add the new field in the shop.manufacturer.tpl.php

6. Open shop.browse.php and add:

$browsepage_lbltext = $db->f("mf_image");
$tpl->set( 'browsepage_lblimage', $browsepage_lblimage );

After:

$browsepage_lbltext = $db->f("mf_desc");
$tpl->set( 'browsepage_lbltext', $browsepage_lbltext );

Also here don’t forget to add the mf_image into the select statement above.

7. Then edit the browse_header_manufacturer.tpl.php add a field like $browsepage_lbltext but for the image

This is it…

{ 0 comments }

There is a filter in VirtueMart, which cuts the object and the embed html tags.

A modification should be completed in the administrator/components/com_virtuemart/classes/phpInputFilter/class.inputfilter.php file.

In order to embed YouTube video and other Flash files in your VirtueMart product description area you should remove the object and the embed items from the following array:

var $tagBlacklist = array(‘applet’, ‘body’, ‘bgsound’, ‘base’, ‘basefont’, ‘embed’, ‘frame’, ‘frameset’, ‘head’, ‘html’, ‘id’, ‘iframe’, ‘ilayer’, ‘layer’, ‘link’, ‘meta’, ‘name’, ‘object’, ‘script’, ‘style’, ‘title’, ‘xml’);

The new array will be:

var $tagBlacklist = array(‘applet’, ‘body’, ‘bgsound’, ‘base’, ‘basefont’, ‘frame’, ‘frameset’, ‘head’, ‘html’, ‘id’, ‘iframe’, ‘ilayer’, ‘layer’, ‘link’, ‘meta’, ‘name’, ‘script’, ‘style’, ‘title’, ‘xml’);

{ 0 comments }