Customizing CoreCommerce checkout HTML
Permalink
One of the things I like about Concrete5, generally, is how it allows me to use my HTML rather than imposing DIV hell (like, say, Drupal).
However, I'm finding this not at all to be the case with the CoreCommerce plugin. E.g., I am trying to change the HTML on the billing page of the checkout process from a TABLE with a bunch of unnecessary DIVs to a more semantic set of LABELs and INPUTs and am running into serious roadblocks.
There appears to be multiple ways different form fields are output. E.g., the email field gets spat out one way and first name, last name, and phone number get spat out another. Then, for the address attributes there is yet another format with enclosing DIVs and such.
I would prefer to change this in a clean way that would allow me to upgrade without fear of overwriting customized files in the package (and even in core!) itself, but don't see a way to do that.
Even hacking directly on the package, I'm not seeing how some of the fields are generated, so I can't alter the output.
I was hoping to finish this site this weekend and didn't expect to run into this kind of issue based on my other, mostly positive, experiences with Concrete5. I have to say I'm a bit disappointed.
Any suggestions are welcome.
However, I'm finding this not at all to be the case with the CoreCommerce plugin. E.g., I am trying to change the HTML on the billing page of the checkout process from a TABLE with a bunch of unnecessary DIVs to a more semantic set of LABELs and INPUTs and am running into serious roadblocks.
There appears to be multiple ways different form fields are output. E.g., the email field gets spat out one way and first name, last name, and phone number get spat out another. Then, for the address attributes there is yet another format with enclosing DIVs and such.
I would prefer to change this in a clean way that would allow me to upgrade without fear of overwriting customized files in the package (and even in core!) itself, but don't see a way to do that.
Even hacking directly on the package, I'm not seeing how some of the fields are generated, so I can't alter the output.
I was hoping to finish this site this weekend and didn't expect to run into this kind of issue based on my other, mostly positive, experiences with Concrete5. I have to say I'm a bit disappointed.
Any suggestions are welcome.
my company has about 3 sites running coreCommerce right now and we're pretty happen with them in general, but you're right, we've had to hack the package itself in many instances. i've also added some content areas to various pages so that when I have to upgrade, i can at least add those back and not need to rebuild my changes. One thing you might look into is applying a Custom Template on your form blocks. Just occurred to me and I haven't tried it out, but it might work.
Aside: please lets just call it the ecommerce add-on, there's another product out there called coreCommerce which this is not.
a few thoughts:
1) Yes check out custom templates if you haven't already, they let you customize a presentation layer from the data object however you want.
2) yeah, the product list block in particular uses tables which irks folk, but there wasn't a really effective way to get a single parameter driven block with the layout flexibility it has without throwing the results in a table. if you want a simpler layout you should be able to use the custom templates to sidestep the product list's layout
3) check out this if you haven't already:
http://www.concrete5.org/marketplace/addons/ecommerce/documentation...
best
a few thoughts:
1) Yes check out custom templates if you haven't already, they let you customize a presentation layer from the data object however you want.
2) yeah, the product list block in particular uses tables which irks folk, but there wasn't a really effective way to get a single parameter driven block with the layout flexibility it has without throwing the results in a table. if you want a simpler layout you should be able to use the custom templates to sidestep the product list's layout
3) check out this if you haven't already:
http://www.concrete5.org/marketplace/addons/ecommerce/documentation...
best
thanks for the documentation link Franz! I'll check it out.
3) Link Dead. Here's the actual link:http://www.concrete5.org/marketplace/addons/ecommerce/documentation...
I'd appreciate it if there were less tables in concrete5 but you probably have to talk to the author of the addon to achieve this..