signalshark

Jul 1st, 2018 06:46 PM

I have a few questions:

  1. 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.
  2. Is there a way to put the "products" in list form instead of tiled?
  3. Is there a way to adjust the product detail page's picture? I would like to make it smaller.

Thank you.

~Helen

mark

Jul 2nd, 2018 06:26 AM

  1. I don't quite get that, sorry? Can you try explain in more details?
  2. 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.
  3. 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

signalshark

Jul 2nd, 2018 05:33 PM

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?

mark

Jul 2nd, 2018 07:00 PM

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

signalshark

Jul 2nd, 2018 08:13 PM

Yes, thank you!