VirtueMart 1.1.x [ Old version - no longer supported ] > Administration & Configuration VM 1.1
Edit Administration Product List page (Columns)
lipes:
Hi all!
I want to know if it's possible to change/edit the table on Administration "Product List page" (?pshop_mode=admin&page=product.product_list&option=com_virtuemart) where shows some title values (on image): #; (check box); images; Sku; Price; Category; Manufacturer; Customer Reviews; Publish; Product Duplication; Remove ; ID
My idea it's modifing that and:
1: changing the default "Price" column list to the "Price+VAT" value list (all products have the same Tax/Vat); STEP +/- COMPLETED!
2: add a new column to display the "product availability" (or with a usefull fast change availability with a selection box/jumpMenu?!); NOT COMPLETED
3: Add a new column called "Last Update", or Last Product Update.. with the (Day/Month/Year) value; NOT COMPLETED
4: removing the Comments/Customer Reviews Column; STEP COMPLETED!
thanks for any help!
jeorcal:
looking for the same thing
lipes:
Hi Jeorcal. Finnaly +/- 1 Month latter from the 1st post we got an help from Hutson http://forum.virtuemart.net/index.php?action=profile;u=54672(Hero Member) in this post: http://forum.virtuemart.net/index.php?topic=86384.0
The main PHP file is located here:
administrator/components/com_virtuemart/html/product.product_list.php
Great News!
I remove the TITLE "Customer Reviews" on line 264 - with this code:
--- Code: ---$columns[$VM_LANG->_('PHPSHOP_REVIEWS')] ="width=\"10%\"";
--- End code ---
and also remove the "Product Clone" on line 266
--- Code: ---$columns[$VM_LANG->_('PHPSHOP_PRODUCT_CLONE')] = "";
--- End code ---
just adding "//" before that code
To remove the rest of the columns first on line 364 to 376
--- Code: --- /**$db_cat->query("SELECT count(*) as num_rows FROM #__{vm}_product_reviews WHERE product_id='".$db->f("product_id")."'");
*$db_cat->next_record();
*if ($db_cat->f("num_rows")) {
*$tmpcell = $db_cat->f("num_rows")." ";
*$tmpcell .= "<a href=\"".$_SERVER["PHP_SELF"]."?option=com_virtuemart&page=product.review_list&product_id=".$db->f("product_id")."\">";
*$tmpcell .= "[".$VM_LANG->_('PHPSHOP_SHOW')."]</a>";
*}
*else {
*$link = $sess->url( $_SERVER['PHP_SELF'].'?page=product.review_form&product_id='.$db->f('product_id'));
*$text = '['.$VM_LANG->_('VM_REVIEW_FORM_LBL').']';
*$tmpcell = " - <a href=\"$link\">$text</a>\n";
*}
*$listObj->addCell( $tmpcell );*/
--- End code ---
and here: 390 to 397:
--- Code: --- // clone
//$tmpcell = "<a title=\"".$VM_LANG->_('PHPSHOP_PRODUCT_CLONE')."\" onmouseout=\"MM_swapImgRestore();\" onmouseover=\"MM_swapImage('copy_$i','','". IMAGEURL ."ps_image/copy_f2.gif',1);\" href=\"";
//$url = $_SERVER['PHP_SELF'] . "?page=$modulename.product_form&clone_product=1&limitstart=$limitstart&keyword=".urlencode($keyword)."&product_id=" . $db->f("product_id");
//if( !empty($product_parent_id) )
//$url .= "&product_parent_id=$product_parent_id";
//$tmpcell .= $sess->url( $url );
//$tmpcell .= "\"><img src=\"".IMAGEURL."/ps_image/copy.gif\" name=\"copy_$i\" border=\"0\" alt=\"".$VM_LANG->_('PHPSHOP_PRODUCT_CLONE')."\" /></a>";
//$listObj->addCell( $tmpcell );
--- End code ---
NOW it's very very IMPORTANT to find answers to do this:
(1st step) - add a Price + Vat (in the Admin Price Column);
(2nd step)- add a new column with "product availability";
(3rd step)- add a new column with "Last Product Update Date"
Jeorcal can you help on discover the code to input? Or any others Virtuemart users could help please? Tks!
lipes:
1st step - Tryind to discover how we could change the "Price" Column to the normal selling price that shows the Price Column + VAT / TAX ...
Lines 326 to 331 we got this code:
--- Code: ---// The product Price
$price = $ps_product->getPriceByShopperGroup( $db->f('product_id'), '');
$tmp_cell = '<span class="editable priceform">'.$GLOBALS['CURRENCY_DISPLAY']->getValue( $price['product_price']).' '.$price['product_currency'];
$tmp_cell .= ' </span>';
$listObj->addCell( $tmp_cell, 'id="'.$db->f('product_id').'" onclick="showPriceForm(this.id)" title="'.$VM_LANG->_('PHPSHOP_PRICE_FORM_LBL').'"' );
--- End code ---
What tag i need to change to call the Price + TAX ? $product_price ?
lipes:
maybe here?
$tmp_cell = '<span class="editable priceform">'.$GLOBALS['CURRENCY_DISPLAY']->getValue( $price['product_price']).' '.$price['product_currency'];
to something like:
$price['product_price'] + $vat->getValue() .. ?! i dont understand PHP :'(
Navigation
[0] Message Index
[#] Next page
Go to full version