GeekShop Questions
I have a few questions:
- If I want to add “various” for the price or remove it all together, is that possible? Right now it comes up as “0.00” which I do not want.
- Is there a way to put the "products" in list form instead of tiled?
- Is there a way to adjust the product detail page's picture? I would like to make it smaller.
Thank you.
~Helen
- I don't quite get that, sorry? Can you try explain in more details?
- Yea, you can edit the
themes/default/includes/product.blade.php
and change<?php $column_class = 'col-md-4 col-sm-6'; ?>
to<?php $column_class = 'col-md-12'; ?>
. You might want to do additional modifications to make it fit your needs, but then its in a list. - Product details page can be changed in
themes/default/product/read.blade.php
.
Best Regards,
Mark Topper (Maintainer of Laravel Voyager)
Mail: [email protected]
I am available for freelance work - hire me
Thank you!
As for nuber one, what I was meaning is that if I do not want to show a price for the product how/where do I hide or get rid of?
If I understand you correct, you want to get rid of the pricings that are shown.
If you want this for ALL products, simply open themes/default/includes/product.blade.php
and remove <div class="price">${{ number_format($product->price, 2) }}</div>
and then open themes/default/products/read.blade.php
and remove <h4 class="price">${{ number_format($product->price, 2) }}</h4>
.
If you want this only for some products, then my recommendations is to hide it from products that has the price set to be $0
. This you can do by editing themes/default/includes/product.blade.php
, replacing <div class="price">${{ number_format($product->price, 2) }}</div>
with @if ($product->price)<div class="price">${{ number_format($product->price, 2) }}</div>@endif
and then opening themes/default/products/read.blade.php
and replace <h4 class="price">${{ number_format($product->price, 2) }}</h4>
with @if ($product->price) <h4 class="price">${{ number_format($product->price, 2) }}</h4> @endif
.
Best Regards,
Mark Topper (Maintainer of Laravel Voyager)
Mail: [email protected]
I am available for freelance work - hire me
Yes, thank you!