JoomlaFAQs.org

JoomlaFAQsBanner
How To Groom Your Dog At Home

Favourites Create PDF Email Print

How To Remove Link From Ordered Products on the Shopping Cart List in VirtueMart

Author:
technojoom
Hits:
707
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

Component : VirtueMart v.1.1.2

Sometimes you may want to stop the shopper from clicking on the Ordered Product link listed on the checkout shopping cart. Here's how you do it. You need to amend 2 files - basket.php and ro_basket.php.

  1. Go to yoursite/administrator/components/com_virtuemart/html/basket.php
  2. Somewhere near line 77 comment out the code (in red) as per below >
  3. /*$product_rows[$i]['product_name'] = "< a href=\"$url\" >< strong >"
    . $ps_product->get_field($_SESSION['cart'][$i]["product_id"],
    "product_name"). "< /strong >< /a >< br / >"*/
  4. The next 3 amended lines are added to remove the href link (seen in blue above)
  5. $product_rows[$i]['product_name'] = "< strong >"
    . $ps_product->get_field($_SESSION['cart'][$i]["product_id"],
    "product_name"). "< /strong >< br / >"
  6. Save the file
  7. Go to yoursite/administrator/components/com_virtuemart/html/ro_basket.php
  8. Repeat Steps 1-4
Commenting out the original code and adding the amended code, gives you the option to refer back to the original if necessary.

SITE NOTE: To display the HTML tags on JoomlaFAQs, there is a space between the name of the tags and the enclosing "less than" (<) and "more than" (>) brackets. If you copy the code, make sure you delete the spaces to make it work!

If you have found this site to be useful and has helped you, kindly consider to donate. Your donation will encourage me and help to upkeep JoomlaFAQs.org! Cheers!





Category

Tags for this item

Add comment


Security code
Refresh

JoomlaFAQs Categories