Post by cozzienz » Fri Feb 28, 2014 5:23 pm

Hi all,

Am using O/C 1.5.4
http://www.glowspeed.co.nz/shop

The last option of the top menu category bar when you click on it take to product listings or you can setup a subcategory.

Sort of want to change it a little so that when someone clicks on the "Custom Gauge Request" on the top menu bar it opens up into the product page of the product that is currently listed in there.

Can any help with this small step of re-direction

Cozzie
Last edited by cozzienz on Sat Mar 01, 2014 4:27 am, edited 1 time in total.

User avatar
Active Member

Posts

Joined
Sun May 15, 2011 11:13 am

Post by jgsw » Fri Feb 28, 2014 9:25 pm

Hi,

As a quick and easy way you could use jquery.

Add this to your footer.tpl file, located here: catalog/view/theme/cartmaniac/template/common

Code: Select all

<script>
  $("#menu a[href='http://www.glowspeed.co.nz/shop/index.php?route=product/category&path=119']").attr('href', 'http://www.glowspeed.co.nz/shop/index.php?route=product/product&path=119&product_id=51')
</script>
It will change the link in the menu that pointed to the category page to now point to the product page.

Edit: A tidier non-jquery solution would be a bit more effort and require an edit to the menu code

jgsw

Quick Edit Admin Panel (40% off!) - CSS Unique (only $10!)
Sticky Admin Menu (Free) - Add Scripts & Styles to head (Free)


Active Member

Posts

Joined
Sat Mar 16, 2013 3:13 am

Post by cozzienz » Sat Mar 01, 2014 4:27 am

Thank you soooooo much for your help getting this sorted, very very much appreciated ;o)

User avatar
Active Member

Posts

Joined
Sun May 15, 2011 11:13 am

Active Member

Posts

Joined
Sat Mar 16, 2013 3:13 am
Who is online

Users browsing this forum: No registered users and 21 guests