Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

WooCommerce style product display

theme

Started by Alan Coggins 5 years ago · 6 replies · 799 views
5 years ago

I've just been playing around with trying to set up a product display similar to that provided by WooCommerce. I have managed to get something fairly close and quite pleased with the result. It would only be a matter of adding the necessary Snipcart or Shopify Lite code to turn it into an ecommerce site.

This is the product list page:
list-page|456x500

When you click on 'Read More' it takes you to the product page with a main image and more images as thumbnails below.
product-page|690x455

Clicking on any thumbnail opens all images in a lightbox (currently Featherlight).
lightbox|382x500

Can share the code if anyone is interested.

👍 1
5 years ago

@ozfiddler, Thanks for your contribution. Would it be an idea to share the Github link here?

5 years ago

It's not on GitHub, but I guess I could do that. Sounds a bit "official" though. 😁

I have just been messing around with files on a test site with a Bootstrap4 child theme.

5 years ago

@ozfiddler, I can think of several reasons for not sharing code on Github... So you're excused ;-)

4 years ago

@ozfiddler, I'm afraid a zip file is not such a handy replacement for your, now deleted, Github repo.

  • Others can no longer easily have a look at the code.
  • Others can no longer alert you about issues.
  • Others can no longer contribute to your code using pull-requests.
  • Others can no longer fork your repo and work on that.
  • The zip file can easily get out of sync with the latest changes in the repo.

However, you could still add a download link in your docs pointing at https://github.com/simplycomputing/YOUR-REPO/archive/refs/heads/main.zip

4 years ago

@pamtbaau:

  • Others can no longer alert you about issues.
  • Others can no longer contribute to your code using pull-requests.
  • Others can no longer fork your repo and work on that.

Ah yes, this is the point. I really don't want to get into all this. I don't know very much about Grav, but I know even less about GitHub. I'm sure GitHub is great for someone who uses it all the time, but I find it endlessly confusing and irritating.

It's a shame that there doesn't seem to be any way to share Grav resources without having to go down that whole GitHub path.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 91 14 hours ago
General · by pamtbaau, 19 hours ago
1 61 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 354 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago