Jump to content

Creating a hook on product page.


Recommended Posts

I have installed Tomer's UPS module, and one of the options is to have "Shipping Rates Display on Products" so visitors can check the shipping cost by entering in the Zip code and not having to login.

As you can see here

I turned that on for a store, but it does not show. Tomer said I need to do the following

You will need to add it in /themes/xxx/prodcut.tpl ,
The hook name is "productActions" {$HOOK_PRODUCT_ACTIONS}


Can anyone give me a step by step guide in doing this - I am not hot on this type of stuff.

The theme is a custom theme and the author did a lot of hard coding - annoying as hell. Using version 1.3.1.1

PS - I can not recommended enough using Tomer's modules - support has been fantastic.
Link to comment
Share on other sites

My understanding is this:

1. Naviagte your FTP program to the location "/themes/xxx/prodcut.tpl"

The "xxx" section of the path is whatever your theme is called.

2. Open the file "product.tpl" and insert the hook "{$HOOK_PRODUCT_ACTIONS}" in the place that you want it to appear.

This may take a bit of trial and error, insert it save and view the frontend to see if in the right position.

As I say, this is only my understanding and may be wrong.

Link to comment
Share on other sites

Its odd - the very best I can get is the box duplicated - as screen-shot shows (attached) - what am I doing wrong. I would like under the add to cart button - driving me nuts.

All I am entering {if $HOOK_PRODUCT_ACTIONS} {$HOOK_PRODUCT_ACTIONS} {/if} - which is copied from the default template file where this works.

36921_ccv5mZMBttnk0VBLyS4e_t

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...