Forum Search
- Forum
- Joomla Extensions Support Questions
- Amazon Support Questions
- Setting the template to be used when clicking through to a product
Setting the template to be used when clicking through to a product
- 2ndrendermedia
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 19
- Thank you received: 0
1 year 10 months ago - 1 year 10 months ago #3885
by 2ndrendermedia
Setting the template to be used when clicking through to a product was created by 2ndrendermedia
I have my website set up to use one template style for my homepage and another for all of the other pages.
I have a "Featured Products" section on the homepage where I have 8 products manually selected as articleLayout=search. Clicking on the product name of any given product takes the user to the product page, however it uses the template style of the page it was linked from; in this case the home page.
How would i go about (if possible) setting them to show with the other template style?
I have a "Featured Products" section on the homepage where I have 8 products manually selected as articleLayout=search. Clicking on the product name of any given product takes the user to the product page, however it uses the template style of the page it was linked from; in this case the home page.
How would i go about (if possible) setting them to show with the other template style?
Last edit: 1 year 10 months ago by 2ndrendermedia.
Please Log in or Create an account to join the conversation.
- 2ndrendermedia
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 19
- Thank you received: 0
1 year 10 months ago #3888
by 2ndrendermedia
Replied by 2ndrendermedia on topic Setting the template to be used when clicking through to a product
If there's no straight forward way to do this, don't worry about it as i can just hide the elements that differ using CSS.
Please Log in or Create an account to join the conversation.
- boggler
- Offline
- Moderator
-
Less
More
- Posts: 1281
- Karma: 18
- Thank you received: 155
1 year 10 months ago #3889
by boggler
Replied by boggler on topic Setting the template to be used when clicking through to a product
In the plugin there is this file: amazonWS/includes/helpers/helper.php, with these lines (493 to 4)
You need to set the $menuid to some value other than zero, I think that just replacing 0 in the first line should do it.
In a future release we can set up an option for this in the parameters, it would be useful.
$menuid = JRequest::getInt('Itemid',0);
$internalLink = 'index.php?option=com_amazonws&view=product&return='.$return.'&Itemid='.$menuid.'&asin=';
You need to set the $menuid to some value other than zero, I think that just replacing 0 in the first line should do it.
In a future release we can set up an option for this in the parameters, it would be useful.
Please Log in or Create an account to join the conversation.
- 2ndrendermedia
- Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 19
- Thank you received: 0
1 year 10 months ago #3890
by 2ndrendermedia
Replied by 2ndrendermedia on topic Setting the template to be used when clicking through to a product
This didn't work. The URL still shows as the item ID of the page it came from.
Please Log in or Create an account to join the conversation.
- boggler
- Offline
- Moderator
-
Less
More
- Posts: 1281
- Karma: 18
- Thank you received: 155
1 year 10 months ago #3891
by boggler
Replied by boggler on topic Setting the template to be used when clicking through to a product
OK, we will look into it.
We are planning a new release soon, probably next week, it should be possible to include this as an option.
We are planning a new release soon, probably next week, it should be possible to include this as an option.
Please Log in or Create an account to join the conversation.
Moderators: boggler
- Forum
- Joomla Extensions Support Questions
- Amazon Support Questions
- Setting the template to be used when clicking through to a product
Time to create page: 0.246 seconds