- Posts: 9
COMMUNITY FORUM
Change K2Store plugin position on front end
- atoddvr6
-
Topic Author
- Offline
- New Member
Less
More
12 years 6 months ago #105445
by atoddvr6
Change K2Store plugin position on front end was created by atoddvr6
Hello,
I have the latest versions of K2 and K2Store. I am wondering how I can re-position the "store" plugin. It seems, by default, that K2 places it in the <!-- K2 Plugins: K2AfterDisplay --> section. I looked at the K2 product file and noticed that there are several plugin locations. How and where can I tell it where to put the store on the front end? Is it possible? Is there a Joomla extension that would allow me to re-position the plugin?
I have searched all over for an answer but haven't found anything yet. I realize that this is also a K2Store question so I have posted my question on that forum as well. Any help would be greatly appreciated. ;)
The attached image shows where I would like the plugin to be on the front end.
I have the latest versions of K2 and K2Store. I am wondering how I can re-position the "store" plugin. It seems, by default, that K2 places it in the <!-- K2 Plugins: K2AfterDisplay --> section. I looked at the K2 product file and noticed that there are several plugin locations. How and where can I tell it where to put the store on the front end? Is it possible? Is there a Joomla extension that would allow me to re-position the plugin?
I have searched all over for an answer but haven't found anything yet. I realize that this is also a K2Store question so I have posted my question on that forum as well. Any help would be greatly appreciated. ;)
The attached image shows where I would like the plugin to be on the front end.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
12 years 6 months ago #105446
by Lefteris
Replied by Lefteris on topic Re: Change K2Store plugin position on front end
Hi. I do not know if the plugin supports other positions. You should ask the developers of the plugin for that. You can however make a template override in K2 and place the event wherever you want in K2 layouts. More on template overrides at getk2.org/documentation/tutorials/item/174-templating-with-k2-and-the-concepts-of-sub-templates
Please Log in or Create an account to join the conversation.
- atoddvr6
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 9
12 years 6 months ago #105447
by atoddvr6
Replied by atoddvr6 on topic Re: Change K2Store plugin position on front end
Thank you for the information. I figured out that I can move the line of code below anywhere within the item.php file and that is where the plugin will be! I hope this will help someone who has the same problem.
Log in or Create an account to join the conversation.
- Matt
-
- Offline
- New Member
Less
More
- Posts: 1
12 years 6 months ago #105448
by Matt
Replied by Matt on topic Re: Change K2Store plugin position on front end
I'm attempting to do the same thing. I have edited the item.php file as described, but I don't see any change....the cart info is still at the bottom of the item. Any ideas?
Please Log in or Create an account to join the conversation.
- Gorast
-
- Offline
- Premium Member
Less
More
- Posts: 141
8 years 8 months ago #157155
by Gorast
Replied by Gorast on topic Change K2Store plugin position on front end
I need the same thing but for a different plugin. How and where does K2 render the plugins?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 8 months ago #157176
by Krikor Boghossian
Replied by Krikor Boghossian on topic Change K2Store plugin position on front end
Depends on the plugin.
Generally speaking you can see the plugin events,
$this->item->event->EVENT_NAME in the item.php file.
Each plugin is being triggered in a different event.
By moving these events in your template you can move the plugin as well, if the plugin does not offer an option for this.
Generally speaking you can see the plugin events,
$this->item->event->EVENT_NAME in the item.php file.
Each plugin is being triggered in a different event.
By moving these events in your template you can move the plugin as well, if the plugin does not offer an option for this.
Please Log in or Create an account to join the conversation.