Basically, I want to display the "Add to Cart" block of j2store component in a particular position of my com_content template override. Any idea how can I do that? Thanks a bunch
-
Unless the code for the "Add to Cart" button is done through JLayouts or is available in some form of short code format, then you going to have to write a Template Override for the article view, import the component API and other snippets, which won't be an easy task– LodderJul 27, 2015 at 15:32
-
Ah it's too bad. Thanks for the comment anyway @Lodder– webchunJul 27, 2015 at 15:42
1 Answer
A common solution is to create a module, in this case "Add to cart" and then include it in the article with {loadmodule ....} syntaxis.
PD: not my favourite solution, but it works.
-
Thanks for the answer, but j2store has already workaround if you want to move the add to cart button inside the article body (by using {j2store} short tag). What I tried to achieve is to place the add to cart button outside the article body area, using com_content template override.– webchunJul 31, 2015 at 2:51