chup Posted April 6, 2011 Share Posted April 6, 2011 is it possible to have a link on the product page that take it back to the category pages that direct it to the product page or default link to the default category page? Link to comment Share on other sites More sharing options...
shokinro Posted April 6, 2011 Share Posted April 6, 2011 some product may belong to multiple categories. so as long as you remember the where is comes from, it is difficult to tell which category to go.following script will just simply go back to previous page, no matter where is comes from.hope it helps Go Back You can put this code in tpl file where you want it appears. Link to comment Share on other sites More sharing options...
chup Posted April 7, 2011 Author Share Posted April 7, 2011 work great, thanks for others: the forum remove some coding, take a look here for the actual codinghttp://pastebin.com/sjX2eaVf Link to comment Share on other sites More sharing options...
Reflections Design Posted June 1, 2011 Share Posted June 1, 2011 I tried to add that code to the product.tplafter the add to cart button quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /> Go Back but it doesn't workI get an error page doesn't existwhat am I doing wrong?http://www.charangaonline.com/tienda/x-treme-sports/15-cirum.html Link to comment Share on other sites More sharing options...
shokinro Posted June 1, 2011 Share Posted June 1, 2011 Please note:the [removed] part of the code needs to be "[removed]", it was changed automatically by the forum software. Link to comment Share on other sites More sharing options...
Recommended Posts