1

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

2
  • 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
    – Lodder
    Jul 27, 2015 at 15:32
  • Ah it's too bad. Thanks for the comment anyway @Lodder
    – webchun
    Jul 27, 2015 at 15:42

1 Answer 1

1

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.

1
  • 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.
    – webchun
    Jul 31, 2015 at 2:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.