concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Pick only "price" and "Add to Cart" for a custom pricing table #719

Closed vvinci00 closed 1 year ago

vvinci00 commented 1 year ago

Hello,

I've created my own pricing table in a "HTML" Block. is it possible to manage the product price from the module and print it in an HTML Block? So, it's possible to insert an "add to cart" button referring to a specific product in a HTML Block?

Thanks

Mesuva commented 1 year ago

Not from inside an HTML block, no, that's not going to work.

Instead, you'll probably need to look to build some sort of custom Product Block template, one that just outputs the button where you need, along with the pricing table.

One thing to investigate is the use of Product attributes - you can use those to attach different kinds of data to a product, and then fetch it display how you need.