Author Topic: Shop.ask page - how to change link of "Return to product"  (Read 1063 times)

barlew

  • Beginner
  • *
  • Posts: 1
Shop.ask page - how to change link of "Return to product"
« on: September 29, 2010, 00:24:54 am »
From enquiry page I would like to link to product's current category browsepage instead of details of the product (flypage). So I need to change a link of "Return to product" button, which should dynamically redirect visitors to given category for further category browsing. I don't use products details at all, thus I do not need to link to it. Is that possible? How to do this?

I have even found definition of return link in administrator/components/com_virtuemart/html/shop.ask.php but unfortunatelly I do not know how to change it into category browsepage link:(

Code: [Select]
// set up return to product link
$product_link = $sess->url( $mm_action_url.basename($_SERVER['PHP_SELF'])."?page=shop.product_details&flypage=$flypage&product_id=$product_id&category_id=$category_id" );

Thank you for any help!

Best regards,
barlew