Hi,
I have created Shop in MODx and I have container Shop in which are all products in the Shop. Rendering of the products is provided by the Ditto 2.0.2 snippet.
So, when user click on the heading of the product, details of the product are showed up and on the end of this document should be the price and the link which add product to the basket, I have created the chunk in which is this code.
And here the problem is, my client must adding this chunk manually for every document(which is in this case product detail) and it’s very uncomfortable, I want to do this somehow differently(otherwise).
How can I add this chunk on-the-fly to the end of currently rendered document ? (when the document is rendered)
Can you suggest me some solution ? Programming some snippet isn’t any problem for me, for this shop I have programmed 10 snippets and a lot of classes, but I don’t know how can I solve this.
Thank you for any suggestion.